summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/target.mk15
-rw-r--r--package/base-files/Makefile9
-rwxr-xr-xtarget/linux/ar7-2.4/base-files/default/bin/firstboot (renamed from target/linux/ar7-2.4/base-files/bin/firstboot)0
-rw-r--r--target/linux/ar7-2.4/base-files/default/etc/config/network (renamed from target/linux/ar7-2.4/base-files/etc/config/network)0
-rwxr-xr-xtarget/linux/ar7-2.4/base-files/default/etc/init.d/adam2 (renamed from target/linux/ar7-2.4/base-files/etc/init.d/adam2)0
-rwxr-xr-xtarget/linux/ar7-2.4/base-files/default/etc/preinit (renamed from target/linux/ar7-2.4/base-files/etc/preinit)0
-rwxr-xr-xtarget/linux/ar7-2.4/base-files/default/sbin/mount_root (renamed from target/linux/ar7-2.4/base-files/sbin/mount_root)0
-rw-r--r--target/linux/aruba-2.6/base-files/default/etc/config/network (renamed from target/linux/aruba-2.6/base-files/etc/config/network)0
-rwxr-xr-xtarget/linux/brcm-2.4/base-files/default/bin/firstboot (renamed from target/linux/brcm-2.4/base-files/bin/firstboot)0
-rw-r--r--target/linux/brcm-2.4/base-files/default/etc/diag.sh (renamed from target/linux/brcm-2.4/base-files/etc/diag.sh)0
-rwxr-xr-xtarget/linux/brcm-2.4/base-files/default/etc/init.d/done (renamed from target/linux/brcm-2.4/base-files/etc/init.d/done)0
-rwxr-xr-xtarget/linux/brcm-2.4/base-files/default/etc/init.d/netconfig (renamed from target/linux/brcm-2.4/base-files/etc/init.d/netconfig)0
-rwxr-xr-xtarget/linux/brcm-2.4/base-files/default/etc/preinit (renamed from target/linux/brcm-2.4/base-files/etc/preinit)0
-rwxr-xr-xtarget/linux/brcm-2.4/base-files/default/sbin/hotplug.failsafe (renamed from target/linux/brcm-2.4/base-files/sbin/hotplug.failsafe)0
-rwxr-xr-xtarget/linux/brcm-2.4/base-files/default/sbin/mount_root (renamed from target/linux/brcm-2.4/base-files/sbin/mount_root)0
-rw-r--r--target/linux/ixp4xx-2.6/base-files/default/etc/config/network (renamed from target/linux/ixp4xx-2.6/base-files/etc/config/network)0
-rwxr-xr-xtarget/linux/ixp4xx-2.6/base-files/default/etc/init.d/netconfig (renamed from target/linux/ixp4xx-2.6/base-files/etc/init.d/netconfig)0
-rw-r--r--target/linux/rb532-2.6/base-files/default/etc/config/network (renamed from target/linux/rb532-2.6/base-files/etc/config/network)0
-rwxr-xr-xtarget/linux/rb532-2.6/base-files/default/sbin/cf2nand (renamed from target/linux/rb532-2.6/base-files/sbin/cf2nand)0
-rw-r--r--target/linux/sibyte-2.6/base-files/default/etc/config/network (renamed from target/linux/sibyte-2.6/base-files/etc/config/network)0
-rw-r--r--target/linux/sibyte-2.6/base-files/default/etc/inittab (renamed from target/linux/sibyte-2.6/base-files/etc/inittab)0
-rw-r--r--target/linux/x86-2.6/base-files/default/etc/config/network (renamed from target/linux/x86-2.6/base-files/etc/config/network)0
22 files changed, 22 insertions, 2 deletions
diff --git a/include/target.mk b/include/target.mk
index bd3ceb955..6a136a1be 100644
--- a/include/target.mk
+++ b/include/target.mk
@@ -5,6 +5,21 @@
# See /LICENSE for more information.
#
+define AddProfile
+ $(eval $(call Profile/Default))
+ $(eval $(call Profile/$(1)))
+ ifneq ($(ID),)
+ PROFILE:=$(ID)
+ $(ID)_NAME:=$(NAME)
+ $(ID)_PACKAGES:=$(PACKAGES)
+ ifneq ($(KCONFIG),)
+ PROFILE_LIST += \
+ echo '$(ID):'; [ -z '$(NAME)' ] || echo ' $(NAME)'; echo ' Packages: $(PACKAGES)';
+ endif
+ endif
+endef
+
+
include $(TMP_DIR)/.target.mk
ifeq ($(IB),1)
diff --git a/package/base-files/Makefile b/package/base-files/Makefile
index 5cbef91e3..f02f1c9aa 100644
--- a/package/base-files/Makefile
+++ b/package/base-files/Makefile
@@ -101,8 +101,13 @@ endef
define Package/base-files$(TARGET)/install
$(CP) ./files/* $(1)/
- if [ -d $(PLATFORM_DIR)/base-files/. ]; then \
- $(CP) $(PLATFORM_DIR)/base-files/* $(1)/; \
+ if [ -d $(PLATFORM_DIR)/base-files/default/. ]; then \
+ $(CP) $(PLATFORM_DIR)/base-files/default/* $(1)/; \
+ fi
+ if [ "$(PROFILE)" != "Default" ]; then \
+ if [ -d $(PLATFORM_DIR)/base-files/profile-$(PROFILE)/. ]; then \
+ $(CP) $(PLATFORM_DIR)/base-files/profile-$(PROFILE)/* $(1)/; \
+ fi; \
fi
$(SED) 's,$$$$R,r$(REV),g' $(1)/etc/banner
$(SED) 's,$$$$S,$(BOARD)-$(KERNEL),g' $(1)/etc/ipkg.conf
diff --git a/target/linux/ar7-2.4/base-files/bin/firstboot b/target/linux/ar7-2.4/base-files/default/bin/firstboot
index 774bbc754..774bbc754 100755
--- a/target/linux/ar7-2.4/base-files/bin/firstboot
+++ b/target/linux/ar7-2.4/base-files/default/bin/firstboot
diff --git a/target/linux/ar7-2.4/base-files/etc/config/network b/target/linux/ar7-2.4/base-files/default/etc/config/network
index 911134bb0..911134bb0 100644
--- a/target/linux/ar7-2.4/base-files/etc/config/network
+++ b/target/linux/ar7-2.4/base-files/default/etc/config/network
diff --git a/target/linux/ar7-2.4/base-files/etc/init.d/adam2 b/target/linux/ar7-2.4/base-files/default/etc/init.d/adam2
index 425bc15d6..425bc15d6 100755
--- a/target/linux/ar7-2.4/base-files/etc/init.d/adam2
+++ b/target/linux/ar7-2.4/base-files/default/etc/init.d/adam2
diff --git a/target/linux/ar7-2.4/base-files/etc/preinit b/target/linux/ar7-2.4/base-files/default/etc/preinit
index 5b676ca3a..5b676ca3a 100755
--- a/target/linux/ar7-2.4/base-files/etc/preinit
+++ b/target/linux/ar7-2.4/base-files/default/etc/preinit
diff --git a/target/linux/ar7-2.4/base-files/sbin/mount_root b/target/linux/ar7-2.4/base-files/default/sbin/mount_root
index 6b90bdc9c..6b90bdc9c 100755
--- a/target/linux/ar7-2.4/base-files/sbin/mount_root
+++ b/target/linux/ar7-2.4/base-files/default/sbin/mount_root
diff --git a/target/linux/aruba-2.6/base-files/etc/config/network b/target/linux/aruba-2.6/base-files/default/etc/config/network
index 1d9b55b2d..1d9b55b2d 100644
--- a/target/linux/aruba-2.6/base-files/etc/config/network
+++ b/target/linux/aruba-2.6/base-files/default/etc/config/network
diff --git a/target/linux/brcm-2.4/base-files/bin/firstboot b/target/linux/brcm-2.4/base-files/default/bin/firstboot
index c3d9a64b8..c3d9a64b8 100755
--- a/target/linux/brcm-2.4/base-files/bin/firstboot
+++ b/target/linux/brcm-2.4/base-files/default/bin/firstboot
diff --git a/target/linux/brcm-2.4/base-files/etc/diag.sh b/target/linux/brcm-2.4/base-files/default/etc/diag.sh
index 3b08554c6..3b08554c6 100644
--- a/target/linux/brcm-2.4/base-files/etc/diag.sh
+++ b/target/linux/brcm-2.4/base-files/default/etc/diag.sh
diff --git a/target/linux/brcm-2.4/base-files/etc/init.d/done b/target/linux/brcm-2.4/base-files/default/etc/init.d/done
index 0640b6193..0640b6193 100755
--- a/target/linux/brcm-2.4/base-files/etc/init.d/done
+++ b/target/linux/brcm-2.4/base-files/default/etc/init.d/done
diff --git a/target/linux/brcm-2.4/base-files/etc/init.d/netconfig b/target/linux/brcm-2.4/base-files/default/etc/init.d/netconfig
index 4cc23d233..4cc23d233 100755
--- a/target/linux/brcm-2.4/base-files/etc/init.d/netconfig
+++ b/target/linux/brcm-2.4/base-files/default/etc/init.d/netconfig
diff --git a/target/linux/brcm-2.4/base-files/etc/preinit b/target/linux/brcm-2.4/base-files/default/etc/preinit
index 1c4e59f15..1c4e59f15 100755
--- a/target/linux/brcm-2.4/base-files/etc/preinit
+++ b/target/linux/brcm-2.4/base-files/default/etc/preinit
diff --git a/target/linux/brcm-2.4/base-files/sbin/hotplug.failsafe b/target/linux/brcm-2.4/base-files/default/sbin/hotplug.failsafe
index 0544339de..0544339de 100755
--- a/target/linux/brcm-2.4/base-files/sbin/hotplug.failsafe
+++ b/target/linux/brcm-2.4/base-files/default/sbin/hotplug.failsafe
diff --git a/target/linux/brcm-2.4/base-files/sbin/mount_root b/target/linux/brcm-2.4/base-files/default/sbin/mount_root
index ffa6072c6..ffa6072c6 100755
--- a/target/linux/brcm-2.4/base-files/sbin/mount_root
+++ b/target/linux/brcm-2.4/base-files/default/sbin/mount_root
diff --git a/target/linux/ixp4xx-2.6/base-files/etc/config/network b/target/linux/ixp4xx-2.6/base-files/default/etc/config/network
index 1d9b55b2d..1d9b55b2d 100644
--- a/target/linux/ixp4xx-2.6/base-files/etc/config/network
+++ b/target/linux/ixp4xx-2.6/base-files/default/etc/config/network
diff --git a/target/linux/ixp4xx-2.6/base-files/etc/init.d/netconfig b/target/linux/ixp4xx-2.6/base-files/default/etc/init.d/netconfig
index ded5f4b8d..ded5f4b8d 100755
--- a/target/linux/ixp4xx-2.6/base-files/etc/init.d/netconfig
+++ b/target/linux/ixp4xx-2.6/base-files/default/etc/init.d/netconfig
diff --git a/target/linux/rb532-2.6/base-files/etc/config/network b/target/linux/rb532-2.6/base-files/default/etc/config/network
index 827969057..827969057 100644
--- a/target/linux/rb532-2.6/base-files/etc/config/network
+++ b/target/linux/rb532-2.6/base-files/default/etc/config/network
diff --git a/target/linux/rb532-2.6/base-files/sbin/cf2nand b/target/linux/rb532-2.6/base-files/default/sbin/cf2nand
index 9cb216ca8..9cb216ca8 100755
--- a/target/linux/rb532-2.6/base-files/sbin/cf2nand
+++ b/target/linux/rb532-2.6/base-files/default/sbin/cf2nand
diff --git a/target/linux/sibyte-2.6/base-files/etc/config/network b/target/linux/sibyte-2.6/base-files/default/etc/config/network
index 9b65652f0..9b65652f0 100644
--- a/target/linux/sibyte-2.6/base-files/etc/config/network
+++ b/target/linux/sibyte-2.6/base-files/default/etc/config/network
diff --git a/target/linux/sibyte-2.6/base-files/etc/inittab b/target/linux/sibyte-2.6/base-files/default/etc/inittab
index a6f4e17f0..a6f4e17f0 100644
--- a/target/linux/sibyte-2.6/base-files/etc/inittab
+++ b/target/linux/sibyte-2.6/base-files/default/etc/inittab
diff --git a/target/linux/x86-2.6/base-files/etc/config/network b/target/linux/x86-2.6/base-files/default/etc/config/network
index 68d8e4240..68d8e4240 100644
--- a/target/linux/x86-2.6/base-files/etc/config/network
+++ b/target/linux/x86-2.6/base-files/default/etc/config/network