From bb058972080cd9347989dfa22ffa494a6d6b6ef2 Mon Sep 17 00:00:00 2001 From: Xiangfu Liu Date: Fri, 21 Aug 2009 01:05:17 +0800 Subject: [PATCH] make the 2.6.31-rc6 compiled in openwrt. *add layer7_2 patch fix the iptables compile error *remove the 'sizes.h' include in jz_mmc.c *chmod -x jz_mmc.* *not make uImage in Makefile, let openwrt do it. Signed-off-by: Xiangfu Liu --- .../xburst/files-2.6.31/drivers/mmc/host/jz_mmc.c | 1 - .../xburst/files-2.6.31/drivers/mmc/host/jz_mmc.h | 0 target/linux/xburst/image/Makefile | 15 ++------------- 3 files changed, 2 insertions(+), 14 deletions(-) mode change 100755 => 100644 target/linux/xburst/files-2.6.31/drivers/mmc/host/jz_mmc.c mode change 100755 => 100644 target/linux/xburst/files-2.6.31/drivers/mmc/host/jz_mmc.h diff --git a/target/linux/xburst/files-2.6.31/drivers/mmc/host/jz_mmc.c b/target/linux/xburst/files-2.6.31/drivers/mmc/host/jz_mmc.c old mode 100755 new mode 100644 index 7b653feb9..470c1ad1b --- a/target/linux/xburst/files-2.6.31/drivers/mmc/host/jz_mmc.c +++ b/target/linux/xburst/files-2.6.31/drivers/mmc/host/jz_mmc.c @@ -27,7 +27,6 @@ #include #include -#include #include #include "jz_mmc.h" diff --git a/target/linux/xburst/files-2.6.31/drivers/mmc/host/jz_mmc.h b/target/linux/xburst/files-2.6.31/drivers/mmc/host/jz_mmc.h old mode 100755 new mode 100644 diff --git a/target/linux/xburst/image/Makefile b/target/linux/xburst/image/Makefile index 0953e4724..f82e06d77 100644 --- a/target/linux/xburst/image/Makefile +++ b/target/linux/xburst/image/Makefile @@ -20,22 +20,11 @@ ifneq ($(CONFIG_XBURST_UBOOT),) endif define Image/BuildKernel - cp $(KDIR)/vmlinux.elf $(BIN_DIR)/openwrt-$(BOARD)-vmlinux.elf - gzip -9 -c $(KDIR)/vmlinux > $(KDIR)/vmlinux.bin.gz - $(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 + cp $(KDIR)/linux-$(LINUX_VERSION)/arch/mips/boot/uImage $(BIN_DIR)/openwrt-$(BOARD)-uImage endef define Image/Build/squashfs - $(call prepare_generic_squashfs,$(KDIR)/root.squashfs) + $(call prepare_generic_squashfs,$(KDIR)/root.squashfs) endef define Image/Build