cortexa53.mk 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. define Build/boot-scr
  2. rm -f [email protected]
  3. mkimage -A arm64 -O linux -T script -C none -a 0 -e 0 \
  4. -d bootscript-$(BOOT_SCRIPT) [email protected]
  5. endef
  6. define Build/boot-img-ext4
  7. rm -fR [email protected]
  8. mkdir -p [email protected]
  9. $(foreach dts,$(DEVICE_DTS), $(CP) $(KDIR)/image-$(dts).dtb [email protected]/$(dts).dtb;)
  10. $(CP) $(IMAGE_KERNEL) [email protected]/$(KERNEL_NAME)
  11. -$(CP) [email protected] [email protected]/boot.scr
  12. make_ext4fs -J -L kernel -l $(CONFIG_TARGET_KERNEL_PARTSIZE)M \
  13. $(if $(SOURCE_DATE_EPOCH),-T $(SOURCE_DATE_EPOCH)) \
  14. [email protected] [email protected]
  15. endef
  16. define Build/sdcard-img-ext4
  17. SIGNATURE="$(IMG_PART_SIGNATURE)" \
  18. PARTOFFSET="$(PARTITION_OFFSET)" PADDING=1 \
  19. $(if $(filter $(1),efi),GUID="$(IMG_PART_DISKGUID)") $(SCRIPT_DIR)/gen_image_generic.sh \
  20. $@ \
  21. $(CONFIG_TARGET_KERNEL_PARTSIZE) [email protected] \
  22. $(CONFIG_TARGET_ROOTFS_PARTSIZE) $(IMAGE_ROOTFS) \
  23. 256
  24. endef
  25. define Device/Default
  26. PROFILES := Default
  27. FILESYSTEMS := squashfs ubifs ext4
  28. DEVICE_DTS_DIR := $(DTS_DIR)/freescale
  29. KERNEL_INSTALL := 1
  30. KERNEL_NAME := Image
  31. KERNEL := kernel-bin
  32. endef
  33. define Device/imx8m
  34. DEVICE_VENDOR := NXP
  35. DEVICE_MODEL := i.MX8M
  36. DEVICE_DTS := $(basename $(notdir $(wildcard $(DTS_DIR)/freescale/imx8m*.dts)))
  37. endef
  38. TARGET_DEVICES += imx8m
  39. define Device/gateworks_venice
  40. $(call Device/Default)
  41. FILESYSTEMS := squashfs ext4
  42. DEVICE_VENDOR := Gateworks
  43. DEVICE_MODEL := i.MX8M Venice
  44. BOOT_SCRIPT := gateworks_venice
  45. PARTITION_OFFSET := 16M
  46. DEVICE_DTS := $(basename $(notdir $(wildcard $(DTS_DIR)/freescale/imx8m*-venice*.dts)))
  47. DEVICE_PACKAGES := \
  48. kmod-hwmon-gsc kmod-rtc-ds1672 kmod-eeprom-at24 \
  49. kmod-gpio-button-hotplug kmod-leds-gpio kmod-pps-gpio \
  50. kmod-lan743x kmod-sky2 kmod-iio-st_accel-i2c \
  51. kmod-can kmod-can-flexcan kmod-can-mcp251x
  52. IMAGES := img.gz
  53. IMAGE/img.gz := boot-scr | boot-img-ext4 | sdcard-img-ext4 | gzip | append-metadata
  54. endef
  55. TARGET_DEVICES += gateworks_venice