Projecte

General

Perfil

« Anterior | Següent » 

Revisió 92b6b927

Afegit per Pau Escrich fa aproximadament 11 anys

Adds a new way to generate/store the configuration files for each target:
There are profiles (such as ath-qmp-small-node) which are shared between all similar kind of devices (i.e ubiquiti devices)
And individual configurations (optional) which can be used to specify extra options for the device

Visualitza les diferències:

Makefile
include targets.mk
PROFILE ?= ath-qmp-tiny-node
TIMESTAMP = $(shell date +%Y%m%d_%H%M)
#Checking if developer mode is enabled and if target is defined before
......
endef
define copy_config
@echo "Using profile $(PROFILE)"
cp -f $(CONFIG_DIR)/$(PROFILE) $(CONFIG) || echo "WARNING: Config file not found!"
[ -f $(CONFIG_DIR)/targets/$(TARGET) ] && cat $(CONFIG_DIR)/targets/$(TARGET) >> $(CONFIG) || true
cd $(BUILD_PATH) && make defconfig
endef
define copy_config_obsolete
@echo "Syncronizing new configuration"
cp -f $(CONFIG_DIR)/$(TARGET_CONFIGS)/config $(CONFIG) || echo "WARNING: Config file not found!"
cd $(BUILD_PATH) && ./scripts/diffconfig.sh > .config.tmp
......
@[ -f $(MY_CONFIGS)/$(TARGET_CONFIGS)/kernel_config ] && cat $(MY_CONFIGS)/$(TARGET_CONFIGS)/kernel_config >> $(CONFIG) || true
endef
define update_feeds
@echo "Updating feed $(1)"
./$(BUILD_DIR)/$(1)/scripts/feeds update -a

També disponible a: Unified diff