diff options
Diffstat (limited to 'target/linux/layerscape/image/Makefile')
-rw-r--r-- | target/linux/layerscape/image/Makefile | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/target/linux/layerscape/image/Makefile b/target/linux/layerscape/image/Makefile index b275ef71cc..a08cc2c2cb 100644 --- a/target/linux/layerscape/image/Makefile +++ b/target/linux/layerscape/image/Makefile @@ -9,6 +9,10 @@ include $(INCLUDE_DIR)/image.mk ITB_BOARDS = traverse-five64 +LS_SD_ROOTFSPART_OFFSET = 64 +LS_SD_IMAGE_SIZE = $(shell echo $$((($(LS_SD_ROOTFSPART_OFFSET) + \ + $(CONFIG_TARGET_ROOTFS_PARTSIZE)) * 1024 * 1024))) + define Build/ls-clean rm -f $@ endef @@ -22,6 +26,12 @@ define Build/ls-append-dtb dd if=$(DTS_DIR)/$(1).dtb >> $@ endef +define Build/ls-append-sdhead + ./gen_sdcard_head_img.sh $(STAGING_DIR_IMAGE)/$(1)-sdcard-head.img \ + $(LS_SD_ROOTFSPART_OFFSET) $(CONFIG_TARGET_ROOTFS_PARTSIZE) + dd if=$(STAGING_DIR_IMAGE)/$(1)-sdcard-head.img >> $@ +endef + define Build/traverse-fit ./mkits-multiple-config.sh -o $@.its -A $(LINUX_KARCH) \ -v $(LINUX_VERSION) -k $@ -a $(KERNEL_LOADADDR) \ |