1 # Makefile for buildroot2
6 # This program is free software; you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; either version 2 of the License, or
9 # (at your option) any later version.
11 # This program is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 # General Public License for more details.
16 # You should have received a copy of the GNU General Public License
17 # along with this program; if not, write to the Free Software
18 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21 #--------------------------------------------------------------
22 # Just run 'make menuconfig', configure stuff, then run 'make'.
23 # You shouldn't need to mess with anything beyond this point...
24 #--------------------------------------------------------------
27 CONFIG_CONFIG_IN=Config.in
28 CONFIG_DEFCONFIG=.defconfig
30 DATE:=$(shell date +%Y%m%d)
32 noconfig_targets:=menuconfig xconfig config oldconfig randconfig \
33 defconfig allyesconfig allnoconfig release \
34 randpackageconfig allyespackageconfig allnopackageconfig \
37 # Strip quotes and then whitespaces
38 qstrip=$(strip $(subst ",,$(1)))
41 # Variables for use in Make constructs
44 space:=$(empty) $(empty)
46 # $(shell find . -name *_defconfig |sed 's/.*\///')
47 # Pull in the user's configuration file
48 ifeq ($(filter $(noconfig_targets),$(MAKECMDGOALS)),)
52 # Override BR2_DL_DIR if shell variable defined
53 ifneq ($(BUILDROOT_DL_DIR),)
54 BR2_DL_DIR:=$(BUILDROOT_DL_DIR)
57 # To put more focus on warnings, be less verbose as default
58 # Use 'make V=1' to see the full commands
60 ifeq ("$(origin V)", "command line")
68 ifeq ($(KBUILD_VERBOSE),1)
79 # we want bash as shell
80 SHELL:=$(shell if [ -x "$$BASH" ]; then echo $$BASH; \
81 else if [ -x /bin/bash ]; then echo /bin/bash; \
84 # kconfig uses CONFIG_SHELL
85 CONFIG_SHELL:=$(SHELL)
87 export SHELL CONFIG_SHELL quiet Q KBUILD_VERBOSE VERBOSE
117 HOSTAR:=$(shell which $(HOSTAR) || type -p $(HOSTAR) || echo ar)
118 HOSTAS:=$(shell which $(HOSTAS) || type -p $(HOSTAS) || echo as)
119 HOSTCC:=$(shell which $(HOSTCC) || type -p $(HOSTCC) || echo gcc)
120 HOSTCXX:=$(shell which $(HOSTCXX) || type -p $(HOSTCXX) || echo g++)
121 HOSTFC:=$(shell which $(HOSTLD) || type -p $(HOSTLD) || echo || which g77 || type -p g77 || echo gfortran)
122 HOSTCPP:=$(shell which $(HOSTCPP) || type -p $(HOSTCPP) || echo cpp)
123 HOSTLD:=$(shell which $(HOSTLD) || type -p $(HOSTLD) || echo ld)
124 HOSTLN:=$(shell which $(HOSTLN) || type -p $(HOSTLN) || echo ln)
125 HOSTNM:=$(shell which $(HOSTNM) || type -p $(HOSTNM) || echo nm)
127 ifndef CFLAGS_FOR_BUILD
128 CFLAGS_FOR_BUILD:=-g -O2
130 ifndef CXXFLAGS_FOR_BUILD
131 CXXFLAGS_FOR_BUILD:=-g -O2
133 ifndef FCFLAGS_FOR_BUILD
134 FCFLAGS_FOR_BUILD:=-g -O2
136 export HOSTAR HOSTAS HOSTCC HOSTCXX HOSTFC HOSTLD
139 ifeq ($(BR2_HAVE_DOT_CONFIG),y)
142 # Usage: cflags-y+=$(call cc-option, -march=winchip-c6, -march=i586)
143 # sets -march=winchip-c6 if supported else falls back to -march=i586
144 # without checking the latter.
145 cc-option=$(shell if $(TARGET_CC) $(TARGET_CFLAGS) $(1) -S -o /dev/null -xc /dev/null \
146 > /dev/null 2>&1; then echo "$(1)"; else echo "$(2)"; fi ;)
148 #############################################################
150 # Hide troublesome environment variables from sub processes
152 #############################################################
153 unexport CROSS_COMPILE
156 #############################################################
158 # Setup the proper filename extensions for the host
160 ##############################################################
161 ifneq ($(findstring linux,$(BR2_GNU_BUILD_SUFFIX)),)
166 ifneq ($(findstring apple,$(BR2_GNU_BUILD_SUFFIX)),)
171 ifneq ($(findstring cygwin,$(BR2_GNU_BUILD_SUFFIX)),)
175 HOST_LOADLIBES="-lcurses -lintl"
176 export HOST_LOADLIBES
178 ifneq ($(findstring mingw,$(BR2_GNU_BUILD_SUFFIX)),)
184 # The preferred type of libs we build for the target
185 ifeq ($(BR2_PREFER_STATIC_LIB),y)
187 #PREFERRED_LIB_FLAGS:=--disable-shared --enable-static
190 #PREFERRED_LIB_FLAGS:=--disable-static --enable-shared
192 PREFERRED_LIB_FLAGS:=--enable-static --enable-shared
194 ##############################################################
196 # The list of stuff to build for the target toolchain
197 # along with the packages to build for the target.
199 ##############################################################
200 ifeq ($(BR2_TOOLCHAIN_SOURCE),y)
201 BASE_TARGETS:=uclibc-configured binutils cross_compiler uclibc-target-utils kernel-headers
207 # silent mode requested?
208 QUIET:=$(if $(findstring s,$(MAKEFLAGS)),-q)
210 # Strip off the annoying quoting
211 ARCH:=$(call qstrip,$(BR2_ARCH))
212 ifeq ($(ARCH),xtensa)
213 ARCH:=$(ARCH)_$(call qstrip,$(BR2_xtensa_core_name))
215 WGET:=$(call qstrip,$(BR2_WGET)) $(SPIDER) $(QUIET)
216 SVN_CO:=$(call qstrip,$(BR2_SVN_CO)) $(QUIET)
217 SVN_UP:=$(call qstrip,$(BR2_SVN_UP)) $(QUIET)
218 BZR_CO:=$(call qstrip,$(BR2_BZR_CO)) $(QUIET)
219 BZR_UP:=$(call qstrip,$(BR2_BZR_UP)) $(QUIET)
220 GIT:=$(call qstrip,$(BR2_GIT)) $(QUIET)
221 ZCAT:=$(call qstrip,$(BR2_ZCAT))
222 BZCAT:=$(call qstrip,$(BR2_BZCAT))
223 TAR_OPTIONS=$(call qstrip,$(BR2_TAR_OPTIONS)) -xf
225 ifneq ("$(origin O)", "command line")
228 # other packages might also support Linux-style out of tree builds
229 # with the O=<dir> syntax (E.G. Busybox does). As make automatically
230 # forwards command line variable definitions those packages get very
231 # confused. Fix this by telling make to not do so
235 # bash prints the name of the directory on 'cd <dir>' if CDPATH is
236 # set, so unset it here to not cause problems. Notice that the export
237 # line doesn't affect the environment of $(shell ..) calls, so
238 # explictly throw away any output from 'cd' here.
240 BASE_DIR := $(shell mkdir -p $(O) && cd $(O) >/dev/null && pwd)
241 $(if $(BASE_DIR),, $(error output directory "$(O)" does not exist))
243 DL_DIR=$(call qstrip,$(BR2_DL_DIR))
248 BUILD_DIR:=$(BASE_DIR)/build
250 GNU_TARGET_SUFFIX:=-$(call qstrip,$(BR2_GNU_TARGET_SUFFIX))
252 STAGING_DIR:=$(call qstrip,$(BR2_STAGING_DIR))
254 # packages compiled for the host goes here
255 HOST_DIR:=$(BASE_DIR)/host
257 # stamp (dependency) files go here
258 STAMP_DIR:=$(BASE_DIR)/stamps
260 BINARIES_DIR:=$(BASE_DIR)/images
261 TARGET_DIR:=$(BASE_DIR)/target
263 # define values for prepatched source trees for toolchains
264 VENDOR_SITE:=$(call qstrip,$(BR2_VENDOR_SITE))
265 VENDOR_SUFFIX:=$(call qstrip,$(BR2_VENDOR_SUFFIX))
266 VENDOR_BINUTILS_RELEASE:=$(call qstrip,$(BR2_VENDOR_BINUTILS_RELEASE))
267 VENDOR_GCC_RELEASE:=$(call qstrip,$(BR2_VENDOR_GCC_RELEASE))
268 VENDOR_UCLIBC_RELEASE:=$(call qstrip,$(BR2_VENDOR_UCLIBC_RELEASE))
269 VENDOR_GDB_RELEASE:=$(call qstrip,$(BR2_VENDOR_GDB_RELEASE))
270 VENDOR_PATCH_DIR:=$(call qstrip,$(BR2_VENDOR_PATCH_DIR))
272 BR2_DEPENDS_DIR=$(BUILD_DIR)/buildroot-config
274 include toolchain/Makefile.in
275 include package/Makefile.in
277 #############################################################
279 # You should probably leave this stuff alone unless you know
280 # what you are doing.
282 #############################################################
286 # In this section, we need .config
289 # We also need the various per-package makefiles, which also add
290 # each selected package to TARGETS if that package was selected
291 # in the .config file.
292 ifeq ($(BR2_TOOLCHAIN_SOURCE),y)
293 # avoid pulling in external toolchain which is broken for toplvl parallel builds
295 include toolchain/dependencies/dependencies.mk
296 include toolchain/binutils/binutils.mk
297 include toolchain/ccache/ccache.mk
298 include toolchain/elf2flt/elf2flt.mk
299 include toolchain/gcc/gcc-uclibc-3.x.mk
300 include toolchain/gcc/gcc-uclibc-4.x.mk
301 include toolchain/gdb/gdb.mk
302 include toolchain/kernel-headers/kernel-headers.mk
303 include toolchain/mklibs/mklibs.mk
304 include toolchain/sstrip/sstrip.mk
305 include toolchain/uClibc/uclibc.mk
307 include toolchain/*/*.mk
310 ifeq ($(BR2_PACKAGE_LINUX),y)
311 TARGETS+=linux26-modules
314 include package/*/*.mk
316 TARGETS+=target-finalize
318 ifeq ($(BR2_ENABLE_LOCALE_PURGE),y)
319 TARGETS+=target-purgelocales
322 # target stuff is last so it can override anything else
323 include target/Makefile.in
325 TARGETS+=erase-fakeroots
327 TARGETS_CLEAN:=$(patsubst %,%-clean,$(TARGETS))
328 TARGETS_SOURCE:=$(patsubst %,%-source,$(TARGETS) $(BASE_TARGETS))
329 TARGETS_DIRCLEAN:=$(patsubst %,%-dirclean,$(TARGETS))
330 TARGETS_ALL:=$(patsubst %,__real_tgt_%,$(TARGETS))
331 # all targets depend on the crosscompiler and it's prerequisites
332 $(TARGETS_ALL): __real_tgt_%: $(BASE_TARGETS) %
334 $(BR2_DEPENDS_DIR): .config
337 cp -dpRf $(CONFIG)/buildroot-config $@
339 dirs: $(DL_DIR) $(TOOLCHAIN_DIR) $(BUILD_DIR) $(STAGING_DIR) $(TARGET_DIR) \
340 $(HOST_DIR) $(BR2_DEPENDS_DIR) $(BINARIES_DIR) $(STAMP_DIR)
342 $(BASE_TARGETS): dirs
344 world: dependencies dirs $(BASE_TARGETS) $(TARGETS_ALL)
347 .PHONY: all world dirs clean distclean source \
348 $(BASE_TARGETS) $(TARGETS) $(TARGETS_ALL) \
349 $(TARGETS_CLEAN) $(TARGETS_DIRCLEAN) $(TARGETS_SOURCE) \
350 $(DL_DIR) $(TOOLCHAIN_DIR) $(BUILD_DIR) $(STAGING_DIR) $(TARGET_DIR) \
351 $(HOST_DIR) $(BR2_DEPENDS_DIR) $(BINARIES_DIR) $(STAMP_DIR)
353 #############################################################
355 # staging and target directories do NOT list these as
356 # dependencies anywhere else
358 #############################################################
359 $(DL_DIR) $(TOOLCHAIN_DIR) $(BUILD_DIR) $(HOST_DIR) $(BINARIES_DIR) $(STAMP_DIR):
363 @mkdir -p $(STAGING_DIR)/bin
364 @mkdir -p $(STAGING_DIR)/lib
365 ifeq ($(BR2_TOOLCHAIN_SYSROOT),y)
366 @mkdir -p $(STAGING_DIR)/usr/lib
368 ifneq ($(BR2_TOOLCHAIN_EXTERNAL),y)
369 @ln -snf . $(STAGING_DIR)/usr
370 @mkdir -p $(STAGING_DIR)/usr/$(REAL_GNU_TARGET_NAME)
371 @ln -snf ../lib $(STAGING_DIR)/usr/lib
372 @ln -snf ../lib $(STAGING_DIR)/usr/$(REAL_GNU_TARGET_NAME)/lib
375 @mkdir -p $(STAGING_DIR)/usr/include
378 mkdir -p $(TARGET_DIR)
379 if ! [ -d "$(TARGET_DIR)/bin" ]; then \
380 if [ -d "$(TARGET_SKELETON)" ]; then \
381 cp -fa $(TARGET_SKELETON)/* $(TARGET_DIR)/; \
383 if [ -d "$(TARGET_SKELETON_PATCH)" ]; then \
384 toolchain/patch-kernel.sh $(TARGET_DIR) $(TARGET_SKELETON_PATCH)/ \*patch\*; \
386 touch $(STAGING_DIR)/.fakeroot.00000; \
388 -find $(TARGET_DIR) -type d -name CVS -print0 -o -name .svn -print0 | xargs -0 rm -rf
389 -find $(TARGET_DIR) -type f -name .empty -print0 | xargs -0 rm -rf
392 $(TARGET_DIR): $(BUILD_DIR)/.root
395 rm -f $(BUILD_DIR)/.fakeroot*
398 ifeq ($(BR2_HAVE_DEVFILES),y)
399 ( scripts/copy.sh $(STAGING_DIR) $(TARGET_DIR) )
401 rm -rf $(TARGET_DIR)/usr/include $(TARGET_DIR)/usr/lib/pkgconfig
402 find $(TARGET_DIR)/lib \( -name '*.a' -o -name '*.la' \) -print0 | xargs -0 rm -f
403 find $(TARGET_DIR)/usr/lib \( -name '*.a' -o -name '*.la' \) -print0 | xargs -0 rm -f
405 ifneq ($(BR2_HAVE_MANPAGES),y)
406 rm -rf $(TARGET_DIR)/usr/man $(TARGET_DIR)/usr/share/man
408 ifneq ($(BR2_HAVE_INFOPAGES),y)
409 rm -rf $(TARGET_DIR)/usr/info $(TARGET_DIR)/usr/share/info
411 find $(TARGET_DIR) -type f -perm +111 | xargs $(STRIPCMD) 2>/dev/null || true
412 $(TARGET_LDCONFIG) -r $(TARGET_DIR) 2>/dev/null
414 mkdir -p $(TARGET_DIR)/etc
415 echo $(BR2_VERSION)$(shell $(TOPDIR)/scripts/setlocalversion) > \
416 $(TARGET_DIR)/etc/br-version
418 ifneq ($(BR2_ROOTFS_POST_BUILD_SCRIPT),"")
419 $(BR2_ROOTFS_POST_BUILD_SCRIPT) $(TARGET_DIR)
422 ifeq ($(BR2_ENABLE_LOCALE_PURGE),y)
423 LOCALE_WHITELIST=$(BUILD_DIR)/locales.nopurge
424 LOCALE_NOPURGE=$(call qstrip,$(BR2_ENABLE_LOCALE_WHITELIST))
427 rm -f $(LOCALE_WHITELIST)
428 for i in $(LOCALE_NOPURGE); do echo $$i >> $(LOCALE_WHITELIST); done
430 for dir in $(wildcard $(addprefix $(TARGET_DIR),/usr/share/locale /usr/share/X11/locale /usr/man /usr/share/man)); \
432 for lang in $$(cd $$dir; ls .|grep -v man); \
434 grep -qx $$lang $(LOCALE_WHITELIST) || rm -rf $$dir/$$lang; \
439 source: $(TARGETS_SOURCE) $(HOST_SOURCE)
442 $(MAKE) SPIDER=--spider source
445 @$(MAKE) -Bs BR2_WGET=$(TOPDIR)/toolchain/wget-show-external-deps.sh \
446 SPIDER=--spider source
448 ifeq ($(BR2_CONFIG_CACHE),y)
449 # drop configure cache if configuration is changed
450 $(BUILD_DIR)/tgt-config.cache: .config
454 $(BASE_TARGETS): | $(BUILD_DIR)/tgt-config.cache
457 else # ifeq ($(BR2_HAVE_DOT_CONFIG),y)
462 # ---------------------------------------------------------------------------
464 HOSTCFLAGS=$(CFLAGS_FOR_BUILD)
468 @mkdir -p $(CONFIG)/buildroot-config
469 $(MAKE) CC="$(HOSTCC)" -C $(CONFIG) conf
470 -@if [ ! -f .config ]; then \
471 cp $(CONFIG_DEFCONFIG) .config; \
475 @mkdir -p $(CONFIG)/buildroot-config
476 $(MAKE) CC="$(HOSTCC)" -C $(CONFIG) mconf
477 -@if [ ! -f .config ]; then \
478 cp $(CONFIG_DEFCONFIG) .config; \
482 @mkdir -p $(CONFIG)/buildroot-config
483 $(MAKE) CC="$(HOSTCC)" -C $(CONFIG) qconf
484 -@if [ ! -f .config ]; then \
485 cp $(CONFIG_DEFCONFIG) .config; \
488 xconfig: $(CONFIG)/qconf
489 @mkdir -p $(CONFIG)/buildroot-config
490 @if ! KCONFIG_AUTOCONFIG=$(CONFIG)/buildroot-config/auto.conf \
491 KCONFIG_AUTOHEADER=$(CONFIG)/buildroot-config/autoconf.h \
492 $(CONFIG)/qconf $(CONFIG_CONFIG_IN); then \
493 test -f .config.cmd || rm -f .config; \
496 menuconfig: $(CONFIG)/mconf
497 @mkdir -p $(CONFIG)/buildroot-config
498 @if ! KCONFIG_AUTOCONFIG=$(CONFIG)/buildroot-config/auto.conf \
499 KCONFIG_AUTOHEADER=$(CONFIG)/buildroot-config/autoconf.h \
500 $(CONFIG)/mconf $(CONFIG_CONFIG_IN); then \
501 test -f .config.cmd || rm -f .config; \
504 config: $(CONFIG)/conf
505 @mkdir -p $(CONFIG)/buildroot-config
506 @KCONFIG_AUTOCONFIG=$(CONFIG)/buildroot-config/auto.conf \
507 KCONFIG_AUTOHEADER=$(CONFIG)/buildroot-config/autoconf.h \
508 $(CONFIG)/conf $(CONFIG_CONFIG_IN)
510 oldconfig: $(CONFIG)/conf
511 @mkdir -p $(CONFIG)/buildroot-config
512 @KCONFIG_AUTOCONFIG=$(CONFIG)/buildroot-config/auto.conf \
513 KCONFIG_AUTOHEADER=$(CONFIG)/buildroot-config/autoconf.h \
514 $(CONFIG)/conf -o $(CONFIG_CONFIG_IN)
516 randconfig: $(CONFIG)/conf
517 @mkdir -p $(CONFIG)/buildroot-config
518 @KCONFIG_AUTOCONFIG=$(CONFIG)/buildroot-config/auto.conf \
519 KCONFIG_AUTOHEADER=$(CONFIG)/buildroot-config/autoconf.h \
520 $(CONFIG)/conf -r $(CONFIG_CONFIG_IN)
522 allyesconfig: $(CONFIG)/conf
523 cat $(CONFIG_DEFCONFIG) > .config
524 @mkdir -p $(CONFIG)/buildroot-config
525 @KCONFIG_AUTOCONFIG=$(CONFIG)/buildroot-config/auto.conf \
526 KCONFIG_AUTOHEADER=$(CONFIG)/buildroot-config/autoconf.h \
527 $(CONFIG)/conf -y $(CONFIG_CONFIG_IN)
529 allnoconfig: $(CONFIG)/conf
530 @mkdir -p $(CONFIG)/buildroot-config
531 @KCONFIG_AUTOCONFIG=$(CONFIG)/buildroot-config/auto.conf \
532 KCONFIG_AUTOHEADER=$(CONFIG)/buildroot-config/autoconf.h \
533 $(CONFIG)/conf -n $(CONFIG_CONFIG_IN)
535 randpackageconfig: $(CONFIG)/conf
536 @mkdir -p $(CONFIG)/buildroot-config
537 @grep -v BR2_PACKAGE_ .config > .config.nopkg
538 @KCONFIG_AUTOCONFIG=$(CONFIG)/buildroot-config/auto.conf \
539 KCONFIG_AUTOHEADER=$(CONFIG)/buildroot-config/autoconf.h \
540 KCONFIG_ALLCONFIG=.config.nopkg \
541 $(CONFIG)/conf -r $(CONFIG_CONFIG_IN)
544 allyespackageconfig: $(CONFIG)/conf
545 @mkdir -p $(CONFIG)/buildroot-config
546 @grep -v BR2_PACKAGE_ .config > .config.nopkg
547 @KCONFIG_AUTOCONFIG=$(CONFIG)/buildroot-config/auto.conf \
548 KCONFIG_AUTOHEADER=$(CONFIG)/buildroot-config/autoconf.h \
549 KCONFIG_ALLCONFIG=.config.nopkg \
550 $(CONFIG)/conf -y $(CONFIG_CONFIG_IN)
553 allnopackageconfig: $(CONFIG)/conf
554 @mkdir -p $(CONFIG)/buildroot-config
555 @grep -v BR2_PACKAGE_ .config > .config.nopkg
556 @KCONFIG_AUTOCONFIG=$(CONFIG)/buildroot-config/auto.conf \
557 KCONFIG_AUTOHEADER=$(CONFIG)/buildroot-config/autoconf.h \
558 KCONFIG_ALLCONFIG=.config.nopkg \
559 $(CONFIG)/conf -n $(CONFIG_CONFIG_IN)
562 defconfig: $(CONFIG)/conf
563 @mkdir -p $(CONFIG)/buildroot-config
564 @KCONFIG_AUTOCONFIG=$(CONFIG)/buildroot-config/auto.conf \
565 KCONFIG_AUTOHEADER=$(CONFIG)/buildroot-config/autoconf.h \
566 $(CONFIG)/conf -d $(CONFIG_CONFIG_IN)
568 # check if download URLs are outdated
569 source-check: allyesconfig
570 $(MAKE) _source-check
572 endif # ifeq ($(BR2_HAVE_DOT_CONFIG),y)
574 #############################################################
576 # Cleanup and misc junk
578 #############################################################
580 rm -rf $(STAGING_DIR) $(TARGET_DIR) $(BINARIES_DIR) $(HOST_DIR) \
581 $(STAMP_DIR) $(BUILD_DIR) $(TOOLCHAIN_DIR)
584 ifeq ($(DL_DIR),$(TOPDIR)/dl)
590 rm -rf .config .config.old .config.cmd .auto.deps
591 -$(MAKE) -C $(CONFIG) clean
594 rm -f $(BUILD_DIR)/tgt-config.cache
596 %_defconfig: $(TOPDIR)/configs/%_defconfig
600 configured: dirs host-sed kernel-headers uclibc-config busybox-config linux26-config
602 prepatch: gcc-patched binutils-patched gdb-patched uclibc-patched
604 cross: $(BASE_TARGETS)
608 @echo ' clean - delete all files created by build'
609 @echo ' distclean - delete all non-source files (including .config)'
612 @echo ' all - make world'
614 @echo 'Configuration:'
615 @echo ' menuconfig - interactive curses-based configurator'
616 @echo ' xconfig - interactive Qt-based configurator'
617 @echo ' oldconfig - resolve any unresolved symbols in .config'
618 @echo ' randconfig - New config with random answer to all options'
619 @echo ' defconfig - New config with default answer to all options'
620 @echo ' allyesconfig - New config where all options are accepted with yes'
621 @echo ' allnoconfig - New config where all options are answered with no'
622 @echo ' randpackageconfig - New config with random answer to package options'
623 @echo ' allyespackageconfig - New config where pkg options are accepted with yes'
624 @echo ' allnopackageconfig - New config where package options are answered with no'
625 @echo ' configured - make {uclibc/busybox/linux26}-config'
627 @echo 'Miscellaneous:'
628 @echo ' source - download all sources needed for offline-build'
629 @echo ' source-check - check all packages for valid download URLs'
630 @echo ' external-deps - list external packages used'
631 @echo ' flush - flush configuration cache'
633 @$(foreach b, $(notdir $(wildcard $(TOPDIR)/configs/*_defconfig)), \
634 printf " %-35s - Build for %s\\n" $(b) $(b:_defconfig=);)
636 @echo 'See docs/README and docs/buildroot.html for further details'
640 OUT=buildroot-$$(grep -A2 BR2_VERSION $(CONFIG_CONFIG_IN)|grep default|cut -f2 -d\"); \
641 rm -rf ../$$OUT*; cp -al . ../$$OUT; cd ..; \
642 tar cfz $$OUT.tar.gz --exclude .svn --exclude .git --exclude \*~ $$OUT; \
645 .PHONY: $(noconfig_targets)