X-Git-Url: http://git.ozo.com/?a=blobdiff_plain;f=target%2Flinux%2Fcns3xxx%2Fimage%2FMakefile;h=271d5ea1988938cf7e22bcda8071d0d5e08fc331;hb=2a134ef25ad2122501a55f7ec5eeb03ca7e4db47;hp=0265d7c54503a52f2b775363764070d7dd82f28f;hpb=d6c5497a48ad8536375c757365d59e03ff38fc88;p=openwrt-working-2016%2F.git diff --git a/target/linux/cns3xxx/image/Makefile b/target/linux/cns3xxx/image/Makefile index 0265d7c545..271d5ea198 100644 --- a/target/linux/cns3xxx/image/Makefile +++ b/target/linux/cns3xxx/image/Makefile @@ -7,12 +7,18 @@ include $(TOPDIR)/rules.mk include $(INCLUDE_DIR)/image.mk +define mkimage + mkimage -A arm -O linux -T kernel -C none -a $(2) -e $(2) -n 'OpenWrt Linux-$(LINUX_VERSION)' -d $(LINUX_DIR)/arch/arm/boot/zImage $(KDIR)/uImage-$(1) +endef + define Image/Prepare - cp $(LINUX_DIR)/arch/arm/boot/uImage $(KDIR)/uImage + $(call mkimage,old,0x00008000) + $(call mkimage,new,0x20008000) endef define Image/BuildKernel - cp $(KDIR)/uImage $(BIN_DIR)/openwrt-$(BOARD)-uImage + cp $(KDIR)/uImage-old $(BIN_DIR)/openwrt-$(BOARD)-old-uboot-uImage + cp $(KDIR)/uImage-new $(BIN_DIR)/openwrt-$(BOARD)-uImage endef define Image/Build