aboutsummaryrefslogtreecommitdiffstats
path: root/include/prereq.mk
Commit message (Collapse)AuthorAgeFilesLines
* treewide: drop use of whichAnsuel Smith2022-01-171-2/+2
| | | | | | | | | | | | | | Ubuntu started to flag which as deprecated and it seems which is not really standard and may vary across Distro. Drop the use of which and use the standard 'command -v' for this simple task. Which is still present in the prereq if some package/script still use which. A utility script called command_all.sh is implemented that will just mimic the output of which -a. Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
* Revert "build: replace which with Bash command built-in"Clemens Fruhwirth2021-03-031-2/+2
| | | | | | | | | | | This reverts commit c7aec47e5e3a3ff7b5fdaa11cd1e62cae6746acb. The original commit replaces 'which' with 'command'. Sadly most of them are not equivalent and for 'which -a', there is no easy replacements that would not reimplement PATH parsing logic. Hence revert. Keeping a dependency on which is absolutely fine. Signed-off-by: Clemens Fruhwirth <clemens@endorphin.org>
* build: use SPDX license tagsPaul Spooren2021-02-051-5/+2
| | | | | | | | | The license folder is a core part of OpenWrt and all GPL-2.0 licensed. Use SPDX license tags to allow machines to check licenses. Signed-off-by: Paul Spooren <mail@aparcar.org> [rebase, keep some Copyright lines, sharpen commit message] Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
* build: replace which with Bash command built-inPetr Štetiar2021-01-041-2/+2
| | | | | | | | | | | | | | | | | | | | | | | `which` utility is not shipped by default for example on recent Arch Linux and then any steps relying on its presence fails, like for example following Python3 prereq build check: $ python3 --version Python 3.9.1 $ make /bin/sh: line 1: which: command not found /bin/sh: line 1: which: command not found /bin/sh: line 1: which: command not found ... Checking 'python3'... failed. ... Fix this by switching to Bash builtin `command` which should provide same functionality. Fixes: FS#3525 Signed-off-by: Petr Štetiar <ynezz@true.cz>
* build: cleanup possibly dangling Python 2 host symlinkPetr Štetiar2019-07-261-0/+12
| | | | | | | | | | | | When bumping buildroot to Python 3, we need to assure, that Python symlink in staging bin directory points to Python >= 3.5 as well. We can't rely completly just on SetupHostCommand as its executed only in cases when the $(STAGING_DIR_HOST)/bin/python doesn't already exist, so we need to remove it before running SetupHostCommand. Acked-by: Yousong Zhou <yszhou4tech@gmail.com> Signed-off-by: Petr Štetiar <ynezz@true.cz>
* include: extend SetupHostCommand macro to accept more argumentsJo-Philipp Wich2018-04-051-1/+2
| | | | | | | | | | | | | Commit d6d3db0543 added more gcc version probes, exceeding the argument limit of the SetupHostCommand macro, leading to failing GCC/LLVM tests on OS X. Extend the handled number of arguments to restore proper functionality. Fixes FS#1470 Fixes d6d3db0543 ("build: Improve GCC version detection") Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* build: do not overwrite already existing host commandsFelix Fietkau2015-09-161-0/+1
| | | | | | | | | This prevents a later prereq check from overwriting the installed tar binary. Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 46982
* include: remove trailing whitespacesLuka Perkov2015-03-291-2/+2
| | | | | | Signed-off-by: Luka Perkov <luka@openwrt.org> SVN-Revision: 45127
* build: accept apple llvm as fallback for gcc/g++Felix Fietkau2015-02-071-1/+2
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 44298
* include/prereq.mk: fix echo commands with simple /bin/shFelix Fietkau2015-02-071-2/+2
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 44297
* include: don't rely on perl for printing prereq errorsJo-Philipp Wich2015-02-051-1/+1
| | | | | | | | | Perl might not be present while checking prereqs, e.g. on a fresh FreeBSD install. Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> SVN-Revision: 44276
* include: add TestHostCommand and SetupHostCommand macrosJo-Philipp Wich2015-02-051-2/+46
| | | | | | | | | Those macros allow testing various commands on the host system, also process the prereq tests in the order they're declared. Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> SVN-Revision: 44269
* prereq.mk: only define .NOTPARALLEL when processing prereq checksFelix Fietkau2014-10-121-1/+1
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 42877
* some minor fixes, cleanups, package build abstractionFelix Fietkau2007-09-281-0/+4
| | | | SVN-Revision: 9051
* Add a requireheader for squid, should fix it (#2205)Florian Fainelli2007-08-121-0/+8
| | | | SVN-Revision: 8404
* next round of cleanup, convert target/ - make -j works now ;)Felix Fietkau2007-07-301-1/+2
| | | | SVN-Revision: 8242
* print package name when prereq failsMike Baker2007-01-311-1/+1
| | | | SVN-Revision: 6236
* allow newlines in prereq error messagesFelix Fietkau2007-01-201-1/+1
| | | | SVN-Revision: 6147
* make target/linux/* directories self-contained, use the selected kernel ↵Felix Fietkau2006-11-111-8/+3
| | | | | | version for the toolchain, autogenerate menuconfig and makefile code for target selection SVN-Revision: 5498
* finally move buildroot-ng to trunkFelix Fietkau2016-03-201-0/+54