diff --git a/target/linux/xburst/image/Makefile b/target/linux/xburst/image/Makefile index e919168a7..0953e4724 100644 --- a/target/linux/xburst/image/Makefile +++ b/target/linux/xburst/image/Makefile @@ -25,6 +25,13 @@ define Image/BuildKernel $(STAGING_DIR_HOST)/bin/lzma e $(KDIR)/vmlinux $(KDIR)/vmlinux.bin.l7 dd if=$(KDIR)/vmlinux.bin.l7 of=$(BIN_DIR)/openwrt-$(BOARD)-vmlinux.lzma bs=65536 conv=sync dd if=$(KDIR)/vmlinux.bin.gz of=$(BIN_DIR)/openwrt-$(BOARD)-vmlinux.gz bs=65536 conv=sync + + $(TARGET_CROSS)objcopy -O binary -R .reginfo -R .mdebug -R .comment -R .note -R .pdr -R .options -R .MIPS.options -S $(LINUX_DIR)/vmlinux $(KDIR)/linux.bin + rm -f $(KDIR)/linux.bin.gz + gzip -9 $(KDIR)/linux.bin + mkimage -A mips -O linux -T kernel -C gzip -a 0x80010000 -e 0x80010000 -n "Qi Kernel Image Ben Nanonote" -d $(KDIR)/linux.bin.gz uImage + + cp uImage $(BIN_DIR)/openwrt-$(BOARD)-uImage endef define Image/Build/squashfs diff --git a/target/linux/xburst/image/u-boot/Makefile b/target/linux/xburst/image/u-boot/Makefile index 2b265c52a..be565146d 100644 --- a/target/linux/xburst/image/u-boot/Makefile +++ b/target/linux/xburst/image/u-boot/Makefile @@ -31,7 +31,7 @@ endef define Build/InstallDev mkdir -p $(BIN_DIR) - dd if=$(PKG_BUILD_DIR)/u-boot-nand.bin of=$(BIN_DIR)/u-boot-$(UBOOT_CONFIG).bin + cp $(PKG_BUILD_DIR)/u-boot-nand.bin $(BIN_DIR)/openwrt-$(BOARD)-u-boot-$(UBOOT_CONFIG).bin endef $(eval $(call Build/DefaultTargets))