|
@@ -52,6 +52,29 @@ define Build/apalis-emmc
|
|
|
$(Build/imx-combined-image-clean)
|
|
|
endef
|
|
|
|
|
|
+define Build/ventana-img
|
|
|
+ rm -rf [email protected]
|
|
|
+ mkdir -p [email protected]/boot
|
|
|
+ $(CP) $(IMAGE_KERNEL) [email protected]/boot/uImage
|
|
|
+ $(foreach dts,$(DEVICE_DTS), \
|
|
|
+ $(CP) \
|
|
|
+ $(DTS_DIR)/$(dts).dtb \
|
|
|
+ [email protected]/boot/;
|
|
|
+ )
|
|
|
+ mkimage -A arm -O linux -T script -C none -a 0 -e 0 \
|
|
|
+ -n '$(DEVICE_ID) OpenWrt bootscript' \
|
|
|
+ -d bootscript-$(DEVICE_NAME) \
|
|
|
+ [email protected]/boot/6x_bootscript-ventana
|
|
|
+ cp $@ [email protected]
|
|
|
+
|
|
|
+ $(SCRIPT_DIR)/gen_image_generic.sh $@ \
|
|
|
+ $(CONFIG_TARGET_KERNEL_PARTSIZE) \
|
|
|
+ [email protected] \
|
|
|
+ $(CONFIG_TARGET_ROOTFS_PARTSIZE) \
|
|
|
+ [email protected] \
|
|
|
+ 1024
|
|
|
+ $(Build/imx-combined-image-clean)
|
|
|
+endef
|
|
|
|
|
|
define Device/Default
|
|
|
PROFILES := Default
|
|
@@ -99,10 +122,11 @@ define Device/gateworks_ventana
|
|
|
kmod-sound-soc-imx-sgtl5000 kmod-can kmod-can-flexcan kmod-can-raw \
|
|
|
kmod-hwmon-gsc kmod-leds-gpio kmod-pps-gpio kobs-ng
|
|
|
KERNEL += | boot-overlay
|
|
|
- IMAGES := nand.ubi bootfs.tar.gz dtb
|
|
|
+ IMAGES := img.gz nand.ubi bootfs.tar.gz dtb
|
|
|
IMAGE/nand.ubi := append-ubi
|
|
|
IMAGE/bootfs.tar.gz := bootfs.tar.gz
|
|
|
IMAGE/dtb := install-dtb
|
|
|
+ IMAGE/img.gz := append-rootfs | pad-extra 128k | ventana-img | gzip
|
|
|
UBINIZE_PARTS = boot=$$(KDIR_KERNEL_IMAGE).boot.ubifs=15
|
|
|
PAGESIZE := 2048
|
|
|
BLOCKSIZE := 128k
|