diff options
author | Zoltan HERPAI <wigyori@uid0.hu> | 2013-10-14 21:00:01 +0000 |
---|---|---|
committer | Zoltan HERPAI <wigyori@uid0.hu> | 2013-10-14 21:00:01 +0000 |
commit | 4f2289e110c58aa93d62a664b66b022ad9bb9f49 (patch) | |
tree | 86ea218969eb2f5928cf37bc9e511fe655c43378 /target/linux | |
parent | 48635b9c9839611c6bb17105e907e76a0030fbb7 (diff) | |
download | upstream-4f2289e110c58aa93d62a664b66b022ad9bb9f49.tar.gz upstream-4f2289e110c58aa93d62a664b66b022ad9bb9f49.tar.bz2 upstream-4f2289e110c58aa93d62a664b66b022ad9bb9f49.zip |
mxs: improve image generation support
Signed-off-by: Michael Heimpold <mhei@heimpold.de>
Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38406 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux')
-rw-r--r-- | target/linux/mxs/image/Makefile | 25 |
1 files changed, 24 insertions, 1 deletions
diff --git a/target/linux/mxs/image/Makefile b/target/linux/mxs/image/Makefile index b9102375d6..ffbbb815d1 100644 --- a/target/linux/mxs/image/Makefile +++ b/target/linux/mxs/image/Makefile @@ -8,6 +8,9 @@ include $(TOPDIR)/rules.mk include $(INCLUDE_DIR)/image.mk +BOARDS:= \ + imx23-olinuxino + define Image/BuildKernel/olinuxino-bootlet cat $(LINUX_DIR)/arch/arm/boot/zImage $(LINUX_DIR)/arch/arm/boot/dts/imx23-olinuxino.dtb > $(STAGING_DIR)/zImage_dtb (cd $(STAGING_DIR); \ @@ -34,6 +37,27 @@ define Image/BuildKernel ifeq ($(CONFIG_PACKAGE_uboot-imx23-mx23_olinuxino),y) $(call Image/BuildKernel/olinuxino-uboot) endif + + $(CP) $(LINUX_DIR)/arch/arm/boot/zImage $(BIN_DIR)/openwrt-$(BOARD)-zImage + $(foreach board,$(BOARDS), + $(CP) $(LINUX_DIR)/arch/arm/boot/dts/$(board).dtb $(BIN_DIR)/ + ) +endef + +define Image/InstallKernel + + ifneq ($(CONFIG_TARGET_ROOTFS_INCLUDE_KERNEL),) + mkdir -p $(TARGET_DIR)/boot + $(CP) $(LINUX_DIR)/arch/arm/boot/zImage $(TARGET_DIR)/boot/ + endif + + ifneq ($(CONFIG_TARGET_ROOTFS_INCLUDE_DTB),) + mkdir -p $(TARGET_DIR)/boot + $(foreach board,$(BOARDS), + $(CP) $(LINUX_DIR)/arch/arm/boot/dts/$(board).dtb $(TARGET_DIR)/boot/ + ) + endif + endef define Image/Build @@ -42,4 +66,3 @@ define Image/Build endef $(eval $(call BuildImage)) - |