summaryrefslogtreecommitdiffstats
path: root/MAKEALL
Commit message (Collapse)AuthorAgeFilesLines
* MAKEALL: source defconfig after determining correct CROSS_COMPILEAhmad Fatoum2023-06-261-14/+16
| | | | | | | | | | | | | | | ARM 32- and 64-bit have different GCC compiler backends, but the same architecture in barebox. MAKEALL handles that by sourcing the defconfig and then looking for CONFIG_CPU_64 before continuing to build. This is problematic, because CROSS_COMPILE can only be set after that, so we may end up with more dynamic Kconfig options being wrongly set the first time, because CROSS_COMPILE wasn't correctly set. Fix this by always sourcing the defconfig again once we determine the correct CROSS_COMPILE. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Link: https://lore.barebox.org/20230612124739.1080762-1-a.fatoum@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* MAKEALL: add incremental build supportAhmad Fatoum2023-06-211-2/+6
| | | | | | | | | MAKEALL always deletes the build directory, before starting. Add a command line option to make this configurable. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Link: https://lore.barebox.org/20230619094651.4143187-1-a.fatoum@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* MAKEALL: allow multiple defconfigs as argumentsSascha Hauer2023-05-021-1/+3
| | | | | | | Allow to pass multiple defconfigs as arguments. Link: https://lore.barebox.org/20230502073925.266116-11-s.hauer@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* MAKEALL: separate errors and warningsSascha Hauer2023-05-021-2/+9
| | | | | | | | Count and print errors and warnings separately to get and overview which configs failed and which ones issued warnings. Link: https://lore.barebox.org/20230502073925.266116-10-s.hauer@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* MAKEALL: rename variablesSascha Hauer2023-05-021-7/+7
| | | | | | | | nb_errors and errors_list contain the number/list of warnings, not errors, so rename the variables accordingly. Link: https://lore.barebox.org/20230502073925.266116-9-s.hauer@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* MAKEALL: support Kconfig fragmentsSascha Hauer2023-05-021-8/+18
| | | | | | | | | Add the ability to add kconfig fragments before building a defconfig. The fragments can be added by either the -k option or by setting the KCONFIG_ADD envrionment variable to a list of filenames. Link: https://lore.barebox.org/20230502073925.266116-8-s.hauer@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* MAKEALL: fix printing number of compiled configsSascha Hauer2023-05-021-2/+2
| | | | | | | | | Do not call do_build_target in a subshell, because increasing nb_defconfigs there will act on a local variable there instead of increasing the variable in the parent shell. Link: https://lore.barebox.org/20230502073925.266116-7-s.hauer@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* MAKEALL: Do not trapSascha Hauer2023-05-021-9/+3
| | | | | | | | | Just print the compile statistics at the end. There's no need to print them when MAKEALL gets interrupted, so just simplify the code by removing trapping signals. Link: https://lore.barebox.org/20230502073925.266116-6-s.hauer@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* MAKEALL: Do not print sizesSascha Hauer2023-05-021-1/+0
| | | | | | | | | | | | | The size of the barebox proper binary is not very useful to print, the binary will be compressed which decreases its size and the PBL will be added to it which then adds to the resulting size again. Printing the sizes will only show what we all know already: Software gets bigger over time when new features are added and more corner cases are handled. Just drop printing of the sizes. Link: https://lore.barebox.org/20230502073925.266116-5-s.hauer@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* MAKEALL: order configs alphabeticallySascha Hauer2023-05-021-1/+1
| | | | | | | | Expanding wildcards returns the files in filesystem order. Sort them alphabetically to compile the defconfigs in alphabetical order. Link: https://lore.barebox.org/20230502073925.266116-4-s.hauer@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* MAKEALL: Select arm64 toolchain for 64bit ARM configsSascha Hauer2023-05-021-0/+7
| | | | | | | | | For both 32bit and 64bit architectures ARCH=arm is used, but we need different toolchains to compile them. Pick the correct one based on the CONFIG_CPU_64 symbol. Link: https://lore.barebox.org/20230502073925.266116-3-s.hauer@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* MAKEALL: Configure before setting up CROSS_COMPILESascha Hauer2023-05-021-9/+10
| | | | | | | | Do make defconfig before setting up CROSS_COMPILE. This will allow us to select a ARM 32/64 bit toolchain from .config in the next step. Link: https://lore.barebox.org/20230502073925.266116-2-s.hauer@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* treewide: add SPDX-License-Identifier for files without explicit licenseAhmad Fatoum2022-01-051-0/+2
| | | | | | | | | Record GPL-2.0-only as license for all files lacking an explicit license statement. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Link: https://lore.barebox.org/20220103120539.1730644-12-a.fatoum@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* docs: use #!/usr/bin/env bash shebang instead of #!/bin/bashFlorian Klink2019-12-061-1/+1
| | | | | | | | | | Some distributions might not have bash in /bin, but in $PATH. Using #!/usr/bin/env bash solves this, and is consistent with how the perl and python shebangs look like in the tree. Signed-off-by: Florian Klink <flokli@flokli.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/misc'Sascha Hauer2015-02-041-2/+1
|\
| * MAKEALL: do not create build directory explicitlyMasahiro Yamada2015-02-021-1/+0
| | | | | | | | | | | | | | | | | | Since commit e7554c0cb245 (kbuild: create a build directory automatically for out-of-tree build), MAKEALL does not have to create a build directory. It it done by the top Makefile. Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * MAKEALL: fix do_build_allMasahiro Yamada2015-02-021-1/+1
| | | | | | | | | | | | | | | | | | | | | | Currently, do_build_all() does nothing. Since commit 195310fd7b48 (MAKEALL: add regex support), do_build() takes two arguments. To fix do_build_all(), it must pass "*" as the second argument of do_build(). Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | MAKEALL: consolidate -j${JOBS} argumentMasahiro Yamada2015-02-041-3/+3
| | | | | | | | | | | | | | | | This argument is common in configuration and compilation. Move it to ${MAKE}. Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | MAKEALL: do not pass unneeded -C option to makeMasahiro Yamada2015-02-041-3/+1
| | | | | | | | | | | | | | | | We do not change the working directory in this script. "-C ${here}" is not necessary. Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | MAKEALL: use $(...) instead of `...` for readabilityMasahiro Yamada2015-02-041-7/+7
| | | | | | | | | | | | | | | | | | | | | | The mixture of single quotes and back quotes in the same line makes scripts unreadable. Here, do_build_target() is especially unreadable. Using $(...) instead of `...` would make it a little better. Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | MAKEALL: remove false positive error checkMasahiro Yamada2015-02-041-7/+0
| | | | | | | | | | | | | | | | | | | | | | | | CROSS_COMPILE is not necessary in some cases: - Sandbox - Native build (e.g. when you build barebox for ARM on the ARM Linux system) - If CONFIG_CROSS_COMPILE is supported like Linux in the future, CROSS_COMPILE might be set by Kbuild. Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | MAKEALL: check the return code of "make" rather than "printf"Masahiro Yamada2015-02-041-4/+9
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently, MAKEALL always reports "Configure: OK" and "Compile: OK" regardless of the result of the configuration and compile. $ LANG=C CROSS_COMPILE=arm-linux-gnueabi- ./MAKEALL -a arm foo_defconfig Building arm foo_defconfig make[2]: *** [foo_defconfig] Error 1 make[1]: *** [foo_defconfig] Error 2 make: *** [foo_defconfig] Error 2 Configure: OK *** *** Configuration file ".config" not found! *** *** Please run some configurator (e.g. "make oldconfig" or *** "make menuconfig" or "make xconfig"). *** make[3]: *** [silentoldconfig] Error 1 make[2]: *** [silentoldconfig] Error 2 make[1]: *** No rule to make target `include/config/auto.conf', needed by `include/config/kernel.release'. Stop. make[1]: *** Waiting for unfinished jobs.... make: *** [_all] Error 2 Compile: OK arm-linux-gnueabi-size: 'makeall_builddir/barebox': No such file Compiled in 2s The check_pipe_status() function must be called right after "make" command, not "printf" command. ("printf" probably succeeds all the time.) Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* MAKEALL: fix typosAntony Pavlov2013-06-051-2/+2
| | | | | Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* MAKEALL: add regex supportJean-Christophe PLAGNIOL-VILLARD2013-02-041-3/+13
| | | | | | | this will allow to compile only a subset of defconfig Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* MAKEALL: accept defconfig with '-' in itJean-Christophe PLAGNIOL-VILLARD2012-09-191-2/+4
| | | | | | | replace '-' with '_' for the configuration option Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* nfs: add readlink supportJean-Christophe PLAGNIOL-VILLARD2012-09-051-0/+1
| | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* MAKEALL: explicitly use bashSascha Hauer2012-01-021-1/+1
| | | | | | The script still contains bashisms, so use bash. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* MAKEALL: use '.' instead of 'source'Sascha Hauer2011-11-281-1/+1
| | | | | | 'source' is not available on dash. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* MAKEALL: allow CROSS_COMPILE*=""Jean-Christophe PLAGNIOL-VILLARD2010-10-081-3/+5
| | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* MAKEALL: make it genericJean-Christophe PLAGNIOL-VILLARD2010-10-021-59/+234
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | it's allow you to compile specific defconfig or ARCH or all as CROSS_COMPILE=arm-linux- ARCH=arm ./MAKEALL at91sam9263ek_defconfig CROSS_COMPILE=arm-linux- ARCH=arm ./MAKEALL The cross-compiler can be specify via CROSS_COMPILE default CROSS_COMPILE_<arch> arch default CROSS_COMPILE_<target> deconfig specifc it will be evaluated in the invert order or via config you can specify it via env CONFIG or option -c (overwrite env) CONFIG=./MAKEALL.cfg ARCH=arm ./MAKEALL at91sam9263ek_defconfig CONFIG=./MAKEALL.cfg ARCH=arm ./MAKEALL and for all CONFIG=./MAKEALL.cfg ./MAKEALL you can specify via env or option env option ARCH -a arch CONFIG -c config JOBS -j jobs BUILDDIR -O build dir LOGDIR -l log dir Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* [MAKEALL] remove seriously broken boards from MAKEALL, add toolchainSascha Hauer2008-07-031-9/+1
| | | | for blackfin
* Add MAKEALL script in order to be able to do test builds.Robert Schwebel2007-11-091-0/+97
| | | | Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
* remove some outdated filesSascha Hauer2007-09-211-354/+0
|
* Minor code cleanup; update CHANGELOG.Wolfgang Denk2006-12-221-1/+1
|
* Preliminary support for the iDMR board (ColdFire).Bartlomiej Sieka2006-12-201-2/+2
|
* Merge with http://opensource.freescale.com/pub/scm/u-boot-83xx.gitWolfgang Denk2006-11-301-1/+1
|\
| * Merge http://www.denx.de/git/u-bootKim Phillips2006-11-281-15/+15
| |\
| * | mpc83xx: Add MPC8360EMDS basic board supportDave Liu2006-11-031-1/+1
| | | | | | | | | | | | | | | Add support for the Freescale MPC8360EMDS board. Includes DDR, DUART, Local Bus, PCI.
| * | mpc83xx: Add support for the MPC8349E-mITXTimur Tabi2006-11-031-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | PREREQUISITE PATCHES: * This patch can only be applied after the following patches have been applied: 1) DNX#2006090742000024 "Add support for multiple I2C buses" 2) DNX#2006090742000033 "Multi-bus I2C implementation of MPC834x" 3) DNX#2006091242000041 "Additional MPC8349 support for multibus i2c" 4) DNX#2006091242000078 "Add support for variable flash memory sizes on 83xx systems" 5) DNX#2006091242000069 "Add support for Errata DDR6 on MPC 834x systems" CHANGELOG: * Add support for the Freescale MPC8349E-mITX reference design platform. The second TSEC (Vitesse 7385 switch) is not supported at this time. Signed-off-by: Timur Tabi <timur@freescale.com>
* | | [PATCH] Add support for Prodrive P3M750 & P3M7448 (P3Mx) boardsStefan Roese2006-11-291-2/+3
| |/ |/| | | | | | | | | | | | | | | This patch adds support for the Prodrive P3M750 (PPC750 & MV64460) and the P3M7448 (MPC7448 & MV64460) PMC modules. Both modules are quite similar and share the same board directory "prodrive/p3mx" and the same config file "p3mx.h". Signed-off-by: Stefan Roese <sr@denx.de>
* | Merge with /home/stefan/git/u-boot/denxStefan Roese2006-11-271-1/+1
|\|
* | Merge with /home/stefan/git/u-boot/denxStefan Roese2006-11-101-8/+15
|\|
| * Add ATSTK1000 and ATSTK1002 board supportWolfgang Denk2006-10-241-1/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Patch by Haavard Skinnemoen, 06 Sep 2006 This patch adds support for the ATSTK1000 with the ATSTK1002 CPU daughterboard. ATSTK1000 is a full-featured development board for AT32AP CPUs. It has two ethernet ports, a high quality QVGA LCD panel, a loudspeaker, and connectors for USART, PS/2, VGA, USB, MMC/SD cards and CompactFlash cards. For more information, please see this page: http://www.atmel.com/dyn/products/tools.asp?family_id=682 The ATSTK1002 is a daughterboard for the ATSTK1000 supporting the AT32AP7000 chip. Signed-off-by: Haavard Skinnemoen <hskinnemoen@atmel.com>
| * Merge with /home/tur/proj/051_uboot_linux_v38b/u-bootWolfgang Denk2006-10-181-1/+1
| |\
| | * Preliminary patch adding support for the MarelV38B board.Bartlomiej Sieka2006-10-131-1/+1
| | |
| * | Add support for EP82xxM boardsWolfgang Denk2006-10-091-6/+6
| |/ | | | | | | Patch by Aaron Sells, 20 Jun 2006
* | Merge with /home/stefan/git/u-boot/denxStefan Roese2006-09-181-20/+35
|\|
| * Merge with /home/m8/git/u-bootWolfgang Denk2006-09-091-1/+1
| |\
| | * Fix LOG_DIR directory creation error.Marian Balakowicz2006-09-071-1/+1
| | | | | | | | | | | | Add support for automatic creation of BUILD_DIR directory.
| * | Fix build problem cpu/ppc4xx/ndfc.cStefan Roese2006-09-071-14/+14
| | | | | | | | | | | | Patch by Stefan Roese, 07 Sep 2006