cortexa53.mk 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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. $(foreach dtbo,$(DEVICE_DTS_OVERLAY), $(CP) $(KDIR)/image-$(dtbo).dtbo [email protected]/$(dtbo).dtbo;)
  11. $(CP) $(IMAGE_KERNEL) [email protected]/$(KERNEL_NAME)
  12. -$(CP) [email protected] [email protected]/boot.scr
  13. make_ext4fs -J -L kernel -l $(CONFIG_TARGET_KERNEL_PARTSIZE)M \
  14. $(if $(SOURCE_DATE_EPOCH),-T $(SOURCE_DATE_EPOCH)) \
  15. [email protected] [email protected]
  16. endef
  17. define Build/sdcard-img-ext4
  18. SIGNATURE="$(IMG_PART_SIGNATURE)" \
  19. PARTOFFSET="$(PARTITION_OFFSET)" PADDING=1 \
  20. $(if $(filter $(1),efi),GUID="$(IMG_PART_DISKGUID)") $(SCRIPT_DIR)/gen_image_generic.sh \
  21. $@ \
  22. $(CONFIG_TARGET_KERNEL_PARTSIZE) [email protected] \
  23. $(CONFIG_TARGET_ROOTFS_PARTSIZE) $(IMAGE_ROOTFS) \
  24. 256
  25. endef
  26. define Device/Default
  27. PROFILES := Default
  28. FILESYSTEMS := squashfs ubifs ext4
  29. DEVICE_DTS_DIR := $(DTS_DIR)/freescale
  30. KERNEL_INSTALL := 1
  31. KERNEL_NAME := Image
  32. KERNEL := kernel-bin
  33. endef
  34. define Device/imx8m
  35. DEVICE_VENDOR := NXP
  36. DEVICE_MODEL := i.MX8M
  37. DEVICE_DTS := $(basename $(notdir $(wildcard $(DTS_DIR)/freescale/imx8m*.dts)))
  38. endef
  39. TARGET_DEVICES += imx8m
  40. define Device/gateworks_venice
  41. $(call Device/Default)
  42. FILESYSTEMS := squashfs ext4
  43. DEVICE_VENDOR := Gateworks
  44. DEVICE_MODEL := i.MX8M Venice
  45. SUPPORTED_DEVICES := \
  46. gw,imx8mm-gw71xx-0x \
  47. gw,imx8mm-gw72xx-0x \
  48. gw,imx8mp-gw72xx-2x \
  49. gw,imx8mm-gw73xx-0x \
  50. gw,imx8mp-gw73xx-2x \
  51. gw,imx8mm-gw7901 \
  52. gw,imx8mm-gw7902 \
  53. gw,imx8mn-gw7902 \
  54. gw,imx8mm-gw7903 \
  55. gateworks,imx8mp-gw71xx-2x \
  56. gateworks,imx8mp-gw74xx \
  57. gateworks,imx8mm-gw7904 \
  58. gateworks,imx8mm-gw7905-0x \
  59. gateworks,imx8mp-gw7905-2x
  60. BOOT_SCRIPT := gateworks_venice
  61. PARTITION_OFFSET := 16M
  62. DEVICE_DTS := $(basename $(notdir $(wildcard $(DTS_DIR)/freescale/imx8m*-venice*.dts)))
  63. DEVICE_DTS_OVERLAY := $(basename $(notdir $(wildcard $(DTS_DIR)/freescale/imx8m*-venice*.dtso)))
  64. DEVICE_PACKAGES := \
  65. kmod-hwmon-gsc kmod-rtc-ds1672 kmod-eeprom-at24 \
  66. kmod-gpio-button-hotplug kmod-leds-gpio kmod-pps-gpio \
  67. kmod-lan743x kmod-sky2 kmod-iio-st_accel-i2c \
  68. kmod-can kmod-can-flexcan kmod-can-mcp251x
  69. IMAGES := img.gz
  70. IMAGE/img.gz := boot-scr | boot-img-ext4 | sdcard-img-ext4 | gzip | append-metadata
  71. endef
  72. TARGET_DEVICES += gateworks_venice