--- k.o/package/base-files/Makefile 2007-03-01 11:20:13.830464250 -0600 +++ kami//package/base-files/Makefile 2007-03-02 00:09:09.557767000 -0600 @@ -96,8 +96,13 @@ 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-base-files/. ]; then \ + $(CP) $(PLATFORM_DIR)/base-files/Default-base-files/* $(1)/; \ + fi + if [ "$(PROFILE)" != "Default" ]; then \ + if [ -d $(PLATFORM_DIR)/base-files/$(PROFILE)-base-files/. ]; then \ + $(CP) $(PLATFORM_DIR)/base-files/$(PROFILE)-base-files/* $(1)/; \ + fi; \ fi $(SED) 's,$$$$R,r$(REV),g' $(1)/etc/banner $(SED) 's,$$$$S,$(BOARD)-$(KERNEL),g' $(1)/etc/ipkg.conf --- k.o/include/target.mk 2007-03-01 11:20:13.830464250 -0600 +++ kami/include/target.mk 2007-03-01 23:33:34.504334500 -0600 @@ -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)