summaryrefslogtreecommitdiff
path: root/cleopatre/buildroot/target/device/Spidcom/defconfig.mk
blob: 1e2ea38de87d1ca465a93e6f84fc9e54cbb1fc18 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
TARGET_SPIDCOM_DIR:=target/device/Spidcom
SPIDCOM_DEFCONFIGS:=$(patsubst %/desc,%_defconfig, $(shell cd $(TARGET_SPIDCOM_DIR)/targets && ls */desc))

$(SPIDCOM_DEFCONFIGS): $(CONFIG)/conf
	$(TARGET_SPIDCOM_DIR)/desc.py \
			--common-dir $(TARGET_SPIDCOM_DIR)/common \
			--desc $(TARGET_SPIDCOM_DIR)/targets/$(patsubst %_defconfig,%,$@)/desc \
			--gen defconfig > .config
	# If CCache tool exists, replace the BR2_TOOLCHAIN_EXTERNAL_PATH to use it.
	if [ -e /opt/spidcom/spc300/ccache ]; then sed -i '/BR2_TOOLCHAIN_EXTERNAL_PATH=/s:spc300/usr:spc300/ccache:' .config; fi;
	-@$(MAKE) oldconfig
	# Generate response file
	-@$(MAKE) response_file