All pastes #376252 Raw Edit

profil

public text v1 · immutable
#376252 ·published 2007-02-28 22:49 UTC
rendered paste body
--- k.o/include/target.mk	2007-02-28 16:23:01.778227500 -0600
+++ k.c/include/target.mk	2007-02-28 15:31:47.850119000 -0600
@@ -5,6 +5,23 @@
 # See /LICENSE for more information.
 #
 
+define AddProfile
+  $(eval $(call Profile/Default))
+  $(eval $(call Profile/$(1)))
+  ifneq ($(ID),)
+    ifeq ($(PROFILE),)
+      PROFILE:=$(ID)
+    endif
+	$(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)
--- k.o/package/base-files/Makefile	2007-02-28 16:23:07.374577250 -0600
+++ k.c/package/base-files/Makefile	2007-02-28 15:33:33.424717000 -0600
@@ -96,8 +96,8 @@
 
 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/$(PROFILE)-base-files/. ]; then \
+		$(CP) $(PLATFORM_DIR)/base-files/$(PROFILE)-base-files/* $(1)/; \
 	fi
 	$(SED) 's,$$$$R,r$(REV),g' $(1)/etc/banner
 	$(SED) 's,$$$$S,$(BOARD)-$(KERNEL),g' $(1)/etc/ipkg.conf