Remove some redundancies from the makefile

This commit is contained in:
Matthias Schiffer 2013-02-17 21:29:20 +01:00
parent bae01b742b
commit 50a91212d4

View File

@ -4,6 +4,9 @@ LC_ALL:=C
LANG:=C LANG:=C
export LC_ALL LANG export LC_ALL LANG
empty:=
space:= $(empty) $(empty)
ifneq ($(GLUON_BUILD),1) ifneq ($(GLUON_BUILD),1)
override GLUON_BUILD=1 override GLUON_BUILD=1
@ -42,8 +45,6 @@ export TOPDIR
include $(TOPDIR)/include/host.mk include $(TOPDIR)/include/host.mk
empty:=
space:= $(empty) $(empty)
_SINGLE=export MAKEFLAGS=$(space); _SINGLE=export MAKEFLAGS=$(space);
override OPENWRT_BUILD=1 override OPENWRT_BUILD=1
@ -85,10 +86,6 @@ include package/Makefile
include tools/Makefile include tools/Makefile
include toolchain/Makefile include toolchain/Makefile
null :=
space := ${null} ${null}
${space} := ${space}
BOARD := ar71xx BOARD := ar71xx
PROFILES := PROFILES :=
PROFILE_PACKAGES := PROFILE_PACKAGES :=
@ -124,13 +121,14 @@ feeds: FORCE
scripts/feeds uninstall -a scripts/feeds uninstall -a
scripts/feeds update -a scripts/feeds update -a
scripts/feeds install -a scripts/feeds install -a
rm -f $(TMP_DIR)/info/.files-packageinfo-$(SCAN_COOKIE) rm -f $(TMP_DIR)/info/.files-packageinfo-$(SCAN_COOKIE)
$(SUBMAKE) prepare-tmpinfo OPENWRT_BUILD=0 $(SUBMAKE) prepare-tmpinfo OPENWRT_BUILD=0
config: FORCE config: FORCE
echo -e 'CONFIG_TARGET_$(BOARD)=y\nCONFIG_TARGET_ROOTFS_JFFS2=n\n$(subst ${ },\n,$(patsubst %,CONFIG_PACKAGE_%=m,$(GLUON_PACKAGES) $(PROFILE_PACKAGES)))' > .config echo -e 'CONFIG_TARGET_$(BOARD)=y\nCONFIG_TARGET_ROOTFS_JFFS2=n\n$(subst ${space},\n,$(patsubst %,CONFIG_PACKAGE_%=m,$(GLUON_PACKAGES) $(PROFILE_PACKAGES)))' > .config
$(SUBMAKE) defconfig OPENWRT_BUILD=0 $(SUBMAKE) defconfig OPENWRT_BUILD=0
toolchain: $(toolchain/stamp-install) $(tools/stamp-install) toolchain: $(toolchain/stamp-install) $(tools/stamp-install)