Some work towards multi-target support

This commit is contained in:
Matthias Schiffer 2014-05-09 11:54:29 +02:00
parent 379c293b8d
commit 3b8ad88ce4
3 changed files with 13 additions and 8 deletions

View File

@ -172,14 +172,15 @@ feeds: FORCE
+$(GLUONMAKE) refresh_feeds V=s$(OPENWRT_VERBOSE)
config: FORCE
echo \
'CONFIG_TARGET_$(BOARD)=y' \
'CONFIG_TARGET_ROOTFS_JFFS2=n' \
'CONFIG_BUSYBOX_CONFIG_SHA512SUM=y' \
'CONFIG_ATH_USER_REGD=y' \
'$(patsubst %,CONFIG_PACKAGE_%=m,$(sort $(GLUON_DEFAULT_PACKAGES) $(GLUON_SITE_PACKAGES) $(PROFILE_PACKAGES)))' \
| sed -e 's/ /\n/g' > .config
$(_SINGLE)$(SUBMAKE) defconfig OPENWRT_BUILD=
( \
cat $(GLUONDIR)/include/config $(GLUONDIR)/targets/$(BOARD)$(if $(SUBTARGET),-$(SUBTARGET))/config; \
echo '$(patsubst %,CONFIG_PACKAGE_%=m,$(sort $(filter-out -%,$(GLUON_DEFAULT_PACKAGES) $(GLUON_SITE_PACKAGES) $(PROFILE_PACKAGES))))' \
| sed -e 's/ /\n/g'; \
) > $(BOARD_BUILDDIR)/config
+$(NO_TRACE_MAKE) scripts/config/conf
scripts/config/conf -D $(BOARD_BUILDDIR)/config -w $(BOARD_BUILDDIR)/config Config.in
ln -sf $(BOARD_BUILDDIR)/config .config
.config:
+$(GLUONMAKE) config

2
include/config Normal file
View File

@ -0,0 +1,2 @@
CONFIG_BUSYBOX_CONFIG_SHA512SUM=y
CONFIG_ATH_USER_REGD=y

View File

@ -0,0 +1,2 @@
CONFIG_TARGET_ar71xx=y
CONFIG_TARGET_ROOTFS_JFFS2=n