-export IS_TTY=$(shell tty -s && echo 1 || echo 0)
-
-# override variables from rules.mk
-PACKAGE_DIR:=$(TOPDIR)/packages
-IPKG:= \
- IPKG_TMP="$(TOPDIR)/tmp/ipkgtmp" \
- IPKG_INSTROOT="$(TARGET_DIR)" \
- IPKG_CONF_DIR="$(TOPDIR)/tmp" \
- IPKG_OFFLINE_ROOT="$(TARGET_DIR)" \
- $(SCRIPT_DIR)/ipkg -force-defaults
-
-
-define Profile/Default
- ID:=
- NAME:=
- PACKAGES:=
-endef
-
-define AddProfile
- $(eval $(call Profile/Default))
- $(eval $(call Profile/$(1)))
- ifneq ($(ID),)
- ifeq ($(PROFILE),)
- PROFILE:=$(ID)
- endif
- $(ID)_NAME:=$(NAME)
- $(ID)_PACKAGES:=$(PACKAGES)
- PROFILE_LIST += \
- echo '$(ID):'; [ -z '$(NAME)' ] || echo ' $(NAME)'; echo ' Packages: $(PACKAGES)';
- endif
-endef