summaryrefslogtreecommitdiff
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 bd3ceb9..6a136a1 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 5cbef91..f02f1c9 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 774bbc7..774bbc7 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 911134b..911134b 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 425bc15..425bc15 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 5b676ca..5b676ca 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 6b90bdc..6b90bdc 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 1d9b55b..1d9b55b 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 c3d9a64..c3d9a64 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 3b08554..3b08554 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 0640b61..0640b61 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 4cc23d2..4cc23d2 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 1c4e59f..1c4e59f 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 0544339..0544339 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 ffa6072..ffa6072 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 1d9b55b..1d9b55b 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 ded5f4b..ded5f4b 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 8279690..8279690 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 9cb216c..9cb216c 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 9b65652..9b65652 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 a6f4e17..a6f4e17 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 68d8e42..68d8e42 100644
--- a/target/linux/x86-2.6/base-files/etc/config/network
+++ b/target/linux/x86-2.6/base-files/default/etc/config/network