From bb15c2215e6bd1b48a8db0e4d242fee491f774da Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Thu, 17 Feb 2005 18:21:20 +0000 Subject: [PATCH] more changes towards better board support --- Makefile | 11 ++++++++--- target/device/Config.in | 2 +- target/device/generic/Config.in | 5 ----- target/device/generic/access_point/Config.in | 6 ------ target/device/generic/firewall/Config.in | 6 ------ target/ext2/Config.in | 5 ----- target/ext2/ext2root.mk | 9 +++------ target/generic/Makefile.in | 6 +++--- target/{device => generic}/device_table.txt | 0 9 files changed, 15 insertions(+), 35 deletions(-) delete mode 100644 target/device/generic/Config.in delete mode 100644 target/device/generic/access_point/Config.in delete mode 100644 target/device/generic/firewall/Config.in rename target/{device => generic}/device_table.txt (100%) diff --git a/Makefile b/Makefile index 045aa19ef8..d0cdb233ac 100644 --- a/Makefile +++ b/Makefile @@ -109,9 +109,14 @@ $(STAGING_DIR): @ln -sf ../lib $(STAGING_DIR)/$(REAL_GNU_TARGET_NAME)/lib $(TARGET_DIR): - zcat target/default/skel.tar.gz | tar -C $(BUILD_DIR) -xf - - cp -a target/default/target_skeleton/* $(TARGET_DIR)/ - -find $(TARGET_DIR) -type d -name .svn -exec rm -rf {} \; > /dev/null 2>&1 + if [ -f "$(TARGET_SKELETON)" ] ; then \ + zcat $(TARGET_SKELETON) | tar -C $(BUILD_DIR) -xf -; \ + fi; + if [ -d "$(TARGET_SKEL_DIR)" ] ; then \ + cp -a $(TARGET_SKEL_DIR)/* $(TARGET_DIR)/; \ + fi; + -find $(TARGET_DIR) -type d -name CVS | xargs rm -rf + -find $(TARGET_DIR) -type d -name .svn | xargs rm -rf source: $(TARGETS_SOURCE) diff --git a/target/device/Config.in b/target/device/Config.in index 92be4b73d8..aff4dfdc9d 100644 --- a/target/device/Config.in +++ b/target/device/Config.in @@ -1,5 +1,5 @@ menu "Board Support Options" -source "target/device/generic/Config.in" +source "target/device/generic/Soekris/Config.in" endmenu diff --git a/target/device/generic/Config.in b/target/device/generic/Config.in deleted file mode 100644 index 29127691f4..0000000000 --- a/target/device/generic/Config.in +++ /dev/null @@ -1,5 +0,0 @@ -comment "Generic Device Support" - -source "target/device/generic/access_point/Config.in" -source "target/device/generic/firewall/Config.in" - diff --git a/target/device/generic/access_point/Config.in b/target/device/generic/access_point/Config.in deleted file mode 100644 index b0166d2f6d..0000000000 --- a/target/device/generic/access_point/Config.in +++ /dev/null @@ -1,6 +0,0 @@ -config BR2_TARGET_GENERIC_ACCESS_POINT - bool "Generic wireless access point" - default n - help - Board support for a generic wireless access point. - diff --git a/target/device/generic/firewall/Config.in b/target/device/generic/firewall/Config.in deleted file mode 100644 index d20681b152..0000000000 --- a/target/device/generic/firewall/Config.in +++ /dev/null @@ -1,6 +0,0 @@ -config BR2_TARGET_GENERIC_ACCESS_POINT - bool "Generic firewall" - default n - help - Board support for a generic firewalling router. - diff --git a/target/ext2/Config.in b/target/ext2/Config.in index e0a3e086ba..a40947a038 100644 --- a/target/ext2/Config.in +++ b/target/ext2/Config.in @@ -24,11 +24,6 @@ config BR2_TARGET_ROOTFS_EXT2_SQUASH depends on BR2_TARGET_ROOTFS_EXT2 default y -config BR2_TARGET_ROOTFS_EXT2_DEVFILE - string "Location of device table file (blank for none)" - depends on BR2_TARGET_ROOTFS_EXT2 - default "target/default/device_table.txt" - config BR2_TARGET_ROOTFS_EXT2_OUTPUT string "Output File" depends on BR2_TARGET_ROOTFS_EXT2 diff --git a/target/ext2/ext2root.mk b/target/ext2/ext2root.mk index 61aedddce7..c65de39265 100644 --- a/target/ext2/ext2root.mk +++ b/target/ext2/ext2root.mk @@ -57,11 +57,6 @@ ifneq ($(strip $(BR2_TARGET_ROOTFS_EXT2_RESBLKS)),0) EXT2_OPTS += -r $(strip $(BR2_TARGET_ROOTFS_EXT2_RESBLKS)) endif -EXT2_DEVFILE := $(strip $(subst ",,$(BR2_TARGET_ROOTFS_EXT2_DEVFILE))) -ifneq ($(EXT2_DEVFILE),) -EXT2_OPTS += -D $(EXT2_DEVFILE) -endif - EXT2_BASE := $(subst ",,$(BR2_TARGET_ROOTFS_EXT2_OUTPUT)) ifeq ($(strip $(BR2_TARGET_ROOTFS_EXT2_GZ)),y) @@ -77,7 +72,7 @@ $(EXT2_BASE): genext2fs @rm -rf $(TARGET_DIR)/usr/info ifeq ($(strip $(BR2_TARGET_ROOTFS_EXT2_BLOCKS)),0) GENEXT2_REALSIZE=`LANG=C du -l -s -c -k $(TARGET_DIR) | grep total | sed -e "s/total//"`; \ - GENEXT2_ADDTOROOTSIZE=`if [ $$GENEXT2_REALSIZE -ge 20000 ] ; then echo 16384; else echo 1200; fi`; \ + GENEXT2_ADDTOROOTSIZE=`if [ $$GENEXT2_REALSIZE -ge 20000 ] ; then echo 16384; else echo 2400; fi`; \ GENEXT2_SIZE=`expr $$GENEXT2_REALSIZE + $$GENEXT2_ADDTOROOTSIZE`; \ GENEXT2_ADDTOINODESIZE=`find $(TARGET_DIR) | wc -l`; \ GENEXT2_INODES=`expr $$GENEXT2_ADDTOINODESIZE + 400`; \ @@ -86,10 +81,12 @@ ifeq ($(strip $(BR2_TARGET_ROOTFS_EXT2_BLOCKS)),0) -b $$GENEXT2_SIZE \ -i $$GENEXT2_INODES \ -d $(TARGET_DIR) \ + -D $(TARGET_DEVICE_TABLE) \ $(EXT2_OPTS) $(EXT2_BASE) else $(GENEXT2_DIR)/genext2fs \ -d $(TARGET_DIR) \ + -D $(TARGET_DEVICE_TABLE) \ $(EXT2_OPTS) \ $(EXT2_BASE) endif diff --git a/target/generic/Makefile.in b/target/generic/Makefile.in index b6596296fb..66a369af4f 100644 --- a/target/generic/Makefile.in +++ b/target/generic/Makefile.in @@ -1,4 +1,4 @@ # Default target skeleton stuff, may be overridden -TARGET_SKELETON:=target/generic/skel.tar.gz -TARGET_SKEL_DIR:=target/generic/target_skeleton - +TARGET_SKELETON=target/generic/skel.tar.gz +TARGET_SKEL_DIR=target/generic/target_skeleton +TARGET_DEVICE_TABLE=target/generic/device_table.txt diff --git a/target/device/device_table.txt b/target/generic/device_table.txt similarity index 100% rename from target/device/device_table.txt rename to target/generic/device_table.txt -- 2.30.2