Eric Andersen | 2d523c2 | 2004-10-09 01:06:03 +0000 | [diff] [blame] | 1 | # Makefile for buildroot2 |
Eric Andersen | ffde94b | 2001-12-22 00:56:11 +0000 | [diff] [blame] | 2 | # |
Eric Andersen | 15b26ae | 2005-02-07 22:19:26 +0000 | [diff] [blame] | 3 | # Copyright (C) 1999-2005 by Erik Andersen <andersen@codepoet.org> |
Eric Andersen | ffde94b | 2001-12-22 00:56:11 +0000 | [diff] [blame] | 4 | # |
Eric Andersen | 08782ae | 2002-04-26 11:45:55 +0000 | [diff] [blame] | 5 | # This program is free software; you can redistribute it and/or modify |
Eric Andersen | 2d523c2 | 2004-10-09 01:06:03 +0000 | [diff] [blame] | 6 | # it under the terms of the GNU General Public License as published by |
| 7 | # the Free Software Foundation; either version 2 of the License, or |
| 8 | # (at your option) any later version. |
Eric Andersen | ffde94b | 2001-12-22 00:56:11 +0000 | [diff] [blame] | 9 | # |
Eric Andersen | 2d523c2 | 2004-10-09 01:06:03 +0000 | [diff] [blame] | 10 | # This program is distributed in the hope that it will be useful, |
| 11 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
Eric Andersen | 08782ae | 2002-04-26 11:45:55 +0000 | [diff] [blame] | 12 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
Eric Andersen | 2d523c2 | 2004-10-09 01:06:03 +0000 | [diff] [blame] | 13 | # General Public License for more details. |
Eric Andersen | ffde94b | 2001-12-22 00:56:11 +0000 | [diff] [blame] | 14 | # |
Eric Andersen | 2d523c2 | 2004-10-09 01:06:03 +0000 | [diff] [blame] | 15 | # You should have received a copy of the GNU General Public License |
| 16 | # along with this program; if not, write to the Free Software |
| 17 | # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
| 18 | # |
Eric Andersen | ffde94b | 2001-12-22 00:56:11 +0000 | [diff] [blame] | 19 | |
Eric Andersen | 2d523c2 | 2004-10-09 01:06:03 +0000 | [diff] [blame] | 20 | #-------------------------------------------------------------- |
| 21 | # Just run 'make menuconfig', configure stuff, then run 'make'. |
| 22 | # You shouldn't need to mess with anything beyond this point... |
| 23 | #-------------------------------------------------------------- |
| 24 | TOPDIR=./ |
Bernhard Reutner-Fischer | 18d979c | 2007-09-01 18:21:09 +0000 | [diff] [blame] | 25 | CONFIG_CONFIG_IN=Config.in |
| 26 | CONFIG_DEFCONFIG=.defconfig |
| 27 | CONFIG=package/config |
Ulf Samuelsson | 7def555 | 2007-07-11 15:01:42 +0000 | [diff] [blame] | 28 | DATE:=$(shell date -u +%Y%m%d) |
Eric Andersen | 2d523c2 | 2004-10-09 01:06:03 +0000 | [diff] [blame] | 29 | |
Bernhard Reutner-Fischer | 18d979c | 2007-09-01 18:21:09 +0000 | [diff] [blame] | 30 | noconfig_targets:=menuconfig config oldconfig randconfig \ |
Bernhard Reutner-Fischer | 6547bce | 2007-08-22 12:35:41 +0000 | [diff] [blame] | 31 | defconfig allyesconfig allnoconfig release tags \ |
Bernhard Reutner-Fischer | e491fba | 2007-07-08 12:20:58 +0000 | [diff] [blame] | 32 | source-check help |
Bernhard Reutner-Fischer | 9e25035 | 2006-12-02 19:01:10 +0000 | [diff] [blame] | 33 | |
Bernhard Reutner-Fischer | 6547bce | 2007-08-22 12:35:41 +0000 | [diff] [blame] | 34 | # $(shell find . -name *_defconfig |sed 's/.*\///') |
Eric Andersen | 2d523c2 | 2004-10-09 01:06:03 +0000 | [diff] [blame] | 35 | |
| 36 | # Pull in the user's configuration file |
| 37 | ifeq ($(filter $(noconfig_targets),$(MAKECMDGOALS)),) |
Ulf Samuelsson | 7521f37 | 2007-09-12 04:34:16 +0000 | [diff] [blame] | 38 | ifeq ($(BOARD),) |
Eric Andersen | 2d523c2 | 2004-10-09 01:06:03 +0000 | [diff] [blame] | 39 | -include $(TOPDIR).config |
Ulf Samuelsson | 7521f37 | 2007-09-12 04:34:16 +0000 | [diff] [blame] | 40 | else |
| 41 | -include $(TOPDIR)/local/$(BOARD)/$(BOARD).config |
| 42 | endif |
Eric Andersen | 2d523c2 | 2004-10-09 01:06:03 +0000 | [diff] [blame] | 43 | endif |
Ulf Samuelsson | adbc5a1 | 2007-08-20 15:47:42 +0000 | [diff] [blame] | 44 | ifneq ($(BUILDROOT_DL_DIR),) |
Ulf Samuelsson | 3c567e6 | 2007-08-19 23:32:33 +0000 | [diff] [blame] | 45 | BR2_DL_DIR:=$(BUILDROOT_DL_DIR) |
| 46 | endif |
Ulf Samuelsson | 7521f37 | 2007-09-12 04:34:16 +0000 | [diff] [blame] | 47 | ifneq ($(BUILDROOT_LOCAL),) |
| 48 | LOCAL:=$(BUILDROOT_LOCAL) |
| 49 | else |
| 50 | LOCAL:=local |
| 51 | endif |
Eric Andersen | 2d523c2 | 2004-10-09 01:06:03 +0000 | [diff] [blame] | 52 | |
Bernhard Reutner-Fischer | afc61c6 | 2007-06-28 10:47:05 +0000 | [diff] [blame] | 53 | # To put more focus on warnings, be less verbose as default |
| 54 | # Use 'make V=1' to see the full commands |
| 55 | ifdef V |
| 56 | ifeq ("$(origin V)", "command line") |
Bernhard Reutner-Fischer | 18d979c | 2007-09-01 18:21:09 +0000 | [diff] [blame] | 57 | KBUILD_VERBOSE=$(V) |
Bernhard Reutner-Fischer | afc61c6 | 2007-06-28 10:47:05 +0000 | [diff] [blame] | 58 | endif |
| 59 | endif |
| 60 | ifndef KBUILD_VERBOSE |
Bernhard Reutner-Fischer | 18d979c | 2007-09-01 18:21:09 +0000 | [diff] [blame] | 61 | KBUILD_VERBOSE=0 |
Bernhard Reutner-Fischer | afc61c6 | 2007-06-28 10:47:05 +0000 | [diff] [blame] | 62 | endif |
| 63 | |
| 64 | ifeq ($(KBUILD_VERBOSE),1) |
Ulf Samuelsson | 4df454e | 2007-07-06 12:19:35 +0000 | [diff] [blame] | 65 | quiet= |
Bernhard Reutner-Fischer | 18d979c | 2007-09-01 18:21:09 +0000 | [diff] [blame] | 66 | Q= |
Bernhard Reutner-Fischer | 1669b6e | 2007-09-22 14:19:22 +0000 | [diff] [blame^] | 67 | ifndef VERBOSE |
| 68 | VERBOSE=1 |
| 69 | endif |
Bernhard Reutner-Fischer | afc61c6 | 2007-06-28 10:47:05 +0000 | [diff] [blame] | 70 | else |
| 71 | quiet=quiet_ |
Bernhard Reutner-Fischer | 18d979c | 2007-09-01 18:21:09 +0000 | [diff] [blame] | 72 | Q=@ |
Bernhard Reutner-Fischer | afc61c6 | 2007-06-28 10:47:05 +0000 | [diff] [blame] | 73 | endif |
| 74 | |
Bernhard Reutner-Fischer | 18d979c | 2007-09-01 18:21:09 +0000 | [diff] [blame] | 75 | CONFIG_SHELL:=$(shell if [ -x "$$BASH" ]; then echo $$BASH; \ |
Bernhard Reutner-Fischer | afc61c6 | 2007-06-28 10:47:05 +0000 | [diff] [blame] | 76 | else if [ -x /bin/bash ]; then echo /bin/bash; \ |
Bernhard Reutner-Fischer | 18d979c | 2007-09-01 18:21:09 +0000 | [diff] [blame] | 77 | else echo sh; fi; fi) |
Bernhard Reutner-Fischer | afc61c6 | 2007-06-28 10:47:05 +0000 | [diff] [blame] | 78 | |
Bernhard Reutner-Fischer | 1669b6e | 2007-09-22 14:19:22 +0000 | [diff] [blame^] | 79 | export CONFIG_SHELL quiet Q KBUILD_VERBOSE VERBOSE |
Bernhard Reutner-Fischer | afc61c6 | 2007-06-28 10:47:05 +0000 | [diff] [blame] | 80 | |
| 81 | ifndef HOSTAR |
| 82 | HOSTAR:=ar |
| 83 | endif |
| 84 | ifndef HOSTAS |
| 85 | HOSTAS:=as |
| 86 | endif |
| 87 | ifndef HOSTCC |
| 88 | HOSTCC:=gcc |
| 89 | else |
| 90 | endif |
| 91 | ifndef HOSTCXX |
| 92 | HOSTCXX:=g++ |
| 93 | endif |
| 94 | ifndef HOSTLD |
| 95 | HOSTLD:=ld |
| 96 | endif |
Ulf Samuelsson | 0f9c5b1 | 2007-07-15 21:54:11 +0000 | [diff] [blame] | 97 | ifndef HOSTLN |
| 98 | HOSTLN:=ln |
| 99 | endif |
Bernhard Reutner-Fischer | 18d979c | 2007-09-01 18:21:09 +0000 | [diff] [blame] | 100 | HOSTAR:=$(shell $(CONFIG_SHELL) -c "which $(HOSTAR)" || type -p $(HOSTAR) || echo ar) |
| 101 | HOSTAS:=$(shell $(CONFIG_SHELL) -c "which $(HOSTAS)" || type -p $(HOSTAS) || echo as) |
| 102 | HOSTCC:=$(shell $(CONFIG_SHELL) -c "which $(HOSTCC)" || type -p $(HOSTCC) || echo gcc) |
Ulf Samuelsson | 83832cd | 2007-07-09 04:26:49 +0000 | [diff] [blame] | 103 | HOSTCXX:=$(shell $(CONFIG_SHELL) -c "which $(HOSTCXX)" || type -p $(HOSTCXX) || echo g++) |
Bernhard Reutner-Fischer | 18d979c | 2007-09-01 18:21:09 +0000 | [diff] [blame] | 104 | HOSTLD:=$(shell $(CONFIG_SHELL) -c "which $(HOSTLD)" || type -p $(HOSTLD) || echo ld) |
| 105 | HOSTLN:=$(shell $(CONFIG_SHELL) -c "which $(HOSTLN)" || type -p $(HOSTLN) || echo ln) |
Bernhard Reutner-Fischer | afc61c6 | 2007-06-28 10:47:05 +0000 | [diff] [blame] | 106 | ifndef CFLAGS_FOR_BUILD |
Bernhard Reutner-Fischer | f987b7a | 2007-07-08 00:00:17 +0000 | [diff] [blame] | 107 | CFLAGS_FOR_BUILD:=-g -O2 |
Bernhard Reutner-Fischer | afc61c6 | 2007-06-28 10:47:05 +0000 | [diff] [blame] | 108 | endif |
| 109 | export HOSTAR HOSTAS HOSTCC HOSTCXX HOSTLD |
| 110 | |
| 111 | |
Eric Andersen | 2d523c2 | 2004-10-09 01:06:03 +0000 | [diff] [blame] | 112 | ifeq ($(strip $(BR2_HAVE_DOT_CONFIG)),y) |
Eric Andersen | ffde94b | 2001-12-22 00:56:11 +0000 | [diff] [blame] | 113 | |
Bernhard Reutner-Fischer | 99cf729 | 2007-02-12 13:38:06 +0000 | [diff] [blame] | 114 | # cc-option |
Bernhard Reutner-Fischer | 18d979c | 2007-09-01 18:21:09 +0000 | [diff] [blame] | 115 | # Usage: cflags-y+=$(call cc-option, -march=winchip-c6, -march=i586) |
Bernhard Reutner-Fischer | 99cf729 | 2007-02-12 13:38:06 +0000 | [diff] [blame] | 116 | # sets -march=winchip-c6 if supported else falls back to -march=i586 |
| 117 | # without checking the latter. |
Bernhard Reutner-Fischer | 18d979c | 2007-09-01 18:21:09 +0000 | [diff] [blame] | 118 | cc-option=$(shell if $(TARGET_CC) $(TARGET_CFLAGS) $(1) -S -o /dev/null -xc /dev/null \ |
Bernhard Reutner-Fischer | 99cf729 | 2007-02-12 13:38:06 +0000 | [diff] [blame] | 119 | > /dev/null 2>&1; then echo "$(1)"; else echo "$(2)"; fi ;) |
| 120 | |
Peter Korsgaard | 2c64904 | 2007-06-19 15:19:27 +0000 | [diff] [blame] | 121 | ############################################################# |
| 122 | # |
| 123 | # Hide troublesome environment variables from sub processes |
| 124 | # |
| 125 | ############################################################# |
| 126 | unexport CROSS_COMPILE |
| 127 | unexport ARCH |
Bernhard Reutner-Fischer | 7dcbbfb | 2007-06-02 09:05:40 +0000 | [diff] [blame] | 128 | |
| 129 | ############################################################# |
| 130 | # |
Bernhard Reutner-Fischer | c6e43c9 | 2007-06-02 11:22:17 +0000 | [diff] [blame] | 131 | # Setup the proper filename extensions for the host |
Bernhard Reutner-Fischer | 7dcbbfb | 2007-06-02 09:05:40 +0000 | [diff] [blame] | 132 | # |
| 133 | ############################################################## |
| 134 | ifneq ($(findstring linux,$(BR2_GNU_BUILD_SUFFIX)),) |
Bernhard Reutner-Fischer | c6e43c9 | 2007-06-02 11:22:17 +0000 | [diff] [blame] | 135 | HOST_EXEEXT:= |
| 136 | HOST_LIBEXT:=.a |
| 137 | HOST_SHREXT:=.so |
Bernhard Reutner-Fischer | 7dcbbfb | 2007-06-02 09:05:40 +0000 | [diff] [blame] | 138 | endif |
| 139 | ifneq ($(findstring apple,$(BR2_GNU_BUILD_SUFFIX)),) |
Bernhard Reutner-Fischer | c6e43c9 | 2007-06-02 11:22:17 +0000 | [diff] [blame] | 140 | HOST_EXEEXT:= |
| 141 | HOST_LIBEXT:=.a |
| 142 | HOST_SHREXT:=.dylib |
Bernhard Reutner-Fischer | 7dcbbfb | 2007-06-02 09:05:40 +0000 | [diff] [blame] | 143 | endif |
| 144 | ifneq ($(findstring cygwin,$(BR2_GNU_BUILD_SUFFIX)),) |
Bernhard Reutner-Fischer | c6e43c9 | 2007-06-02 11:22:17 +0000 | [diff] [blame] | 145 | HOST_EXEEXT:=.exe |
| 146 | HOST_LIBEXT:=.lib |
| 147 | HOST_SHREXT:=.dll |
Bernhard Reutner-Fischer | 7dcbbfb | 2007-06-02 09:05:40 +0000 | [diff] [blame] | 148 | endif |
| 149 | ifneq ($(findstring mingw,$(BR2_GNU_BUILD_SUFFIX)),) |
Bernhard Reutner-Fischer | c6e43c9 | 2007-06-02 11:22:17 +0000 | [diff] [blame] | 150 | HOST_EXEEXT:=.exe |
| 151 | HOST_LIBEXT:=.lib |
| 152 | HOST_SHREXT:=.dll |
Bernhard Reutner-Fischer | 7dcbbfb | 2007-06-02 09:05:40 +0000 | [diff] [blame] | 153 | endif |
| 154 | |
Bernhard Reutner-Fischer | c6e43c9 | 2007-06-02 11:22:17 +0000 | [diff] [blame] | 155 | # The preferred type of libs we build for the target |
Bernhard Reutner-Fischer | 7dcbbfb | 2007-06-02 09:05:40 +0000 | [diff] [blame] | 156 | ifeq ($(BR2_PREFER_STATIC_LIB),y) |
Bernhard Reutner-Fischer | c6e43c9 | 2007-06-02 11:22:17 +0000 | [diff] [blame] | 157 | LIBTGTEXT=.a |
Bernhard Reutner-Fischer | 8027784 | 2007-06-20 11:26:36 +0000 | [diff] [blame] | 158 | #PREFERRED_LIB_FLAGS:=--disable-shared --enable-static |
Bernhard Reutner-Fischer | 7dcbbfb | 2007-06-02 09:05:40 +0000 | [diff] [blame] | 159 | else |
Bernhard Reutner-Fischer | c6e43c9 | 2007-06-02 11:22:17 +0000 | [diff] [blame] | 160 | LIBTGTEXT=.so |
Bernhard Reutner-Fischer | 8027784 | 2007-06-20 11:26:36 +0000 | [diff] [blame] | 161 | #PREFERRED_LIB_FLAGS:=--disable-static --enable-shared |
Bernhard Reutner-Fischer | 7dcbbfb | 2007-06-02 09:05:40 +0000 | [diff] [blame] | 162 | endif |
Bernhard Reutner-Fischer | 8027784 | 2007-06-20 11:26:36 +0000 | [diff] [blame] | 163 | PREFERRED_LIB_FLAGS:=--enable-static --enable-shared |
Bernhard Reutner-Fischer | 7dcbbfb | 2007-06-02 09:05:40 +0000 | [diff] [blame] | 164 | |
Bernhard Reutner-Fischer | 6ad0720 | 2007-07-31 15:02:06 +0000 | [diff] [blame] | 165 | ############################################################## |
Eric Andersen | 08782ae | 2002-04-26 11:45:55 +0000 | [diff] [blame] | 166 | # |
Eric Andersen | 2d523c2 | 2004-10-09 01:06:03 +0000 | [diff] [blame] | 167 | # The list of stuff to build for the target toolchain |
| 168 | # along with the packages to build for the target. |
Eric Andersen | 08782ae | 2002-04-26 11:45:55 +0000 | [diff] [blame] | 169 | # |
Eric Andersen | 2d523c2 | 2004-10-09 01:06:03 +0000 | [diff] [blame] | 170 | ############################################################## |
"Steven J. Hill" | 02f71aa | 2007-02-06 18:19:38 +0000 | [diff] [blame] | 171 | ifeq ($(BR2_TOOLCHAIN_BUILDROOT),y) |
Bernhard Reutner-Fischer | acc706b | 2007-07-23 11:29:38 +0000 | [diff] [blame] | 172 | BASE_TARGETS:=uclibc-configured binutils gcc uclibc-target-utils |
"Steven J. Hill" | 02f71aa | 2007-02-06 18:19:38 +0000 | [diff] [blame] | 173 | else |
Bernhard Reutner-Fischer | acc706b | 2007-07-23 11:29:38 +0000 | [diff] [blame] | 174 | BASE_TARGETS:=uclibc |
"Steven J. Hill" | 02f71aa | 2007-02-06 18:19:38 +0000 | [diff] [blame] | 175 | endif |
Bernhard Reutner-Fischer | acc706b | 2007-07-23 11:29:38 +0000 | [diff] [blame] | 176 | TARGETS:= |
| 177 | |
Bernhard Reutner-Fischer | 18d979c | 2007-09-01 18:21:09 +0000 | [diff] [blame] | 178 | # setup our pathes |
Ulf Samuelsson | f958d89 | 2007-08-14 07:45:01 +0000 | [diff] [blame] | 179 | include project/Makefile.in |
Bernhard Reutner-Fischer | 1dbe6e3 | 2007-08-21 17:56:47 +0000 | [diff] [blame] | 180 | |
| 181 | BR2_DEPENDS_DIR=$(PROJECT_BUILD_DIR)/buildroot-config |
| 182 | |
Eric Andersen | 2d523c2 | 2004-10-09 01:06:03 +0000 | [diff] [blame] | 183 | include toolchain/Makefile.in |
Eric Andersen | 2d523c2 | 2004-10-09 01:06:03 +0000 | [diff] [blame] | 184 | include package/Makefile.in |
Eric Andersen | 27bc59d | 2003-01-17 04:31:36 +0000 | [diff] [blame] | 185 | |
Eric Andersen | 08782ae | 2002-04-26 11:45:55 +0000 | [diff] [blame] | 186 | ############################################################# |
| 187 | # |
Eric Andersen | ef407d3 | 2004-01-29 23:21:00 +0000 | [diff] [blame] | 188 | # You should probably leave this stuff alone unless you know |
Eric Andersen | 08782ae | 2002-04-26 11:45:55 +0000 | [diff] [blame] | 189 | # what you are doing. |
| 190 | # |
| 191 | ############################################################# |
Manuel Novoa III | d632d42 | 2003-11-01 05:34:41 +0000 | [diff] [blame] | 192 | |
Bernhard Reutner-Fischer | 6547bce | 2007-08-22 12:35:41 +0000 | [diff] [blame] | 193 | all: world |
Eric Andersen | ffde94b | 2001-12-22 00:56:11 +0000 | [diff] [blame] | 194 | |
Eric Andersen | 2d523c2 | 2004-10-09 01:06:03 +0000 | [diff] [blame] | 195 | # In this section, we need .config |
| 196 | include .config.cmd |
| 197 | |
Ulf Samuelsson | f958d89 | 2007-08-14 07:45:01 +0000 | [diff] [blame] | 198 | include project/*.mk |
| 199 | |
Eric Andersen | d06645d | 2005-02-10 03:06:39 +0000 | [diff] [blame] | 200 | # We also need the various per-package makefiles, which also add |
| 201 | # each selected package to TARGETS if that package was selected |
| 202 | # in the .config file. |
Bernhard Reutner-Fischer | acc706b | 2007-07-23 11:29:38 +0000 | [diff] [blame] | 203 | ifeq ($(BR2_TOOLCHAIN_BUILDROOT),y) |
| 204 | # avoid pulling in external toolchain which is broken for toplvl parallel builds |
| 205 | include $(filter-out $(wildcard toolchain/external-toolchain/*),$(wildcard toolchain/*/*.mk)) |
| 206 | else |
Eric Andersen | d06645d | 2005-02-10 03:06:39 +0000 | [diff] [blame] | 207 | include toolchain/*/*.mk |
Bernhard Reutner-Fischer | acc706b | 2007-07-23 11:29:38 +0000 | [diff] [blame] | 208 | endif |
| 209 | |
"Steven J. Hill" | 62b5ae4 | 2007-07-18 18:07:19 +0000 | [diff] [blame] | 210 | ifeq ($(BR2_PACKAGE_LINUX),y) |
| 211 | TARGETS+=linux26-modules |
| 212 | endif |
Bernhard Reutner-Fischer | acc706b | 2007-07-23 11:29:38 +0000 | [diff] [blame] | 213 | |
Eric Andersen | d06645d | 2005-02-10 03:06:39 +0000 | [diff] [blame] | 214 | include package/*/*.mk |
Eric Andersen | d06645d | 2005-02-10 03:06:39 +0000 | [diff] [blame] | 215 | |
Eric Andersen | 79f5f1e | 2005-02-17 03:00:29 +0000 | [diff] [blame] | 216 | # target stuff is last so it can override anything else |
| 217 | include target/Makefile.in |
| 218 | |
Ulf Samuelsson | c2fc93b | 2007-08-15 09:47:49 +0000 | [diff] [blame] | 219 | TARGETS+=erase-fakeroots |
| 220 | |
Eric Andersen | 08782ae | 2002-04-26 11:45:55 +0000 | [diff] [blame] | 221 | TARGETS_CLEAN:=$(patsubst %,%-clean,$(TARGETS)) |
Bernhard Reutner-Fischer | 3b08e64 | 2007-09-18 13:12:25 +0000 | [diff] [blame] | 222 | TARGETS_SOURCE:=$(patsubst %,%-source,$(TARGETS) $(BASE_TARGETS)) |
Eric Andersen | 08782ae | 2002-04-26 11:45:55 +0000 | [diff] [blame] | 223 | TARGETS_DIRCLEAN:=$(patsubst %,%-dirclean,$(TARGETS)) |
Bernhard Reutner-Fischer | b3efde2 | 2007-09-01 17:10:55 +0000 | [diff] [blame] | 224 | TARGETS_ALL:=$(patsubst %,__real_tgt_%,$(TARGETS)) |
Bernhard Reutner-Fischer | acc706b | 2007-07-23 11:29:38 +0000 | [diff] [blame] | 225 | # all targets depend on the crosscompiler and it's prerequisites |
Bernhard Reutner-Fischer | b3efde2 | 2007-09-01 17:10:55 +0000 | [diff] [blame] | 226 | $(TARGETS_ALL): __real_tgt_%: $(BASE_TARGETS) % |
Bernhard Reutner-Fischer | acc706b | 2007-07-23 11:29:38 +0000 | [diff] [blame] | 227 | |
Bernhard Reutner-Fischer | 1dbe6e3 | 2007-08-21 17:56:47 +0000 | [diff] [blame] | 228 | $(BR2_DEPENDS_DIR): .config |
| 229 | rm -rf $@ |
Bernhard Reutner-Fischer | b3efde2 | 2007-09-01 17:10:55 +0000 | [diff] [blame] | 230 | mkdir -p $(@D) |
Bernhard Reutner-Fischer | 1dbe6e3 | 2007-08-21 17:56:47 +0000 | [diff] [blame] | 231 | cp -dpRf $(CONFIG)/buildroot-config $@ |
| 232 | |
Bernhard Reutner-Fischer | 5ef9e52 | 2007-07-27 14:57:34 +0000 | [diff] [blame] | 233 | dirs: $(DL_DIR) $(TOOL_BUILD_DIR) $(BUILD_DIR) $(STAGING_DIR) $(TARGET_DIR) \ |
Bernhard Reutner-Fischer | 1dbe6e3 | 2007-08-21 17:56:47 +0000 | [diff] [blame] | 234 | $(BR2_DEPENDS_DIR) \ |
Bernhard Reutner-Fischer | 5ef9e52 | 2007-07-27 14:57:34 +0000 | [diff] [blame] | 235 | $(BINARIES_DIR) $(PROJECT_BUILD_DIR) |
Ulf Samuelsson | f958d89 | 2007-08-14 07:45:01 +0000 | [diff] [blame] | 236 | |
Bernhard Reutner-Fischer | 5ef9e52 | 2007-07-27 14:57:34 +0000 | [diff] [blame] | 237 | $(BASE_TARGETS): dirs |
Ulf Samuelsson | f958d89 | 2007-08-14 07:45:01 +0000 | [diff] [blame] | 238 | |
Bernhard Reutner-Fischer | b3efde2 | 2007-09-01 17:10:55 +0000 | [diff] [blame] | 239 | world: dependencies dirs target-host-info $(BASE_TARGETS) $(TARGETS_ALL) |
Eric Andersen | ffde94b | 2001-12-22 00:56:11 +0000 | [diff] [blame] | 240 | |
Bernhard Reutner-Fischer | 5ef9e52 | 2007-07-27 14:57:34 +0000 | [diff] [blame] | 241 | |
Ulf Samuelsson | f958d89 | 2007-08-14 07:45:01 +0000 | [diff] [blame] | 242 | .PHONY: all world dirs clean dirclean distclean source \ |
Bernhard Reutner-Fischer | b3efde2 | 2007-09-01 17:10:55 +0000 | [diff] [blame] | 243 | $(BASE_TARGETS) $(TARGETS) $(TARGETS_ALL) \ |
Eric Andersen | 747b16d | 2004-12-11 10:33:19 +0000 | [diff] [blame] | 244 | $(TARGETS_CLEAN) $(TARGETS_DIRCLEAN) $(TARGETS_SOURCE) \ |
Bernhard Reutner-Fischer | 5ef9e52 | 2007-07-27 14:57:34 +0000 | [diff] [blame] | 245 | $(DL_DIR) $(TOOL_BUILD_DIR) $(BUILD_DIR) $(STAGING_DIR) $(TARGET_DIR) \ |
Bernhard Reutner-Fischer | 1dbe6e3 | 2007-08-21 17:56:47 +0000 | [diff] [blame] | 246 | $(BR2_DEPENDS_DIR) \ |
Bernhard Reutner-Fischer | 5ef9e52 | 2007-07-27 14:57:34 +0000 | [diff] [blame] | 247 | $(BINARIES_DIR) $(PROJECT_BUILD_DIR) |
Jon Nelson | c79e998 | 2002-01-05 20:26:15 +0000 | [diff] [blame] | 248 | |
Eric Andersen | 08782ae | 2002-04-26 11:45:55 +0000 | [diff] [blame] | 249 | ############################################################# |
| 250 | # |
Eric Andersen | ef407d3 | 2004-01-29 23:21:00 +0000 | [diff] [blame] | 251 | # staging and target directories do NOT list these as |
Mike Frysinger | d99c31c | 2006-05-26 01:18:09 +0000 | [diff] [blame] | 252 | # dependencies anywhere else |
Eric Andersen | 08782ae | 2002-04-26 11:45:55 +0000 | [diff] [blame] | 253 | # |
| 254 | ############################################################# |
Bernhard Reutner-Fischer | 5ef9e52 | 2007-07-27 14:57:34 +0000 | [diff] [blame] | 255 | $(DL_DIR) $(TOOL_BUILD_DIR) $(BUILD_DIR) \ |
Ulf Samuelsson | c6771df | 2007-08-16 05:44:55 +0000 | [diff] [blame] | 256 | $(PROJECT_BUILD_DIR) $(BINARIES_DIR): |
Bernhard Reutner-Fischer | 8d583fc | 2007-01-30 00:58:18 +0000 | [diff] [blame] | 257 | @mkdir -p $@ |
Manuel Novoa III | 3ad3d8a | 2004-09-03 00:49:43 +0000 | [diff] [blame] | 258 | |
Eric Andersen | 08782ae | 2002-04-26 11:45:55 +0000 | [diff] [blame] | 259 | $(STAGING_DIR): |
"Steven J. Hill" | 9c865d7 | 2007-05-07 03:56:47 +0000 | [diff] [blame] | 260 | @mkdir -p $(STAGING_DIR)/bin |
Eric Andersen | bf38723 | 2004-12-11 10:35:18 +0000 | [diff] [blame] | 261 | @mkdir -p $(STAGING_DIR)/lib |
Bernhard Reutner-Fischer | 7e0c890 | 2007-06-24 12:27:08 +0000 | [diff] [blame] | 262 | ifeq ($(BR2_TOOLCHAIN_SYSROOT),y) |
Bernhard Reutner-Fischer | 8027784 | 2007-06-20 11:26:36 +0000 | [diff] [blame] | 263 | @mkdir -p $(STAGING_DIR)/usr/lib |
| 264 | else |
| 265 | @ln -snf . $(STAGING_DIR)/usr |
| 266 | @mkdir -p $(STAGING_DIR)/usr/$(REAL_GNU_TARGET_NAME) |
Eric Andersen | 3da708e | 2007-01-10 06:55:27 +0000 | [diff] [blame] | 267 | @ln -snf ../lib $(STAGING_DIR)/usr/lib |
Bernhard Reutner-Fischer | 8027784 | 2007-06-20 11:26:36 +0000 | [diff] [blame] | 268 | @ln -snf ../lib $(STAGING_DIR)/usr/$(REAL_GNU_TARGET_NAME)/lib |
| 269 | endif |
| 270 | @mkdir -p $(STAGING_DIR)/usr/include |
Eric Andersen | 08782ae | 2002-04-26 11:45:55 +0000 | [diff] [blame] | 271 | |
Ulf Samuelsson | c6771df | 2007-08-16 05:44:55 +0000 | [diff] [blame] | 272 | $(PROJECT_BUILD_DIR)/.root: |
Bernhard Reutner-Fischer | 7547c7e | 2007-08-21 10:53:39 +0000 | [diff] [blame] | 273 | mkdir -p $(TARGET_DIR) |
Bernhard Reutner-Fischer | f0ca4b8 | 2007-08-21 10:56:38 +0000 | [diff] [blame] | 274 | if ! [ -d "$(TARGET_DIR)/bin" ]; then \ |
| 275 | if [ -d "$(TARGET_SKELETON)" ]; then \ |
Bernhard Reutner-Fischer | 18d979c | 2007-09-01 18:21:09 +0000 | [diff] [blame] | 276 | cp -fa $(TARGET_SKELETON)/* $(TARGET_DIR)/; \ |
Ulf Samuelsson | 74cda1e | 2007-08-14 07:24:45 +0000 | [diff] [blame] | 277 | fi; \ |
Bernhard Reutner-Fischer | 18d979c | 2007-09-01 18:21:09 +0000 | [diff] [blame] | 278 | touch $(STAGING_DIR)/.fakeroot.00000; \ |
Bernhard Reutner-Fischer | f0ca4b8 | 2007-08-21 10:56:38 +0000 | [diff] [blame] | 279 | fi |
| 280 | -find $(TARGET_DIR) -type d -name CVS | xargs rm -rf |
| 281 | -find $(TARGET_DIR) -type d -name .svn | xargs rm -rf |
Bernhard Reutner-Fischer | 7547c7e | 2007-08-21 10:53:39 +0000 | [diff] [blame] | 282 | touch $@ |
Eric Andersen | ffde94b | 2001-12-22 00:56:11 +0000 | [diff] [blame] | 283 | |
Bernhard Reutner-Fischer | 1dbe6e3 | 2007-08-21 17:56:47 +0000 | [diff] [blame] | 284 | $(TARGET_DIR): $(PROJECT_BUILD_DIR)/.root |
Ulf Samuelsson | c6771df | 2007-08-16 05:44:55 +0000 | [diff] [blame] | 285 | |
Ulf Samuelsson | c2fc93b | 2007-08-15 09:47:49 +0000 | [diff] [blame] | 286 | erase-fakeroots: |
Ulf Samuelsson | 5d2be04 | 2007-08-16 18:19:42 +0000 | [diff] [blame] | 287 | rm -f $(PROJECT_BUILD_DIR)/.fakeroot* |
Ulf Samuelsson | 412ca2a | 2007-07-12 13:11:03 +0000 | [diff] [blame] | 288 | |
Bernhard Reutner-Fischer | 3b08e64 | 2007-09-18 13:12:25 +0000 | [diff] [blame] | 289 | source: $(TARGETS_SOURCE) $(HOST_SOURCE) |
Eric Andersen | ffde94b | 2001-12-22 00:56:11 +0000 | [diff] [blame] | 290 | |
Bernhard Reutner-Fischer | 6547bce | 2007-08-22 12:35:41 +0000 | [diff] [blame] | 291 | _source-check: |
Ulf Samuelsson | e7c08c2 | 2007-07-20 07:34:28 +0000 | [diff] [blame] | 292 | $(MAKE) SPIDER=--spider source |
Bernhard Reutner-Fischer | 825ff34 | 2007-06-07 12:57:03 +0000 | [diff] [blame] | 293 | |
Eric Andersen | 08782ae | 2002-04-26 11:45:55 +0000 | [diff] [blame] | 294 | ############################################################# |
| 295 | # |
| 296 | # Cleanup and misc junk |
| 297 | # |
| 298 | ############################################################# |
| 299 | clean: $(TARGETS_CLEAN) |
Manuel Novoa III | 3ad3d8a | 2004-09-03 00:49:43 +0000 | [diff] [blame] | 300 | rm -rf $(STAGING_DIR) $(TARGET_DIR) $(IMAGE) |
Eric Andersen | ffde94b | 2001-12-22 00:56:11 +0000 | [diff] [blame] | 301 | |
Eric Andersen | 08782ae | 2002-04-26 11:45:55 +0000 | [diff] [blame] | 302 | dirclean: $(TARGETS_DIRCLEAN) |
Manuel Novoa III | 3ad3d8a | 2004-09-03 00:49:43 +0000 | [diff] [blame] | 303 | rm -rf $(STAGING_DIR) $(TARGET_DIR) $(IMAGE) |
Eric Andersen | ffde94b | 2001-12-22 00:56:11 +0000 | [diff] [blame] | 304 | |
Eric Andersen | 08782ae | 2002-04-26 11:45:55 +0000 | [diff] [blame] | 305 | distclean: |
Mike Frysinger | 5bc1f0c | 2005-09-09 02:49:10 +0000 | [diff] [blame] | 306 | ifeq ($(DL_DIR),$(BASE_DIR)/dl) |
| 307 | rm -rf $(DL_DIR) |
| 308 | endif |
Bernhard Reutner-Fischer | 6547bce | 2007-08-22 12:35:41 +0000 | [diff] [blame] | 309 | rm -rf $(BUILD_DIR) $(PROJECT_BUILD_DIR) $(BINARIES_DIR) \ |
Ulf Samuelsson | 412ca2a | 2007-07-12 13:11:03 +0000 | [diff] [blame] | 310 | $(LINUX_KERNEL) $(IMAGE) $(BASE_DIR)/include \ |
Bernhard Reutner-Fischer | 81df226 | 2007-07-09 08:06:27 +0000 | [diff] [blame] | 311 | .config.cmd |
Bernhard Reutner-Fischer | b513619 | 2007-01-19 18:00:49 +0000 | [diff] [blame] | 312 | $(MAKE) -C $(CONFIG) clean |
Eric Andersen | ffde94b | 2001-12-22 00:56:11 +0000 | [diff] [blame] | 313 | |
Manuel Novoa III | 3ad3d8a | 2004-09-03 00:49:43 +0000 | [diff] [blame] | 314 | sourceball: |
Bernhard Reutner-Fischer | 6547bce | 2007-08-22 12:35:41 +0000 | [diff] [blame] | 315 | rm -rf $(BUILD_DIR) $(PROJECT_BUILD_DIR) $(BINARIES_DIR) |
Eric Andersen | 08782ae | 2002-04-26 11:45:55 +0000 | [diff] [blame] | 316 | set -e; \ |
| 317 | cd ..; \ |
| 318 | rm -f buildroot.tar.bz2; \ |
| 319 | tar -cvf buildroot.tar buildroot; \ |
| 320 | bzip2 -9 buildroot.tar; \ |
Eric Andersen | 2d523c2 | 2004-10-09 01:06:03 +0000 | [diff] [blame] | 321 | |
| 322 | |
| 323 | else # ifeq ($(strip $(BR2_HAVE_DOT_CONFIG)),y) |
| 324 | |
| 325 | all: menuconfig |
| 326 | |
| 327 | # configuration |
| 328 | # --------------------------------------------------------------------------- |
| 329 | |
Bernhard Reutner-Fischer | c0d7d4e | 2007-07-09 18:23:20 +0000 | [diff] [blame] | 330 | HOSTCFLAGS=$(CFLAGS_FOR_BUILD) |
| 331 | export HOSTCFLAGS |
| 332 | |
Eric Andersen | 2d523c2 | 2004-10-09 01:06:03 +0000 | [diff] [blame] | 333 | $(CONFIG)/conf: |
Bernhard Reutner-Fischer | 1dbe6e3 | 2007-08-21 17:56:47 +0000 | [diff] [blame] | 334 | @mkdir -p $(CONFIG)/buildroot-config |
Bernhard Reutner-Fischer | fb2c8fe | 2007-07-27 14:16:00 +0000 | [diff] [blame] | 335 | $(MAKE) CC="$(HOSTCC)" -C $(CONFIG) conf |
Bernhard Reutner-Fischer | 18d979c | 2007-09-01 18:21:09 +0000 | [diff] [blame] | 336 | -@if [ ! -f .config ]; then \ |
Eric Andersen | 2d523c2 | 2004-10-09 01:06:03 +0000 | [diff] [blame] | 337 | cp $(CONFIG_DEFCONFIG) .config; \ |
| 338 | fi |
| 339 | $(CONFIG)/mconf: |
Bernhard Reutner-Fischer | 1dbe6e3 | 2007-08-21 17:56:47 +0000 | [diff] [blame] | 340 | @mkdir -p $(CONFIG)/buildroot-config |
Bernhard Reutner-Fischer | fb2c8fe | 2007-07-27 14:16:00 +0000 | [diff] [blame] | 341 | $(MAKE) CC="$(HOSTCC)" -C $(CONFIG) conf mconf |
Bernhard Reutner-Fischer | 18d979c | 2007-09-01 18:21:09 +0000 | [diff] [blame] | 342 | -@if [ ! -f .config ]; then \ |
Eric Andersen | 2d523c2 | 2004-10-09 01:06:03 +0000 | [diff] [blame] | 343 | cp $(CONFIG_DEFCONFIG) .config; \ |
| 344 | fi |
| 345 | |
| 346 | menuconfig: $(CONFIG)/mconf |
Bernhard Reutner-Fischer | 7b403ad | 2007-08-21 11:25:30 +0000 | [diff] [blame] | 347 | @mkdir -p $(CONFIG)/buildroot-config |
Bernhard Reutner-Fischer | 153b1be | 2007-07-27 12:37:30 +0000 | [diff] [blame] | 348 | @if ! KCONFIG_AUTOCONFIG=$(CONFIG)/buildroot-config/auto.conf \ |
"Steven J. Hill" | 62b5ae4 | 2007-07-18 18:07:19 +0000 | [diff] [blame] | 349 | KCONFIG_AUTOHEADER=$(CONFIG)/buildroot-config/autoconf.h \ |
Bernhard Reutner-Fischer | 153b1be | 2007-07-27 12:37:30 +0000 | [diff] [blame] | 350 | $(CONFIG)/mconf $(CONFIG_CONFIG_IN); then \ |
| 351 | test -f .config.cmd || rm -f .config; \ |
| 352 | fi |
Eric Andersen | 2d523c2 | 2004-10-09 01:06:03 +0000 | [diff] [blame] | 353 | |
| 354 | config: $(CONFIG)/conf |
Bernhard Reutner-Fischer | 7b403ad | 2007-08-21 11:25:30 +0000 | [diff] [blame] | 355 | @mkdir -p $(CONFIG)/buildroot-config |
"Steven J. Hill" | 62b5ae4 | 2007-07-18 18:07:19 +0000 | [diff] [blame] | 356 | @KCONFIG_AUTOCONFIG=$(CONFIG)/buildroot-config/auto.conf \ |
| 357 | KCONFIG_AUTOHEADER=$(CONFIG)/buildroot-config/autoconf.h \ |
Bernhard Reutner-Fischer | f987b7a | 2007-07-08 00:00:17 +0000 | [diff] [blame] | 358 | $(CONFIG)/conf $(CONFIG_CONFIG_IN) |
Eric Andersen | 2d523c2 | 2004-10-09 01:06:03 +0000 | [diff] [blame] | 359 | |
| 360 | oldconfig: $(CONFIG)/conf |
Bernhard Reutner-Fischer | 7b403ad | 2007-08-21 11:25:30 +0000 | [diff] [blame] | 361 | @mkdir -p $(CONFIG)/buildroot-config |
"Steven J. Hill" | 62b5ae4 | 2007-07-18 18:07:19 +0000 | [diff] [blame] | 362 | @KCONFIG_AUTOCONFIG=$(CONFIG)/buildroot-config/auto.conf \ |
| 363 | KCONFIG_AUTOHEADER=$(CONFIG)/buildroot-config/autoconf.h \ |
Bernhard Reutner-Fischer | f987b7a | 2007-07-08 00:00:17 +0000 | [diff] [blame] | 364 | $(CONFIG)/conf -o $(CONFIG_CONFIG_IN) |
Eric Andersen | 2d523c2 | 2004-10-09 01:06:03 +0000 | [diff] [blame] | 365 | |
| 366 | randconfig: $(CONFIG)/conf |
Bernhard Reutner-Fischer | 7b403ad | 2007-08-21 11:25:30 +0000 | [diff] [blame] | 367 | @mkdir -p $(CONFIG)/buildroot-config |
"Steven J. Hill" | 62b5ae4 | 2007-07-18 18:07:19 +0000 | [diff] [blame] | 368 | @KCONFIG_AUTOCONFIG=$(CONFIG)/buildroot-config/auto.conf \ |
| 369 | KCONFIG_AUTOHEADER=$(CONFIG)/buildroot-config/autoconf.h \ |
Bernhard Reutner-Fischer | f987b7a | 2007-07-08 00:00:17 +0000 | [diff] [blame] | 370 | $(CONFIG)/conf -r $(CONFIG_CONFIG_IN) |
Eric Andersen | 2d523c2 | 2004-10-09 01:06:03 +0000 | [diff] [blame] | 371 | |
| 372 | allyesconfig: $(CONFIG)/conf |
Bernhard Reutner-Fischer | f987b7a | 2007-07-08 00:00:17 +0000 | [diff] [blame] | 373 | cat $(CONFIG_DEFCONFIG) > .config |
Bernhard Reutner-Fischer | 7b403ad | 2007-08-21 11:25:30 +0000 | [diff] [blame] | 374 | @mkdir -p $(CONFIG)/buildroot-config |
"Steven J. Hill" | 62b5ae4 | 2007-07-18 18:07:19 +0000 | [diff] [blame] | 375 | @KCONFIG_AUTOCONFIG=$(CONFIG)/buildroot-config/auto.conf \ |
| 376 | KCONFIG_AUTOHEADER=$(CONFIG)/buildroot-config/autoconf.h \ |
Bernhard Reutner-Fischer | f987b7a | 2007-07-08 00:00:17 +0000 | [diff] [blame] | 377 | $(CONFIG)/conf -y $(CONFIG_CONFIG_IN) |
Eric Andersen | 2d523c2 | 2004-10-09 01:06:03 +0000 | [diff] [blame] | 378 | #sed -i -e "s/^CONFIG_DEBUG.*/# CONFIG_DEBUG is not set/" .config |
Eric Andersen | 2d523c2 | 2004-10-09 01:06:03 +0000 | [diff] [blame] | 379 | |
| 380 | allnoconfig: $(CONFIG)/conf |
Bernhard Reutner-Fischer | 7b403ad | 2007-08-21 11:25:30 +0000 | [diff] [blame] | 381 | @mkdir -p $(CONFIG)/buildroot-config |
"Steven J. Hill" | 62b5ae4 | 2007-07-18 18:07:19 +0000 | [diff] [blame] | 382 | @KCONFIG_AUTOCONFIG=$(CONFIG)/buildroot-config/auto.conf \ |
| 383 | KCONFIG_AUTOHEADER=$(CONFIG)/buildroot-config/autoconf.h \ |
Bernhard Reutner-Fischer | f987b7a | 2007-07-08 00:00:17 +0000 | [diff] [blame] | 384 | $(CONFIG)/conf -n $(CONFIG_CONFIG_IN) |
Eric Andersen | 2d523c2 | 2004-10-09 01:06:03 +0000 | [diff] [blame] | 385 | |
| 386 | defconfig: $(CONFIG)/conf |
Bernhard Reutner-Fischer | 7b403ad | 2007-08-21 11:25:30 +0000 | [diff] [blame] | 387 | @mkdir -p $(CONFIG)/buildroot-config |
"Steven J. Hill" | 62b5ae4 | 2007-07-18 18:07:19 +0000 | [diff] [blame] | 388 | @KCONFIG_AUTOCONFIG=$(CONFIG)/buildroot-config/auto.conf \ |
| 389 | KCONFIG_AUTOHEADER=$(CONFIG)/buildroot-config/autoconf.h \ |
Bernhard Reutner-Fischer | f987b7a | 2007-07-08 00:00:17 +0000 | [diff] [blame] | 390 | $(CONFIG)/conf -d $(CONFIG_CONFIG_IN) |
Eric Andersen | 2d523c2 | 2004-10-09 01:06:03 +0000 | [diff] [blame] | 391 | |
Bernhard Reutner-Fischer | 6547bce | 2007-08-22 12:35:41 +0000 | [diff] [blame] | 392 | # check if download URLs are outdated |
Bernhard Reutner-Fischer | 825ff34 | 2007-06-07 12:57:03 +0000 | [diff] [blame] | 393 | source-check: allyesconfig |
| 394 | $(MAKE) _source-check |
| 395 | |
Eric Andersen | 2d523c2 | 2004-10-09 01:06:03 +0000 | [diff] [blame] | 396 | ############################################################# |
| 397 | # |
| 398 | # Cleanup and misc junk |
| 399 | # |
| 400 | ############################################################# |
| 401 | clean: |
| 402 | rm -f .config .config.old .config.cmd .tmpconfig.h |
Bernhard Reutner-Fischer | 18d979c | 2007-09-01 18:21:09 +0000 | [diff] [blame] | 403 | -$(MAKE) -C $(CONFIG) clean |
Eric Andersen | 2d523c2 | 2004-10-09 01:06:03 +0000 | [diff] [blame] | 404 | |
| 405 | distclean: clean |
| 406 | rm -rf sources/* |
| 407 | |
| 408 | endif # ifeq ($(strip $(BR2_HAVE_DOT_CONFIG)),y) |
| 409 | |
Bernhard Reutner-Fischer | ba2e7e0 | 2007-06-25 10:56:13 +0000 | [diff] [blame] | 410 | %_defconfig: $(CONFIG)/conf |
| 411 | cp $(shell find ./target/ -name $@) .config |
| 412 | @$(CONFIG)/conf -o $(CONFIG_CONFIG_IN) |
| 413 | |
Bernhard Reutner-Fischer | e491fba | 2007-07-08 12:20:58 +0000 | [diff] [blame] | 414 | help: |
| 415 | @echo 'Cleaning:' |
| 416 | @echo ' clean - delete temporary files created by build' |
| 417 | @echo ' distclean - delete all non-source files (including .config)' |
| 418 | @echo |
| 419 | @echo 'Build:' |
| 420 | @echo ' all - make world' |
| 421 | @echo |
| 422 | @echo 'Configuration:' |
| 423 | @echo ' menuconfig - interactive curses-based configurator' |
| 424 | @echo ' oldconfig - resolve any unresolved symbols in .config' |
| 425 | @echo |
| 426 | @echo 'Miscellaneous:' |
| 427 | @echo ' source - download all sources needed for offline-build' |
Bernhard Reutner-Fischer | 0338040 | 2007-08-21 10:42:05 +0000 | [diff] [blame] | 428 | @echo ' source-check - check all packages for valid download URLs' |
Bernhard Reutner-Fischer | e491fba | 2007-07-08 12:20:58 +0000 | [diff] [blame] | 429 | @echo |
Bernhard Reutner-Fischer | 232fa7e | 2007-08-27 21:51:27 +0000 | [diff] [blame] | 430 | @echo 'See docs/README and docs/buildroot.html for further details' |
Bernhard Reutner-Fischer | 663dee4 | 2007-08-27 21:40:42 +0000 | [diff] [blame] | 431 | @echo |
Bernhard Reutner-Fischer | ba2e7e0 | 2007-06-25 10:56:13 +0000 | [diff] [blame] | 432 | |
Eric Andersen | 2d523c2 | 2004-10-09 01:06:03 +0000 | [diff] [blame] | 433 | .PHONY: dummy subdirs release distclean clean config oldconfig \ |
Bernhard Reutner-Fischer | e491fba | 2007-07-08 12:20:58 +0000 | [diff] [blame] | 434 | menuconfig tags check test depend defconfig help |
Ulf Samuelsson | 633c8cb | 2007-09-17 12:49:46 +0000 | [diff] [blame] | 435 | |