Yann E. MORIN
63abfb7210
package/linux-headers: add option to use same sources as the kernel
...
Some heavily (and most often improperly) modified Linux kernels may export
new APIs to userland, so as to speak to custom hardware or custom kernel
facilities.
However, we currently have no easy way to use such kernels as a source
for the linux-headers package, which precludes having those userland
headers intalled for userland applications to use them.
We do have a way for the kernel to use the same version as for the
headers, but that is definitely not enough, as the linux-headers package
has a version choice that is far less versatile and capable than that of
the linux package.
Add a new option for the linux-headers package, for the user to specify
that the version (really, the sources) of the kernel be used to install
the headers from.
We do that by making linux-headers patch-depend on the linux package.
We can't have linux-header simply depend on linux, because the simple
dependency means the the dependee will be configured, built and installed
before the dependent is configured. And since linux is a target package,
it depends on the toolchain, which internally dependes on linux-headers,
which would depend on linux, and we'd get a circular dependency.
Using patch-depend will ensure that linux is extracted and patched
before linux-headers is extracted, which is really all we need.
Then, we install the headers from the linux source tree, rather than
from linux-headers' source tree (as there's nothing in there!).
Since we need to install a private set for uClibc (see cde947f , uclibc:
prevent rebuilding after installation to staging), we explicitly set
INSTALL_HDR_PATH when calling the kernel' install-headers rule in
LINUX_HEADERS_CONFIGURE_CMDS, so that the headers are installed in
linux-headers' $(@D) instead of linux' $(@D).
Finally, as there is no way to know the kernel version in this case, we
must still prompt the user for the kernel series the headers are from
(like we do for a custom version) and check for consistency at build
time.
Note however that this still leaves users that want to built their
such-kernel outside of Buildroot out in the cold.
[Peter: drop comment as suggested by Thomas]
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr >
Cc: Karoly Kasza <kaszak@gmail.com >
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com >
Cc: Peter Korsgaard <jacmet@uclibc.org >
Signed-off-by: Peter Korsgaard <peter@korsgaard.com >
2016-02-02 09:55:58 +01:00
Gustavo Zacarias
55052ea83f
linux-headers: bump 4.{1, 3, 4}.x series
...
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar >
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com >
2016-02-01 19:56:27 +01:00
Gustavo Zacarias
7a4cc5b194
linux-headers: bump 3.{10, 14}.x series
...
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar >
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com >
2016-01-30 08:36:07 +01:00
Gustavo Zacarias
5929b1bdba
linux-headers: bump 3.12.x series
...
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar >
Signed-off-by: Peter Korsgaard <peter@korsgaard.com >
2016-01-28 17:47:44 +01:00
Gustavo Zacarias
712e69a872
linux-headers: bump 3.18.x series
...
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar >
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com >
2016-01-27 21:38:20 +01:00
Gustavo Zacarias
9504ccaf7a
linux-headers: bump 3.{2, 10, 14}.x and 4.{1, 3}.x series
...
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar >
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com >
2016-01-26 23:00:27 +01:00
Gustavo Zacarias
d8da5f1037
linux-headers: remove deprecated version 3.16.x
...
Remove for the upcoming 2016.02 release, it's been deprecated for a year
now.
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar >
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com >
2016-01-20 21:13:43 +01:00
Gustavo Zacarias
7bb93e0d7d
linux-headers: bump 3.12.x series
...
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar >
Signed-off-by: Peter Korsgaard <peter@korsgaard.com >
2016-01-11 17:33:49 +01:00
Gustavo Zacarias
c6a09cf401
linux-headers: add 4.4.x series
...
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar >
Signed-off-by: Peter Korsgaard <peter@korsgaard.com >
2016-01-11 17:33:22 +01:00
Gustavo Zacarias
a68224d084
linux-headers: mark EOL versions deprecated
...
Follow the upstream EOL cycle and mark 4.2 as deprecated for 2016.02.
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar >
Signed-off-by: Peter Korsgaard <peter@korsgaard.com >
2016-01-11 17:32:26 +01:00
Gustavo Zacarias
eac47611bf
linux-headers: bump 3.2.x series
...
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar >
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com >
2015-12-31 15:21:56 +01:00
Yann E. MORIN
863036378b
package/c-libraries: need linux-headers
...
Now that we check that a target package in the _DEPENDENCIES of another
package has to be enabled in config, all target packages must have a
kconfig symbol.
Add a Kconfig symbol for linux-headers, and select it from the packages
that depends on it (C libraries).
Also remove the now-misleading comments "for legal-info" from the C
libraries.
Fixes:
http://autobuild.buildroot.org/results/2a9/2a9e5d27b34357819b44f573a834da1ba5079030/
... and numerous similar failures ...
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr >
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com >
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com >
2015-12-30 09:54:33 +01:00
Gustavo Zacarias
91a35bcc27
linux-headers: bump 3.18.x series to 3.18.25
...
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar >
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com >
2015-12-17 11:53:21 +01:00
Gustavo Zacarias
c4d7580c0f
linux-headers: bump 4.{1, 2, 3}.x series
...
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar >
Reviewed-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com >
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com >
2015-12-15 21:40:54 +01:00
Vicente Olivert Riera
2a37520277
linux-headers: bump 4.3.x series to 4.3.2
...
Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com >
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com >
2015-12-11 21:26:44 +01:00
Gustavo Zacarias
eafbe5e676
linux-headers: bump 3.{10, 14}.x and 4.{1, 2, 3}.x series
...
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar >
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com >
2015-12-09 23:09:06 +01:00
Gustavo Zacarias
e3f4ee36e8
linux-headers: bump 3.{2, 12}.x series
...
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar >
Signed-off-by: Peter Korsgaard <peter@korsgaard.com >
2015-12-02 21:36:19 +01:00
Gustavo Zacarias
b59169d174
linux-headers: bump 3.2.x series
...
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar >
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com >
2015-11-18 21:54:21 +01:00
Yann E. MORIN
5bd650a27c
package/linux-headers: add licensing information
...
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr >
Cc: Luca Ceresoli <luca@lucaceresoli.net >
Acked-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com >
Signed-off-by: Peter Korsgaard <peter@korsgaard.com >
2015-11-17 17:03:43 +01:00
Gustavo Zacarias
1fc783adc5
linux-headers: bump 3.{10, 14}.x and 4.{1, 2}.x series
...
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar >
Signed-off-by: Peter Korsgaard <peter@korsgaard.com >
2015-11-10 23:45:05 +01:00
Gustavo Zacarias
2f9bfad51e
linux-headers: bump 3.{12, 18}.x series
...
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar >
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com >
2015-11-03 23:46:12 +01:00
Vicente Olivert Riera
6872f21f58
linux-headers: add 4.3.x series
...
Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com >
Reviewed-by: "James Knight" <james.knight@rockwellcollins.com >
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com >
2015-11-02 20:56:38 +01:00
Gustavo Zacarias
1d0b0283e4
linux-headers: bump 3.18.x series
...
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar >
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com >
2015-10-30 15:12:17 +01:00
Gustavo Zacarias
5caab58ff4
linux-headers: bump 3.{10, 14}.x and 4.{1, 2}.x series
...
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar >
Signed-off-by: Peter Korsgaard <peter@korsgaard.com >
2015-10-27 12:32:59 +01:00
Gustavo Zacarias
81177daef9
linux-headers: bump 3.{10, 14}.x and 4.{1, 2}.x series
...
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar >
Signed-off-by: Peter Korsgaard <peter@korsgaard.com >
2015-10-23 09:26:58 +02:00
Gustavo Zacarias
19ff7cf7a6
linux-headers: bump 3.4.x series
...
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar >
Signed-off-by: Peter Korsgaard <peter@korsgaard.com >
2015-10-22 22:44:59 +02:00
Gustavo Zacarias
5b065abe51
linux-headers: bump 3.2.x series
...
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar >
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com >
2015-10-14 22:27:39 +02:00
Gustavo Zacarias
4b47d9d4ff
linux-headers: bump 3.12.x series
...
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar >
Signed-off-by: Peter Korsgaard <peter@korsgaard.com >
2015-10-08 17:07:40 +02:00
Gustavo Zacarias
d37bf8f157
linux-headers: bump 3.18.x series
...
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar >
Signed-off-by: Peter Korsgaard <peter@korsgaard.com >
2015-10-05 02:08:41 +02:00
Vicente Olivert Riera
1d94cb7bdc
linux-headers: bump 4.{1,2}.x series
...
Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com >
Signed-off-by: Peter Korsgaard <peter@korsgaard.com >
2015-10-03 23:21:18 +02:00
Gustavo Zacarias
bcc8dd297a
linux-headers: bump 3.{10, 14}.x series
...
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar >
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com >
2015-10-02 12:12:11 +02:00
Gustavo Zacarias
a6acb94b9f
linux-headers: bump 4.{1, 2}.x series
...
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar >
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com >
2015-09-30 12:36:09 +02:00
Gustavo Zacarias
0ea48659c0
linux-headers: bump 3.{4, 10, 12, 14}.x and 4.{1, 2}.x series
...
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar >
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com >
2015-09-22 15:42:35 +02:00
Gustavo Zacarias
e064dd7223
linux-headers: bump 3.18.x series
...
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar >
Signed-off-by: Peter Korsgaard <peter@korsgaard.com >
2015-09-14 07:41:57 +02:00
Peter Korsgaard
91b90a168c
linux-headers: bump 3.10.x / 3.14.x / 4.1.x series
...
Signed-off-by: Peter Korsgaard <peter@korsgaard.com >
2015-09-13 23:28:42 +02:00
Gustavo Zacarias
4ac4bc3283
linux-headers: remove deprecated versions 3.{0, 11, 13, 15}
...
Remove for the upcoming 2015.11 release, they've been deprecated for a
year now.
Also remove some previously forgotten selection removals in legacy.
[Peter: drop 3.0.x kernel patch]
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar >
Signed-off-by: Peter Korsgaard <peter@korsgaard.com >
2015-09-13 23:28:26 +02:00
Gustavo Zacarias
fe2538a7e4
linux-headers: bump 3.{2, 10, 12, 14}.x and 4.1.x series
...
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar >
Signed-off-by: Peter Korsgaard <peter@korsgaard.com >
2015-09-01 13:11:46 +02:00
Peter Korsgaard
8d9d533dca
linux-headers: add 4.2.x series
...
Signed-off-by: Peter Korsgaard <peter@korsgaard.com >
2015-09-01 10:17:35 +02:00
Benoît Thébaudeau
76f8815324
linux-headers: bump 3.{2, 10, 12, 14, 18}.x and 4.1.x series
...
Signed-off-by: Benoît Thébaudeau <benoit@wsystem.com >
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com >
2015-08-18 14:25:40 +02:00
Gustavo Zacarias
05e8793225
linux-headers: bump 3.{10, 12, 14}.x and 4.1.x series
...
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar >
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com >
2015-08-04 11:26:34 +02:00
Gustavo Zacarias
dda478689f
linux-headers: mark EOL versions deprecated
...
Follow the upstream EOL cycle and mark 4.0 as deprecated for 2015.08.
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar >
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com >
2015-07-28 22:48:40 +02:00
Gustavo Zacarias
0a00a0e6ea
linux-headers: bump 3.18.x and 4.{0, 1}.x series
...
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar >
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com >
2015-07-22 17:24:24 +02:00
Gustavo Zacarias
e2a2749920
linux-headers: bump 3.{10, 14, 18}.x and 4.{0, 1}.x series
...
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar >
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com >
2015-07-10 20:25:11 +02:00
Gustavo Zacarias
680ddc6539
linux-headers: bump 3.{10,14}.x series
...
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar >
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com >
2015-07-04 16:29:25 +02:00
Gustavo Zacarias
8e4f9923d8
linux-headers: bump 3.{10, 14, 18}.x and 4.{0, 1}.x series
...
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar >
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com >
2015-06-30 14:26:54 +02:00
Gustavo Zacarias
acc179a110
linux-headers: bump 3.{10, 14}.x and 4.0.x series
...
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar >
Signed-off-by: Peter Korsgaard <peter@korsgaard.com >
2015-06-23 13:08:09 +02:00
Gustavo Zacarias
3f8bd6be9f
linux-headers: add 4.1.x series
...
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar >
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com >
2015-06-22 18:19:50 +02:00
Gustavo Zacarias
9eda4b423c
linux-headers: bump 3.4.x series
...
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar >
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com >
2015-06-20 15:59:03 +02:00
Gustavo Zacarias
8528b892df
linux-headers: bump 3.{12,18}.x series
...
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar >
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com >
2015-06-18 22:37:30 +02:00
Gustavo Zacarias
65ac66892d
linux-headers: bump 3.{10, 14}.x and 4.0.x series
...
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar >
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com >
2015-06-09 22:54:04 +02:00