John Crispin
b44a2d3f7e
include: remove file before overwritting it with replace_script
...
config.{sub,guess} could be symlinks to a shared common version of
this file (e.g. in staging). So we remove the destination file via
--remove-destination option of cp. This prevents replaceing the
common file that other packages could be build with if running at
the same time.
This fixes a class of errors where config.sub is missing, or
only partially present when running configure because a cp is
currently in progress
This is commonly seen building with a lot of parallel jobs and
on packages that use 'PKG_FIXUP:=autoreconf'
Signed-off-by: Matthew McClintock <mmcclint@qca.qualcomm.com>
Signed-off-by: Mathieu Olivari <mathieu@qca.qualcomm.com>
SVN-Revision: 42547
10 years ago
John Crispin
285012d897
include: add a meta data field for required system user:group
...
this is in preparation of having services run as !root with
ACL'ed access to ubus.
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 42469
10 years ago
Felix Fietkau
51ae801ee3
build: remove check to nonexistant CONFIG_ENABLE_LOCALE variable and move DISABLE_NLS to package-defaults.mk
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 39980
11 years ago
Felix Fietkau
623825103e
build: allow packages to declare ABI versions to detect necessary package rebuilds
...
If a package directly depends on another package that recently changed
its ABI version, it will be cleaned up and rebuilt (assuming quilt is
not used).
This helps with packages that have no stable ABI, e.g. libubox, ubus,
etc.
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 39720
11 years ago
Felix Fietkau
de707ac97e
build: reduce the size of package metadata a bit to keep package list files smaller
...
SVN-Revision: 34871
12 years ago
Felix Fietkau
dc0faf077c
build: remove the default useless MAINTAINER value
...
SVN-Revision: 34868
12 years ago
Felix Fietkau
2d7eaf2e15
build: allow the package maintainer info to be specified globally for a source package
...
SVN-Revision: 33659
12 years ago
Felix Fietkau
ed2bf29be5
build: add the + token to any commands that can pass through the jobserver, fixes parallel build on some systems
...
SVN-Revision: 33523
12 years ago
Jo-Philipp Wich
b06f4dc972
make packages depend on +librt and +libpthread by default if eglibc is in use
...
SVN-Revision: 33480
12 years ago
Felix Fietkau
edee850e18
build: add a dependency on libc to all non-kernel packages
...
SVN-Revision: 32171
13 years ago
Felix Fietkau
74946bb022
build: remove redundant call to $(SH_FUNC) ( #8042 )
...
SVN-Revision: 30818
13 years ago
Felix Fietkau
edc3ad9100
build: add TARGET_CXXFLAGS and EXTRA_CXXFLAGS, defaulting to *_CFLAGS via lazy evaluation. this allows adding c++ specific cflags
...
SVN-Revision: 30760
13 years ago
Felix Fietkau
bcf4757508
add support for hidden packages that get selected/built but do not show up in menuconfig
...
SVN-Revision: 27344
14 years ago
Felix Fietkau
459762ace2
add a new package metadata variable MDEPENDS for specifying local menuconfig dependencies that do not propagate to other packages
...
SVN-Revision: 26491
14 years ago
Jo-Philipp Wich
8b9ca16985
add support for flagging packages
...
SVN-Revision: 23172
14 years ago
Jo-Philipp Wich
064e7c8f00
Implement an ARCH_PACKAGES variable which defaults to BOARD but can be overridden on a per-subtarget basis. This is intended for targets such as adm5120 and malta which support both big and little endianess and will replace the target specific exceptions in package-defaults and Image Builder.
...
SVN-Revision: 23029
14 years ago
Felix Fietkau
a9136c0892
speed up the build system by including include/shell.sh on shell commands only where necessary
...
SVN-Revision: 22720
14 years ago
Michael Büsch
7ed7784f59
Support parallel build of certain packages
...
SVN-Revision: 22696
14 years ago
Travis Kemen
e09067b221
The attached patch replaces $(1) install by $(if $(1), $(1), install) in the definition, in order to be able to specify an install rule, which is not always called install (example: trunk/package/ncurses/Makefile has rules called install.libs and install.data).
...
Then its possible to do this in ncurses Makefile:
define Build/Install
$(call Build/Install/Default, install.libs install.data)
endef
This patch does not affect anything else, as if no parameter is given,
it will use install as before.
-Raphael
SVN-Revision: 19996
15 years ago
Felix Fietkau
579d54038b
build system: introduce a new feature called build variants. it allows building a package multiple times in one pass with different build dirs, based on the same build settings. replaces templating hacks like the one used in the hostapd package
...
SVN-Revision: 18357
15 years ago
Imre Kaloz
671280830d
add special handling for the adm5120 target, which uses subtargets for different endianess -- later we should come up with something smarter
...
SVN-Revision: 17101
16 years ago
Florian Fainelli
e5221c1405
revert 17050 this was not the right way to fix this
...
SVN-Revision: 17075
16 years ago
Imre Kaloz
9711e6ad55
use board names instead of arch in packages
...
SVN-Revision: 17063
16 years ago
Florian Fainelli
04fc02ba10
move the global ipv6 option to the very bottom of the options passed to configure scripts, so that we can still override it in package makefiles ( #5592 , #5586 )
...
SVN-Revision: 17050
16 years ago
Florian Fainelli
11e1304ca0
globally define IPv6 support or not in OpenWrt, just like for largefiles, ipv6 disabled by default ( #4857 )
...
SVN-Revision: 16983
16 years ago
Florian Fainelli
d413a9639e
Fix configure script path when not at the root of $(PKG_BUILD_DIR), thanks Daniel Dickinson ( #5255 )
...
SVN-Revision: 16656
16 years ago
Ralph Hempel
6f29703625
add dist and distcheck target (to create new source balls)
...
SVN-Revision: 16230
16 years ago
Nicolas Thill
c73f8dfbe0
remove 2 old interfering variables, probably missed from [15299]
...
SVN-Revision: 15340
16 years ago
Felix Fietkau
729e0fa4d1
move pkg config stuff to per-target exports to prevent interference with host builds
...
SVN-Revision: 15299
16 years ago
Felix Fietkau
431c9267b4
replace a few unnecessary $(shell) calls
...
SVN-Revision: 14739
16 years ago
Felix Fietkau
f0bc868861
initialize the url field for packages
...
SVN-Revision: 14643
16 years ago
Felix Fietkau
bc6fcb0067
eliminate redundancy by creating the quilt_used stampfile in the right place
...
SVN-Revision: 14620
16 years ago
Felix Fietkau
7502d4bd61
add support for build-only packages which do not appear in menuconfig
...
SVN-Revision: 14009
16 years ago
Felix Fietkau
238304231d
make config.{guess,sub} writable before attempting to overwrite them (many packages have broken permissions in the tarball)
...
SVN-Revision: 13887
16 years ago
Felix Fietkau
3b937f85e8
add default Build/Install template, which is activated by setting PKG_INSTALL=1
...
SVN-Revision: 12512
16 years ago
Felix Fietkau
06e754b1f7
replace config.guess and config.sub properly, even if they are in a subdirectory
...
SVN-Revision: 12148
17 years ago
Felix Fietkau
a2c17f1bc5
export PKG_CONFIG_PATH and PKG_CONFIG_LIBDIR by default ( #3376 )
...
SVN-Revision: 12029
17 years ago
Felix Fietkau
713087f64c
add a configurable prefix for ./configure
...
SVN-Revision: 9938
17 years ago
Felix Fietkau
f0b363667b
add STAGING_DIR_HOST to PKG_CONFIG_PATH
...
SVN-Revision: 9850
17 years ago
John Crispin
7558f0281f
DESCRIPTION:= is obselete, so complain if it is used and use TITLE if no description is set
...
SVN-Revision: 9307
17 years ago
Felix Fietkau
d1933f9761
move a stampfile to make it easier to override the patch template
...
SVN-Revision: 9062
17 years ago
Nicolas Thill
c0033f360c
fix typo (thanks to jonasg[1] on irc)
...
SVN-Revision: 8618
17 years ago
Nicolas Thill
5b4bfbd6d4
move TARGET_* flags from ./include/package-default.mk to ./rules.mk, remove EXTRA_* flags but still use them in configure and make
...
SVN-Revision: 8592
17 years ago
Felix Fietkau
8e42553971
dynamically enable/disable kernel config options for kmod packages based on build system config
...
SVN-Revision: 8026
18 years ago
Imre Kaloz
6fb68cb589
use newer config.guess and config.sub for packages then the shipped ones
...
SVN-Revision: 7532
18 years ago
Felix Fietkau
cc690d782c
Add quilt integration for packages
...
make package/<package>-prepare QUILT=1 will apply all patches using quilt
Autorebuild will be disabled, so that you can edit all patches in the build dir.
When you're done editing patches and everything works, you can call:
make package/<package>-refresh
That will copy the updated patches from quilt into package/<package>/patches,
and remove all old patches.
Before the patches are overwritten, the correct order of the patches is verified
('cat series' is compared against 'sort series').
SVN-Revision: 7471
18 years ago
Felix Fietkau
fe42382d1c
split CONFIGURE_PATH into CONFIGURE_PATH and CONFIGURE_CMD for better handling of subdirectories with configure
...
SVN-Revision: 6681
18 years ago
Felix Fietkau
ac75c5015f
fix CONFIGURE_PATH and add MAKE_PATH
...
SVN-Revision: 6680
18 years ago
Felix Fietkau
036a419fe1
use recursive variable expansion for CONFIGURE_*, MAKE_* variables in the package build so that TARGET_*FLAGS changes also apply
...
SVN-Revision: 6678
18 years ago
Felix Fietkau
7b1a36cab4
split package.mk and clean up build system code (based on patch by mbm), makes the code more readable and speeds up metadata scan
...
SVN-Revision: 6571
18 years ago