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 # This top-level Makefile can *not* be executed in parallel
24 #--------------------------------------------------------------
25 # Just run 'make menuconfig', configure stuff, then run 'make'.
26 # You shouldn't need to mess with anything beyond this point...
27 #--------------------------------------------------------------
30 CONFIG_CONFIG_IN=Config.in
32 DATE:=$(shell date +%Y%m%d)
34 noconfig_targets:=menuconfig nconfig gconfig xconfig config oldconfig randconfig \
35 defconfig %_defconfig savedefconfig allyesconfig allnoconfig silentoldconfig release \
36 randpackageconfig allyespackageconfig allnopackageconfig \
39 # Strip quotes and then whitespaces
40 qstrip=$(strip $(subst ",,$(1)))
43 # Variables for use in Make constructs
46 space:=$(empty) $(empty)
48 ifneq ("$(origin O)", "command line")
53 # other packages might also support Linux-style out of tree builds
54 # with the O=<dir> syntax (E.G. Busybox does). As make automatically
55 # forwards command line variable definitions those packages get very
56 # confused. Fix this by telling make to not do so
58 # strangely enough O is still passed to submakes with MAKEOVERRIDES
59 # (with make 3.81 atleast), the only thing that changes is the output
60 # of the origin function (command line -> environment).
61 # Unfortunately some packages don't look at origin (E.G. uClibc 0.9.31+)
62 # To really make O go away, we have to override it.
65 # we need to pass O= everywhere we call back into the toplevel makefile
66 EXTRAMAKEARGS = O=$(O)
70 # $(shell find . -name *_defconfig |sed 's/.*\///')
71 # Pull in the user's configuration file
72 ifeq ($(filter $(noconfig_targets),$(MAKECMDGOALS)),)
73 -include $(CONFIG_DIR)/.config
76 # Override BR2_DL_DIR if shell variable defined
77 ifneq ($(BUILDROOT_DL_DIR),)
78 BR2_DL_DIR:=$(BUILDROOT_DL_DIR)
81 # To put more focus on warnings, be less verbose as default
82 # Use 'make V=1' to see the full commands
84 ifeq ("$(origin V)", "command line")
92 ifeq ($(KBUILD_VERBOSE),1)
103 # we want bash as shell
104 SHELL:=$(shell if [ -x "$$BASH" ]; then echo $$BASH; \
105 else if [ -x /bin/bash ]; then echo /bin/bash; \
106 else echo sh; fi; fi)
108 # kconfig uses CONFIG_SHELL
109 CONFIG_SHELL:=$(SHELL)
111 export SHELL CONFIG_SHELL quiet Q KBUILD_VERBOSE VERBOSE
141 HOSTAR:=$(shell which $(HOSTAR) || type -p $(HOSTAR) || echo ar)
142 HOSTAS:=$(shell which $(HOSTAS) || type -p $(HOSTAS) || echo as)
143 HOSTCC:=$(shell which $(HOSTCC) || type -p $(HOSTCC) || echo gcc)
144 HOSTCXX:=$(shell which $(HOSTCXX) || type -p $(HOSTCXX) || echo g++)
145 HOSTFC:=$(shell which $(HOSTLD) || type -p $(HOSTLD) || echo || which g77 || type -p g77 || echo gfortran)
146 HOSTCPP:=$(shell which $(HOSTCPP) || type -p $(HOSTCPP) || echo cpp)
147 HOSTLD:=$(shell which $(HOSTLD) || type -p $(HOSTLD) || echo ld)
148 HOSTLN:=$(shell which $(HOSTLN) || type -p $(HOSTLN) || echo ln)
149 HOSTNM:=$(shell which $(HOSTNM) || type -p $(HOSTNM) || echo nm)
151 export HOSTAR HOSTAS HOSTCC HOSTCXX HOSTFC HOSTLD
153 # bash prints the name of the directory on 'cd <dir>' if CDPATH is
154 # set, so unset it here to not cause problems. Notice that the export
155 # line doesn't affect the environment of $(shell ..) calls, so
156 # explictly throw away any output from 'cd' here.
158 BASE_DIR := $(shell mkdir -p $(O) && cd $(O) >/dev/null && pwd)
159 $(if $(BASE_DIR),, $(error output directory "$(O)" does not exist))
161 BUILD_DIR:=$(BASE_DIR)/build
164 ifeq ($(BR2_HAVE_DOT_CONFIG),y)
167 # Usage: cflags-y+=$(call cc-option, -march=winchip-c6, -march=i586)
168 # sets -march=winchip-c6 if supported else falls back to -march=i586
169 # without checking the latter.
170 cc-option=$(shell if $(TARGET_CC) $(TARGET_CFLAGS) $(1) -S -o /dev/null -xc /dev/null \
171 > /dev/null 2>&1; then echo "$(1)"; else echo "$(2)"; fi ;)
173 #############################################################
175 # Hide troublesome environment variables from sub processes
177 #############################################################
178 unexport CROSS_COMPILE
181 GNU_HOST_NAME:=$(shell package/gnuconfig/config.guess)
183 #############################################################
185 # Setup the proper filename extensions for the host
187 ##############################################################
188 ifneq ($(findstring linux,$(GNU_HOST_NAME)),)
193 ifneq ($(findstring apple,$(GNU_HOST_NAME)),)
198 ifneq ($(findstring cygwin,$(GNU_HOST_NAME)),)
202 HOST_LOADLIBES="-lcurses -lintl"
203 export HOST_LOADLIBES
205 ifneq ($(findstring mingw,$(GNU_HOST_NAME)),)
211 # The preferred type of libs we build for the target
212 ifeq ($(BR2_PREFER_STATIC_LIB),y)
214 #PREFERRED_LIB_FLAGS:=--disable-shared --enable-static
217 #PREFERRED_LIB_FLAGS:=--disable-static --enable-shared
219 PREFERRED_LIB_FLAGS:=--enable-static --enable-shared
221 ##############################################################
223 # The list of stuff to build for the target toolchain
224 # along with the packages to build for the target.
226 ##############################################################
227 ifeq ($(BR2_TOOLCHAIN_BUILDROOT),y)
228 BASE_TARGETS:=uclibc-configured binutils cross_compiler uclibc-target-utils kernel-headers
234 # silent mode requested?
235 QUIET:=$(if $(findstring s,$(MAKEFLAGS)),-q)
237 # Strip off the annoying quoting
238 ARCH:=$(call qstrip,$(BR2_ARCH))
239 ifeq ($(ARCH),xtensa)
240 ARCH:=$(ARCH)_$(call qstrip,$(BR2_xtensa_core_name))
243 KERNEL_ARCH:=$(shell echo "$(ARCH)" | sed -e "s/-.*//" \
244 -e s/i.86/i386/ -e s/sun4u/sparc64/ \
245 -e s/arm.*/arm/ -e s/sa110/arm/ \
246 -e s/parisc64/parisc/ \
247 -e s/powerpc64/powerpc/ \
248 -e s/ppc.*/powerpc/ -e s/mips.*/mips/ \
251 ZCAT:=$(call qstrip,$(BR2_ZCAT))
252 BZCAT:=$(call qstrip,$(BR2_BZCAT))
253 TAR_OPTIONS=$(call qstrip,$(BR2_TAR_OPTIONS)) -xf
255 GNU_TARGET_SUFFIX:=-$(call qstrip,$(BR2_GNU_TARGET_SUFFIX))
257 STAGING_DIR:=$(call qstrip,$(BR2_STAGING_DIR))
259 # packages compiled for the host goes here
260 HOST_DIR:=$(BASE_DIR)/host
262 # stamp (dependency) files go here
263 STAMP_DIR:=$(BASE_DIR)/stamps
265 BINARIES_DIR:=$(BASE_DIR)/images
266 TARGET_DIR:=$(BASE_DIR)/target
267 TOOLCHAIN_DIR=$(BASE_DIR)/toolchain
268 TARGET_SKELETON=$(TOPDIR)/fs/skeleton
270 BR2_DEPENDS_DIR=$(BUILD_DIR)/buildroot-config
272 include toolchain/Makefile.in
273 include package/Makefile.in
275 #############################################################
277 # You should probably leave this stuff alone unless you know
278 # what you are doing.
280 #############################################################
284 # In this section, we need .config
285 -include $(CONFIG_DIR)/.config.cmd
287 # We also need the various per-package makefiles, which also add
288 # each selected package to TARGETS if that package was selected
289 # in the .config file.
290 ifeq ($(BR2_TOOLCHAIN_BUILDROOT),y)
291 include toolchain/toolchain-buildroot.mk
292 else ifeq ($(BR2_TOOLCHAIN_EXTERNAL),y)
293 include toolchain/toolchain-external.mk
294 else ifeq ($(BR2_TOOLCHAIN_CTNG),y)
295 include toolchain/toolchain-crosstool-ng.mk
298 include package/*/*.mk
300 TARGETS+=target-finalize
302 ifeq ($(BR2_ENABLE_LOCALE_PURGE),y)
303 TARGETS+=target-purgelocales
306 include boot/common.mk
307 include target/Makefile.in
308 include linux/linux.mk
311 TARGETS+=erase-fakeroots
313 TARGETS_CLEAN:=$(patsubst %,%-clean,$(TARGETS))
314 TARGETS_SOURCE:=$(patsubst %,%-source,$(TARGETS) $(BASE_TARGETS))
315 TARGETS_DIRCLEAN:=$(patsubst %,%-dirclean,$(TARGETS))
316 TARGETS_ALL:=$(patsubst %,__real_tgt_%,$(TARGETS))
317 # all targets depend on the crosscompiler and it's prerequisites
318 $(TARGETS_ALL): __real_tgt_%: $(BASE_TARGETS) %
320 dirs: $(DL_DIR) $(TOOLCHAIN_DIR) $(BUILD_DIR) $(STAGING_DIR) $(TARGET_DIR) \
321 $(HOST_DIR) $(BR2_DEPENDS_DIR) $(BINARIES_DIR) $(STAMP_DIR)
323 $(BASE_TARGETS): dirs
325 $(BUILD_DIR)/buildroot-config/auto.conf: $(CONFIG_DIR)/.config
326 $(MAKE) $(EXTRAMAKEARGS) silentoldconfig
328 prepare: $(BUILD_DIR)/buildroot-config/auto.conf
330 world: prepare dependencies dirs $(BASE_TARGETS) $(TARGETS_ALL)
333 .PHONY: all world dirs clean distclean source outputmakefile \
334 $(BASE_TARGETS) $(TARGETS) $(TARGETS_ALL) \
335 $(TARGETS_CLEAN) $(TARGETS_DIRCLEAN) $(TARGETS_SOURCE) \
336 $(DL_DIR) $(TOOLCHAIN_DIR) $(BUILD_DIR) $(STAGING_DIR) $(TARGET_DIR) \
337 $(HOST_DIR) $(BR2_DEPENDS_DIR) $(BINARIES_DIR) $(STAMP_DIR)
339 #############################################################
341 # staging and target directories do NOT list these as
342 # dependencies anywhere else
344 #############################################################
345 $(DL_DIR) $(TOOLCHAIN_DIR) $(BUILD_DIR) $(HOST_DIR) $(BINARIES_DIR) $(STAMP_DIR):
349 @mkdir -p $(STAGING_DIR)/bin
350 @mkdir -p $(STAGING_DIR)/lib
351 @mkdir -p $(STAGING_DIR)/usr/lib
352 @mkdir -p $(STAGING_DIR)/usr/include
353 @mkdir -p $(STAGING_DIR)/usr/bin
355 ifeq ($(BR2_ROOTFS_SKELETON_CUSTOM),y)
356 TARGET_SKELETON=$(BR2_ROOTFS_SKELETON_CUSTOM_PATH)
360 mkdir -p $(TARGET_DIR)
361 if ! [ -d "$(TARGET_DIR)/bin" ]; then \
362 if [ -d "$(TARGET_SKELETON)" ]; then \
363 cp -fa $(TARGET_SKELETON)/* $(TARGET_DIR)/; \
365 if [ -d "$(TARGET_SKELETON_PATCH)" ]; then \
366 toolchain/patch-kernel.sh $(TARGET_DIR) $(TARGET_SKELETON_PATCH)/ \*patch\*; \
368 touch $(STAGING_DIR)/.fakeroot.00000; \
370 -find $(TARGET_DIR) -type d -name CVS -print0 -o -name .svn -print0 | xargs -0 rm -rf
371 -find $(TARGET_DIR) -type f \( -name .empty -o -name '*~' \) -print0 | xargs -0 rm -rf
374 $(TARGET_DIR): $(BUILD_DIR)/.root
377 rm -f $(BUILD_DIR)/.fakeroot*
380 ifeq ($(BR2_HAVE_DEVFILES),y)
381 ( scripts/copy.sh $(STAGING_DIR) $(TARGET_DIR) )
383 rm -rf $(TARGET_DIR)/usr/include $(TARGET_DIR)/usr/lib/pkgconfig $(TARGET_DIR)/usr/share/aclocal
384 find $(TARGET_DIR)/lib \( -name '*.a' -o -name '*.la' \) -print0 | xargs -0 rm -f
385 find $(TARGET_DIR)/usr/lib \( -name '*.a' -o -name '*.la' \) -print0 | xargs -0 rm -f
387 ifneq ($(BR2_PACKAGE_GDB),y)
388 rm -rf $(TARGET_DIR)/usr/share/gdb
390 ifneq ($(BR2_HAVE_DOCUMENTATION),y)
391 rm -rf $(TARGET_DIR)/usr/man $(TARGET_DIR)/usr/share/man
392 rm -rf $(TARGET_DIR)/usr/info $(TARGET_DIR)/usr/share/info
393 rm -rf $(TARGET_DIR)/usr/doc $(TARGET_DIR)/usr/share/doc
394 rm -rf $(TARGET_DIR)/usr/share/gtk-doc
396 find $(TARGET_DIR) -type f -perm +111 | xargs $(STRIPCMD) 2>/dev/null || true
397 mkdir -p $(TARGET_DIR)/etc
398 # Mandatory configuration file and auxilliary cache directory
399 # for recent versions of ldconfig
400 touch $(TARGET_DIR)/etc/ld.so.conf
401 mkdir -p $(TARGET_DIR)/var/cache/ldconfig
402 if [ -x "$(TARGET_CROSS)ldconfig" ]; \
404 $(TARGET_CROSS)ldconfig -r $(TARGET_DIR); \
406 /sbin/ldconfig -r $(TARGET_DIR); \
408 echo $(BR2_VERSION)$(shell $(TOPDIR)/scripts/setlocalversion) > \
409 $(TARGET_DIR)/etc/br-version
411 ifneq ($(BR2_ROOTFS_POST_BUILD_SCRIPT),"")
412 $(BR2_ROOTFS_POST_BUILD_SCRIPT) $(TARGET_DIR)
415 ifeq ($(BR2_ENABLE_LOCALE_PURGE),y)
416 LOCALE_WHITELIST=$(BUILD_DIR)/locales.nopurge
417 LOCALE_NOPURGE=$(call qstrip,$(BR2_ENABLE_LOCALE_WHITELIST))
420 rm -f $(LOCALE_WHITELIST)
421 for i in $(LOCALE_NOPURGE); do echo $$i >> $(LOCALE_WHITELIST); done
423 for dir in $(wildcard $(addprefix $(TARGET_DIR),/usr/share/locale /usr/share/X11/locale /usr/man /usr/share/man)); \
425 for lang in $$(cd $$dir; ls .|grep -v man); \
427 grep -qx $$lang $(LOCALE_WHITELIST) || rm -rf $$dir/$$lang; \
432 source: $(TARGETS_SOURCE) $(HOST_SOURCE)
435 $(MAKE) DL_MODE=SOURCE_CHECK $(EXTRAMAKEARGS) source
438 @$(MAKE) -Bs DL_MODE=SHOW_EXTERNAL_DEPS $(EXTRAMAKEARGS) source
443 ifeq ($(BR2_CONFIG_CACHE),y)
444 # drop configure caches if configuration is changed
445 $(BUILD_DIR)/tgt-config.cache $(BUILD_DIR)/host-config.cache: $(CONFIG_DIR)/.config
449 $(BASE_TARGETS): | $(BUILD_DIR)/tgt-config.cache $(BUILD_DIR)/host-config.cache
452 else # ifeq ($(BR2_HAVE_DOT_CONFIG),y)
457 # ---------------------------------------------------------------------------
459 HOSTCFLAGS=$(CFLAGS_FOR_BUILD)
462 $(BUILD_DIR)/buildroot-config/%onf:
463 mkdir -p $(@D)/lxdialog
464 $(MAKE) CC="$(HOSTCC)" obj=$(@D) -C $(CONFIG) -f Makefile.br $(@F)
466 COMMON_CONFIG_ENV = \
467 KCONFIG_AUTOCONFIG=$(BUILD_DIR)/buildroot-config/auto.conf \
468 KCONFIG_AUTOHEADER=$(BUILD_DIR)/buildroot-config/autoconf.h \
469 KCONFIG_TRISTATE=$(BUILD_DIR)/buildroot-config/tristate.config \
470 BUILDROOT_CONFIG=$(CONFIG_DIR)/.config
472 xconfig: $(BUILD_DIR)/buildroot-config/qconf outputmakefile
473 @mkdir -p $(BUILD_DIR)/buildroot-config
474 @if ! $(COMMON_CONFIG_ENV) $< $(CONFIG_CONFIG_IN); then \
475 test -f $(CONFIG_DIR)/.config.cmd || rm -f $(CONFIG_DIR)/.config; \
478 gconfig: $(BUILD_DIR)/buildroot-config/gconf outputmakefile
479 @mkdir -p $(BUILD_DIR)/buildroot-config
480 @if ! $(COMMON_CONFIG_ENV) srctree=$(TOPDIR) \
481 $< $(CONFIG_CONFIG_IN); then \
482 test -f $(CONFIG_DIR)/.config.cmd || rm -f $(CONFIG_DIR)/.config; \
485 menuconfig: $(BUILD_DIR)/buildroot-config/mconf outputmakefile
486 @mkdir -p $(BUILD_DIR)/buildroot-config
487 @if ! $(COMMON_CONFIG_ENV) $< $(CONFIG_CONFIG_IN); then \
488 test -f $(CONFIG_DIR)/.config.cmd || rm -f $(CONFIG_DIR)/.config; \
491 nconfig: $(BUILD_DIR)/buildroot-config/nconf outputmakefile
492 @mkdir -p $(BUILD_DIR)/buildroot-config
493 @if ! $(COMMON_CONFIG_ENV) $< $(CONFIG_CONFIG_IN); then \
494 test -f $(CONFIG_DIR)/.config.cmd || rm -f $(CONFIG_DIR)/.config; \
497 config: $(BUILD_DIR)/buildroot-config/conf outputmakefile
498 @mkdir -p $(BUILD_DIR)/buildroot-config
499 @$(COMMON_CONFIG_ENV) $< $(CONFIG_CONFIG_IN)
501 oldconfig: $(BUILD_DIR)/buildroot-config/conf outputmakefile
502 mkdir -p $(BUILD_DIR)/buildroot-config
503 @$(COMMON_CONFIG_ENV) $< --oldconfig $(CONFIG_CONFIG_IN)
505 randconfig: $(BUILD_DIR)/buildroot-config/conf outputmakefile
506 @mkdir -p $(BUILD_DIR)/buildroot-config
507 @$(COMMON_CONFIG_ENV) $< --randconfig $(CONFIG_CONFIG_IN)
509 allyesconfig: $(BUILD_DIR)/buildroot-config/conf outputmakefile
510 @mkdir -p $(BUILD_DIR)/buildroot-config
511 @$(COMMON_CONFIG_ENV) $< --allyesconfig $(CONFIG_CONFIG_IN)
513 allnoconfig: $(BUILD_DIR)/buildroot-config/conf outputmakefile
514 @mkdir -p $(BUILD_DIR)/buildroot-config
515 @$(COMMON_CONFIG_ENV) $< --allnoconfig $(CONFIG_CONFIG_IN)
517 randpackageconfig: $(BUILD_DIR)/buildroot-config/conf outputmakefile
518 @mkdir -p $(BUILD_DIR)/buildroot-config
519 @grep -v BR2_PACKAGE_ $(CONFIG_DIR)/.config > $(CONFIG_DIR)/.config.nopkg
520 @$(COMMON_CONFIG_ENV) \
521 KCONFIG_ALLCONFIG=$(CONFIG_DIR)/.config.nopkg \
522 $< --randconfig $(CONFIG_CONFIG_IN)
523 @rm -f $(CONFIG_DIR)/.config.nopkg
525 allyespackageconfig: $(BUILD_DIR)/buildroot-config/conf outputmakefile
526 @mkdir -p $(BUILD_DIR)/buildroot-config
527 @grep -v BR2_PACKAGE_ $(CONFIG_DIR)/.config > $(CONFIG_DIR)/.config.nopkg
528 @$(COMMON_CONFIG_ENV) \
529 KCONFIG_ALLCONFIG=$(CONFIG_DIR)/.config.nopkg \
530 $< --allyesconfig $(CONFIG_CONFIG_IN)
531 @rm -f $(CONFIG_DIR)/.config.nopkg
533 allnopackageconfig: $(BUILD_DIR)/buildroot-config/conf outputmakefile
534 @mkdir -p $(BUILD_DIR)/buildroot-config
535 @grep -v BR2_PACKAGE_ $(CONFIG_DIR)/.config > $(CONFIG_DIR)/.config.nopkg
536 @$(COMMON_CONFIG_ENV) \
537 KCONFIG_ALLCONFIG=$(CONFIG_DIR)/.config.nopkg \
538 $< --allnoconfig $(CONFIG_CONFIG_IN)
539 @rm -f $(CONFIG_DIR)/.config.nopkg
541 silentoldconfig: $(BUILD_DIR)/buildroot-config/conf outputmakefile
542 @mkdir -p $(BUILD_DIR)/buildroot-config
543 $(COMMON_CONFIG_ENV) $< --silentoldconfig $(CONFIG_CONFIG_IN)
545 defconfig: $(BUILD_DIR)/buildroot-config/conf outputmakefile
546 @mkdir -p $(BUILD_DIR)/buildroot-config
547 @$(COMMON_CONFIG_ENV) $< --defconfig $(CONFIG_CONFIG_IN)
549 %_defconfig: $(BUILD_DIR)/buildroot-config/conf $(TOPDIR)/configs/%_defconfig outputmakefile
550 @mkdir -p $(BUILD_DIR)/buildroot-config
551 @$(COMMON_CONFIG_ENV) $< --defconfig=$(TOPDIR)/configs/$@ $(CONFIG_CONFIG_IN)
553 savedefconfig: $(BUILD_DIR)/buildroot-config/conf outputmakefile
554 @mkdir -p $(BUILD_DIR)/buildroot-config
555 @$(COMMON_CONFIG_ENV) $< --savedefconfig=$(TOPDIR)/defconfig $(CONFIG_CONFIG_IN)
557 # check if download URLs are outdated
558 source-check: allyesconfig
559 $(MAKE) $(EXTRAMAKEARGS) _source-check
561 endif # ifeq ($(BR2_HAVE_DOT_CONFIG),y)
563 #############################################################
565 # Cleanup and misc junk
567 #############################################################
569 # outputmakefile generates a Makefile in the output directory, if using a
570 # separate output directory. This allows convenient use of make in the
573 ifeq ($(NEED_WRAPPER),y)
574 $(Q)$(TOPDIR)/scripts/mkmakefile $(TOPDIR) $(O)
578 rm -rf $(STAGING_DIR) $(TARGET_DIR) $(BINARIES_DIR) $(HOST_DIR) \
579 $(STAMP_DIR) $(BUILD_DIR) $(TOOLCHAIN_DIR)
582 ifeq ($(DL_DIR),$(TOPDIR)/dl)
588 rm -rf $(CONFIG_DIR)/.config $(CONFIG_DIR)/.config.old $(CONFIG_DIR)/.config.cmd $(CONFIG_DIR)/.auto.deps
591 rm -f $(BUILD_DIR)/tgt-config.cache $(BUILD_DIR)/host-config.cache
593 configured: dirs kernel-headers uclibc-config busybox-config linux26-config
595 prepatch: gcc-patched binutils-patched gdb-patched uclibc-patched
597 cross: $(BASE_TARGETS)
601 @echo ' clean - delete all files created by build'
602 @echo ' distclean - delete all non-source files (including .config)'
605 @echo ' all - make world'
607 @echo 'Configuration:'
608 @echo ' menuconfig - interactive curses-based configurator'
609 @echo ' xconfig - interactive Qt-based configurator'
610 @echo ' gconfig - interactive GTK-based configurator'
611 @echo ' oldconfig - resolve any unresolved symbols in .config'
612 @echo ' randconfig - New config with random answer to all options'
613 @echo ' defconfig - New config with default answer to all options'
614 @echo ' allyesconfig - New config where all options are accepted with yes'
615 @echo ' allnoconfig - New config where all options are answered with no'
616 @echo ' randpackageconfig - New config with random answer to package options'
617 @echo ' allyespackageconfig - New config where pkg options are accepted with yes'
618 @echo ' allnopackageconfig - New config where package options are answered with no'
619 @echo ' configured - make {uclibc/busybox/linux26}-config'
621 @echo 'Miscellaneous:'
622 @echo ' source - download all sources needed for offline-build'
623 @echo ' source-check - check all packages for valid download URLs'
624 @echo ' external-deps - list external packages used'
625 @echo ' flush - flush configuration cache'
627 @$(foreach b, $(notdir $(wildcard $(TOPDIR)/configs/*_defconfig)), \
628 printf " %-35s - Build for %s\\n" $(b) $(b:_defconfig=);)
630 @echo 'See docs/README and docs/buildroot.html for further details'
634 OUT=buildroot-$$(grep -A2 BR2_VERSION $(CONFIG_CONFIG_IN)|grep default|cut -f2 -d\"); \
635 git archive --format=tar --prefix=$$OUT/ master|gzip -9 >$$OUT.tar.gz
637 .PHONY: $(noconfig_targets)