Some work towards multi-target support
This commit is contained in:
parent
379c293b8d
commit
3b8ad88ce4
17
Makefile
17
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
|
||||
|
2
include/config
Normal file
2
include/config
Normal file
@ -0,0 +1,2 @@
|
||||
CONFIG_BUSYBOX_CONFIG_SHA512SUM=y
|
||||
CONFIG_ATH_USER_REGD=y
|
2
targets/ar71xx-generic/config
Normal file
2
targets/ar71xx-generic/config
Normal file
@ -0,0 +1,2 @@
|
||||
CONFIG_TARGET_ar71xx=y
|
||||
CONFIG_TARGET_ROOTFS_JFFS2=n
|
Loading…
Reference in New Issue
Block a user