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