mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-12-27 13:12:24 +02:00
create-uImage-for-kernel.patch
Signed-off-by: Xiangfu Liu <xiangfu.z@gmail.com>
This commit is contained in:
parent
6be1b61490
commit
da071d0251
@ -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
|
||||
|
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user