aboutsummaryrefslogtreecommitdiffstats
path: root/package/base-files/Makefile
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2006-11-22 23:27:29 +0000
committerFelix Fietkau <nbd@openwrt.org>2006-11-22 23:27:29 +0000
commit0cbe723631eed7e541483592d16b6d125c846674 (patch)
treedc8d648372e516e754590075b43f0dba98df8546 /package/base-files/Makefile
parent36dbcb9b377d3b3576ff081f229dd437e84a92bf (diff)
downloadupstream-0cbe723631eed7e541483592d16b6d125c846674.tar.gz
upstream-0cbe723631eed7e541483592d16b6d125c846674.tar.bz2
upstream-0cbe723631eed7e541483592d16b6d125c846674.zip
move platform specific base-files into target/linux/<targetname>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@5621 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/base-files/Makefile')
-rw-r--r--package/base-files/Makefile68
1 files changed, 15 insertions, 53 deletions
diff --git a/package/base-files/Makefile b/package/base-files/Makefile
index 5af1414d4e..04a63b7494 100644
--- a/package/base-files/Makefile
+++ b/package/base-files/Makefile
@@ -42,34 +42,6 @@ define Package/base-files$(TARGET)
VERSION:=$(PKG_RELEASE)-$(REV)
endef
-define -ar7-2.4/conffiles
-/etc/config/network
-endef
-
-define -aruba-2.6/conffiles
-/etc/config/network
-endef
-
-define -au1000-2.6/conffiles
-/etc/config/network
-endef
-
-define -rb532-2.6/conffiles
-/etc/config/network
-endef
-
-define -sibyte-2.6/conffiles
-/etc/config/network
-endef
-
-define -x86-2.6/conffiles
-/etc/config/network
-endef
-
-define -xscale-2.6/conffiles
-/etc/config/network
-endef
-
define Package/base-files$(TARGET)/conffiles
/etc/banner
/etc/hosts
@@ -114,37 +86,17 @@ define Build/Prepare
mkdir -p $(PKG_BUILD_DIR)
endef
-define Build/Compile/ar7
- $(TARGET_CC) -o $(PKG_BUILD_DIR)/adam2patcher src/adam2patcher.c
-endef
-
-define Build/Compile/brcm
- $(TARGET_CC) -I src -o $(PKG_BUILD_DIR)/jffs2root src/jffs2root.c
+define Build/Compile/Default
endef
define Build/Compile
- $(call Build/Compile/$(BOARD))
-endef
-
-
-define Package/base-files$(TARGET)/install-ar7
- mkdir -p $(1)/sbin
- $(CP) $(PKG_BUILD_DIR)/adam2patcher $(1)/sbin
-endef
-
-define Package/base-files$(TARGET)/install-brcm
- rm -f $(1)/etc/config/network
- mkdir -p $(1)/sbin
- $(CP) $(PKG_BUILD_DIR)/jffs2root $(1)/sbin
+ $(call Build/Compile/Default)
endef
define Package/base-files$(TARGET)/install
$(CP) ./default/* $(1)/
- if [ -d $(BOARD) ]; then \
- $(CP) $(BOARD)/* $(1)/; \
- fi
- if [ -d $(BOARD)-$(KERNEL) ]; then \
- $(CP) $(BOARD)-$(KERNEL)/* $(1)/; \
+ if [ -d $(PLATFORM_DIR)/base-files/. ]; then \
+ $(CP) $(PLATFORM_DIR)/base-files/* $(1)/; \
fi
$(SED) 's,$$$$R,r$(REV),g' $(1)/etc/banner
$(SED) 's,$$$$S,$(BOARD)-$(KERNEL),g' $(1)/etc/ipkg.conf
@@ -163,7 +115,13 @@ define Package/base-files$(TARGET)/install
rm -f $(1)/var
ln -sf /tmp $(1)/var
mkdir -p $(1)/etc
-$(call Package/base-files$(TARGET)/install-$(BOARD),$(1))
+ $(call Package/base-files/install-target,$(1))
+ for conffile in $(1)/etc/config/*; do \
+ if [ -f "$$$$conffile" ]; then \
+ grep "$$$$conffile" $(1)/CONTROL/conffiles || \
+ echo "$$$${conffile##$(1)}" >> $(1)/CONTROL/conffiles; \
+ fi \
+ done
endef
define Package/libgcc/install
@@ -185,6 +143,10 @@ define Package/uclibc/install
done
endef
+ifneq ($(DUMP),1)
+ -include $(PLATFORM_DIR)/base-files.mk
+endif
+
$(eval $(call BuildPackage,base-files$(TARGET)))
$(eval $(call BuildPackage,libgcc))
$(eval $(call BuildPackage,libpthread))