From 3b8ad88ce4f3c204644c8725d77a2ed815b287ba Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Fri, 9 May 2014 11:54:29 +0200 Subject: [PATCH] Some work towards multi-target support --- Makefile | 17 +++++++++-------- include/config | 2 ++ targets/ar71xx-generic/config | 2 ++ 3 files changed, 13 insertions(+), 8 deletions(-) create mode 100644 include/config create mode 100644 targets/ar71xx-generic/config diff --git a/Makefile b/Makefile index 03a0332c..ffce8d55 100644 --- a/Makefile +++ b/Makefile @@ -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 diff --git a/include/config b/include/config new file mode 100644 index 00000000..35d6c513 --- /dev/null +++ b/include/config @@ -0,0 +1,2 @@ +CONFIG_BUSYBOX_CONFIG_SHA512SUM=y +CONFIG_ATH_USER_REGD=y diff --git a/targets/ar71xx-generic/config b/targets/ar71xx-generic/config new file mode 100644 index 00000000..e8c1f032 --- /dev/null +++ b/targets/ar71xx-generic/config @@ -0,0 +1,2 @@ +CONFIG_TARGET_ar71xx=y +CONFIG_TARGET_ROOTFS_JFFS2=n