Commit Graph

128 Commits

Author SHA1 Message Date
Matteo Croce
c37d7a7e8f fix mklibs with musl
crate a relative symlink to libc.so because
make wildcard function ignores broken symlinks

SVN-Revision: 46123
2015-06-25 10:14:22 +00:00
Felix Fietkau
b35846974e build: do another init script enabling run, fixes init scripts added via files/ (#19857)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 45964
2015-06-14 17:42:05 +00:00
Jo-Philipp Wich
edbb32897a build: trigger pacakge index creation for all feeds if required
When CONFIG_PER_FEED_REPO_ADD_DISABLED is set, trigger index creation for
any available feed, regardless of whether there where binaries built or not.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

SVN-Revision: 45765
2015-05-26 11:37:05 +00:00
Felix Fietkau
ecb14f4a5d build: allow creating empty package feeds
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 45757
2015-05-26 09:09:07 +00:00
Felix Fietkau
beca028bd6 build: add integration for managing opkg package feed keys
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 45286
2015-04-06 19:39:51 +00:00
John Crispin
44249f71a8 postinst trigger: the new postinst trigger broke IB
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 42571
2014-09-16 11:56:19 +00:00
John Crispin
d6dbc22bbc ipkg: add a default postinst/prerm script
the postinst script enables/starts the init.d scripts upon package installation
and installs the users required by the package.

the prerm script stops and disables the init.d scripts.

Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 42470
2014-09-11 12:27:49 +00:00
Jo-Philipp Wich
aebbc47c2a build: consider sub-directories when deploying packages to image with CONFIG_PER_FEED_REPO (#17430)
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

SVN-Revision: 42041
2014-08-07 15:35:12 +00:00
Jo-Philipp Wich
a720dd209f build: introduce per feed repository support
This changeset implements a new menuconfig option to generate separate
repositories for each enabled package feed instead of one monolithic one.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

SVN-Revision: 42002
2014-08-05 11:24:24 +00:00
John Crispin
3936ed4028 package/Makefile: Substituted deprecated -perm +mode with -perm /mode
The find(1) -perm +mode is no longer supported and has been deprecated since
2005.

This could resolve #13855 ticket.

Signed-off-by: Rocco Folino <lordzen87@gmail.com>

SVN-Revision: 40927
2014-06-02 12:44:13 +00:00
Jo-Philipp Wich
7490659254 package: ignore failed downloads with IGNORE_ERRORS
When IGNORE_ERROR is set, also skip broken downloads, this is required
to make a full "make download" run even if some upstream sources are
unreachable.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

SVN-Revision: 40768
2014-05-14 15:49:22 +00:00
Felix Fietkau
ee4110aff0 target/sdk: use .config instead of unconditionally enabling all build dirs
Call make defconfig on every build to catch newly added packages

Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 39913
2014-03-13 12:12:58 +00:00
Felix Fietkau
d1c64ab221 build: fix installation of default-variant packages when the source package has multiple variants (#15237)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 39899
2014-03-12 19:53:13 +00:00
Steven Barth
03b0c3b5a6 package/index: fix index creating when building without signing
Signed-off-by: Alexander Couzens <lynxis@fe80.eu>

SVN-Revision: 38287
2013-10-02 16:38:28 +00:00
Steven Barth
cbdd346b11 Add package signing infrastructure
Add package signing key and certificate configuration options to the
"Image configuration" submenu. If enabled, the Packages.gz list will
be signed as file Packages.sig. The passphrase for the signing key can
be sourced from a file or entered by the user. The signing certificate
is automatically added to the firmware image if opkg-smime is selected.

Signed-off-by: Evan Hunt <each@isc.org>
Signed-off-by: Steven Barth <steven@midlink.org>

SVN-Revision: 38284
2013-10-02 12:12:10 +00:00
Felix Fietkau
f91d09cabb mklibs: Fix mklibs usage when *.so files reside in subdirs
Currently package/Makefile only passes /lib /usr/lib and /usr/lib/ebtables
to mklibs. However, other libs can also reside in different subdirectories
(in my case /usr/lib/ipsec). Hence, create the list of library directories
dynamically.

Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com>

SVN-Revision: 37841
2013-08-26 17:31:27 +00:00
Felix Fietkau
4af1bb818c build: fix IGNORE_ERRORS for sources packages that match both 'y' and 'm'
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 37405
2013-07-18 16:44:44 +00:00
Felix Fietkau
64f0b22052 build: only install packages for selected variants, fixes building multiple variant selections in one tree
SVN-Revision: 34656
2012-12-13 13:07:01 +00:00
Jo-Philipp Wich
a99b0363d0 package: use file_copy to deploy files/ in the package/install phase
SVN-Revision: 34438
2012-12-02 12:20:38 +00:00
Jo-Philipp Wich
d3e90ba7a7 buildroot: isolate the .install stamp files for build variants (#12279)
This fixes missing embedded packages if multiple build variants are selected in
the build config, e.g. missing ppp if CONFIG_PACKAGE_ppp=y and
CONFIG_PACKAGE_ppp-multilink=m .

SVN-Revision: 34106
2012-11-07 16:15:22 +00:00
Felix Fietkau
0f6e5b76f8 build: add back the package/cleanup step to remove the root staging dir for mklibs
SVN-Revision: 33777
2012-10-15 13:19:45 +00:00
Felix Fietkau
44cd20b802 build: rework the package/install step - collect package install lists during package/compile, then install all packages at once
SVN-Revision: 33631
2012-10-06 16:01:06 +00:00
Luka Perkov
33dadd70ab mklibs: update to 0.1.34 (v2)
SVN-Revision: 32165
2012-06-10 17:07:46 +00:00
Jo-Philipp Wich
b179722c71 make sure that base-files is installed last, this allows per-target base-file overlays to work correctly
SVN-Revision: 27138
2011-06-08 19:38:25 +00:00
Felix Fietkau
963b90bb5a remove postinst files for preinstalled packages
SVN-Revision: 26299
2011-03-25 23:47:08 +00:00
Jo-Philipp Wich
c5a65a0373 Send ipkg-make-index.sh output to stdout
The "Generating index for package" created by ipkg-make-index only
clutter stderr and serve to push previous warnings/errors off-screen.
Instead, send to stdout.

Note:  This would send incorrect invocation messages to stdout as well.
If this is a concern, perhaps we could send them to FD 3, then send 3 to
2...

Signed-off-by: Kevin Locke <klocke@digitalenginesoftware.com>

SVN-Revision: 25678
2011-02-23 22:59:57 +00:00
Felix Fietkau
26c3d87db0 allow files/ to overwrite existing symlinks (fixes #3508)
SVN-Revision: 25078
2011-01-23 20:59:13 +00:00
Felix Fietkau
dd7c8797ec make IGNORE_ERRORS apply to deselected packages as well (typically triggered through dependencies)
SVN-Revision: 23796
2010-11-02 16:38:57 +00:00
Jo-Philipp Wich
e47a8a001c revert r22372 and r22405, dependency on host libtool causes problems
SVN-Revision: 22406
2010-07-28 02:18:16 +00:00
Jo-Philipp Wich
ceeb9a8013 make base-files dependent on opkg host compile, fixes install errors when package/compile and package/install are invoked separately
SVN-Revision: 22405
2010-07-27 22:26:13 +00:00
Jo-Philipp Wich
8c1d9afc40 use host opkg for installing packages in buildroot and ImageBuilder
SVN-Revision: 22372
2010-07-23 19:49:19 +00:00
Travis Kemen
52564dc5e3 this patch fixes package/Makefile.
-Raphael

SVN-Revision: 20000
2010-03-05 20:28:52 +00:00
Felix Fietkau
ba1e6a68ae fix opkg directory cleaning (#5646)
SVN-Revision: 17952
2009-10-06 04:50:53 +00:00
Felix Fietkau
717a6344d4 decrease verbosity of mklibs.py
SVN-Revision: 17174
2009-08-08 02:37:59 +00:00
Felix Fietkau
b1a2f4b2b8 integrate mklibs.py support into the build process
SVN-Revision: 17173
2009-08-08 02:25:03 +00:00
Felix Fietkau
4169a2e834 add a staging directory for unstripped package files, useful for debugging, will be used for mklibs integration later
SVN-Revision: 17167
2009-08-07 21:58:35 +00:00
Felix Fietkau
34939cad39 get rid of $Id$ - it has never helped us and it has broken too many patches ;)
SVN-Revision: 15242
2009-04-17 14:09:46 +00:00
Lars-Peter Clausen
fbdb8046c2 Fix enabling of init scripts.
SVN-Revision: 12482
2008-09-02 00:23:59 +00:00
Andy Boyett
6b045c7dc6 Generate gzipped package lists - Can be used by changing the src line in /etc/ipkg.conf to src/gz - Cannot be used by busybox ipkg
SVN-Revision: 11981
2008-07-29 03:36:11 +00:00
Felix Fietkau
31a3a503cc add a flag "IGNORE_ERRORS", which can be used to ignore build errors in packages
SVN-Revision: 11059
2008-05-07 16:45:00 +00:00
Felix Fietkau
2da3f6a256 fix the sdk
SVN-Revision: 9747
2007-12-14 00:33:25 +00:00
Felix Fietkau
21a246d5d6 add option for cleaning all ipkg info before the image build
SVN-Revision: 9151
2007-10-05 21:52:05 +00:00
Eugene Konev
dd44ecc578 fix image preconfiguration
SVN-Revision: 8921
2007-09-21 17:01:46 +00:00
Felix Fietkau
761dc0a0ae fix a dependency bug
SVN-Revision: 8561
2007-08-30 22:43:25 +00:00
Felix Fietkau
c6bc77ea36 build system cleanup/restructuring as described in http://lists.openwrt.org/pipermail/openwrt-devel/2007-August/001159.html
SVN-Revision: 8362
2007-08-07 00:04:25 +00:00
Felix Fietkau
24179e6814 fix package/index
SVN-Revision: 8294
2007-08-01 08:21:15 +00:00
Felix Fietkau
cb7605f7ba fix rootfs and init script handling
SVN-Revision: 8293
2007-07-31 22:54:21 +00:00
Felix Fietkau
a443100197 remove unnecessary deps
SVN-Revision: 8243
2007-07-30 21:22:38 +00:00
Felix Fietkau
d7f2cb1642 next round of cleanup, convert target/ - make -j works now ;)
SVN-Revision: 8242
2007-07-30 21:14:08 +00:00
Felix Fietkau
a7b635f075 more cleanup
SVN-Revision: 8238
2007-07-30 18:39:20 +00:00
Felix Fietkau
49e628f765 next round of build system cleanup - convert package/ to new structure
SVN-Revision: 8236
2007-07-30 18:22:01 +00:00
Felix Fietkau
0fc8be8ade add source feed rev to menuconfig, set 8180 as default rev for kamikaze 7.07
SVN-Revision: 8181
2007-07-26 15:28:59 +00:00
Felix Fietkau
d6c65d3332 fix parallel build issues
SVN-Revision: 7941
2007-07-12 12:50:16 +00:00
Felix Fietkau
d5b15895ef package/refresh should clean all packages before refreshing their patches
SVN-Revision: 7489
2007-06-04 11:20:03 +00:00
Felix Fietkau
9abbe7a033 Rename 'refresh' to 'update' and make the new 'refresh' actually refresh all the patches. Also added a target package/refresh which will do this to all packages in the buildroot
SVN-Revision: 7488
2007-06-04 11:14:08 +00:00
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
2007-06-03 06:16:08 +00:00
Felix Fietkau
b22491e0f8 make sure that /etc/rc.d exists before creating symlinks
SVN-Revision: 7417
2007-05-31 12:05:37 +00:00
Felix Fietkau
874f03ea00 fixes for a few build errors on osx without fink
SVN-Revision: 7065
2007-04-29 01:30:48 +00:00
Felix Fietkau
c2401030fc clean up version control junk in the rootfs directory
SVN-Revision: 7045
2007-04-24 16:29:07 +00:00
Felix Fietkau
9cb1c0e1ef add missing -prepare target
SVN-Revision: 7017
2007-04-20 19:04:23 +00:00
Felix Fietkau
72d4a76ab7 revert package compile breakage introduced in [6936]
SVN-Revision: 6938
2007-04-12 12:35:49 +00:00
Mike Baker
9b62c7eb9d minor tweaks to the verbose system
SVN-Revision: 6936
2007-04-11 22:59:42 +00:00
Mike Baker
23efe5fc83 Tidy up Makefiles
SVN-Revision: 6857
2007-04-03 23:03:56 +00:00
Felix Fietkau
4113d5a46d fix the sdk
SVN-Revision: 6718
2007-03-26 20:17:28 +00:00
Felix Fietkau
b2a976649f speed up package/install
SVN-Revision: 6588
2007-03-17 02:54:16 +00:00
Felix Fietkau
2c62bddcfe Add an 'Image Configuration' menu to menuconfig Packages can export a list of config options with labels and data types through the metadata. The selected config values will be exported to the target filesystem in /etc/uci-defaults and applied on the first boot.
SVN-Revision: 6572
2007-03-16 03:02:31 +00:00
Felix Fietkau
4e60cfe51f use default_subtargets in package/Makefile and target/Makefile
SVN-Revision: 6380
2007-02-26 00:41:53 +00:00
Mike Baker
312aeaf1be missed a reference to compile-targets
SVN-Revision: 6306
2007-02-16 01:12:05 +00:00
Mike Baker
7d3d765935 remove obsolete compile-targets rule
SVN-Revision: 6305
2007-02-16 01:06:23 +00:00
Felix Fietkau
657f223880 remove annoying package rm command
SVN-Revision: 6304
2007-02-16 01:00:31 +00:00
Mike Baker
7656ad75e5 move "make symlinks" to "make package/symlinks"
SVN-Revision: 6234
2007-01-31 18:33:04 +00:00
Felix Fietkau
351d0d4b07 Fix config checks for Image Builder and SDK - only build them when requested. Clear all packages from bin/packages at the beginning of package/compile when the Image Builder is selected, because the Image Builder can't handle multiple versions of the same package.
SVN-Revision: 6102
2007-01-14 23:37:40 +00:00
Felix Fietkau
2a09c35cc9 remove hardcoded package name
SVN-Revision: 5879
2006-12-20 07:00:30 +00:00
Felix Fietkau
0a4052dd78 allow people to add files to the rootfs by putting them in $(TOPDIR)/files/
SVN-Revision: 5685
2006-12-01 14:01:31 +00:00
Felix Fietkau
3207e32a9e fix path to temporary files
SVN-Revision: 5502
2006-11-12 01:38:24 +00:00
Felix Fietkau
8612d33691 init script cleanup, use /etc/rc.d/ for enabled scripts, /etc/init.d/<pkgname> (enable|disable) manages symlinks
SVN-Revision: 5128
2006-10-15 21:03:30 +00:00
Felix Fietkau
24b5b885b6 fix typo
SVN-Revision: 5075
2006-10-14 12:18:39 +00:00
Felix Fietkau
60c1f0f64d finally move buildroot-ng to trunk 2016-03-20 17:29:15 +01:00