aboutsummaryrefslogtreecommitdiff
path: root/linux
Commit message (Collapse)AuthorAgeFilesLines
* linux: simplify LINUX_BUILD_CMDSGravatar Thomas Petazzoni10 days1-4/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We currently do the Linux build as follows: make <imagename> if modules enabled; make modules; fi However, Clement Léger recently reported that due to us not using the "all" target, the GDB scripts that the kernel can build when CONFIG_GDB_SCRIPTS is enabled are not built, since upstream kernel commit 67274c083438340ad16c1437caebc84e1253b224 (merged in v5.1) moved that logic to a separate scripts_gdb target, which is a dependency of the "all" target. While we could add some more logic to explicit generate the "scripts_gdb" target, this logic would fail on Linux < 5.1 for which this make target doesn't exist. So instead, let's simplify the build logic, and use: make all <imagename> The "all" target automatically depends on "modules" if CONFIG_MODULES is set, so we no longer need to explicit generate the "modules" target separately. As a result of this change, we may generate additional kernel images compared to what was done previously, but such images would anyway not be installed, and the additional build time is minimal. We did some research as to why the kernel build was done like this in Buildroot, and it's been like that since linux/linux.mk was added back in 2010 by commit 487e21cff69b30b404146b2ffb46959a728a4002 ("New, simpler, infrastructure for building the Linux kernel"). Reported-by: Clément Leger <cleger@kalray.eu> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com> Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Reviewed-by: Peter Korsgaard <peter@korsgaard.com> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
* linux: use host pkg-config when host libelf is setGravatar Stuart Summers10 days1-5/+11
| | | | | | | | | | | | | | | | | | | | A patch was added to the Linux kernel in 5.1.0-rc3 which adds a requirement that the host build environment include pkg-config. Add the correct host-pkgconf dependency and environment variables to ensure Linux picks up the correct libraries. Move the existing LINUX_MAKE_ENV assignment earlier, to simplify the append-assignment in the libelf conditional block. Fixes: #11761 Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com> Cc: Yann E. MORIN <yann.morin.1998@free.fr> Suggested-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com> Signed-off-by: Stuart Summers <stuart.summers@intel.com> Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr> [Arnout: extend commit message as suggested by Yann] Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
* {linux, linux-headers}: bump 4.{4, 9, 14, 19}.x / 5.0.x seriesGravatar Peter Korsgaard2019-04-072-6/+6
| | | | Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* {linux, linux-headers}: bump 4.{4, 9, 14, 19, 20}.x / 5.0.x seriesGravatar Peter Korsgaard2019-03-292-7/+7
| | | | | | Notice: 4.20.x is now EOL. Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* linux: add support for Linux 5.0Gravatar Joel Stanley2019-03-261-4/+2
| | | | | | | | This sets 5.0 to be the default, moving from 4.19 which was used instead of 4.20 for the LTS branch. Signed-off-by: Joel Stanley <joel@jms.id.au> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* package/linux-headers: add support for Linux 5.0 kernel headersGravatar Joel Stanley2019-03-261-0/+2
| | | | | | | | | | | | This sets 5.0 to be the default, moving from 4.19 which was used instead of 4.20 for the LTS branch. We need to update linux/linux.hash as part of this commit, because package/linux-headers/linux-headers.hash is a symlink to linux/linux.hash. Signed-off-by: Joel Stanley <joel@jms.id.au> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* linux: allow BR2_LINUX_KERNEL_IMAGE on RISC-VGravatar Alistair Francis2019-03-191-1/+1
| | | | | | | We will need to build Image files for OpenSBI so allow that now. Signed-off-by: Alistair Francis <alistair.francis@wdc.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* package/binutils: remove version 2.29Gravatar Romain Naour2019-03-141-2/+2
| | | | | | | | We are back with 3 binutils version in Buildroot. Now CFI support is always present for NIOSII. Signed-off-by: Romain Naour <romain.naour@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* linux: update the comment about thumb issue with Binutils 2.29 and 2.30Gravatar Romain Naour2019-03-141-2/+3
| | | | | Signed-off-by: Romain Naour <romain.naour@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* linux{, -headers}: support downloads of v5+Gravatar Arnout Vandecappelle (Essensium/Mind)2019-03-141-7/+2
| | | | | | | | | | | | | | | | With the arrival of linux v5.0, we need yet another condition to set _SITE correctly. Instead of continuing this madness, solve the problem generically: use v2.6 for 2.6.*, and use the number before the first dot in the other cases. While we're at it, remove the comment which has been incorrect since 80d7b68167a5c8893e906ace6b5f0b0166336406 (7 years ago). Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Tested-by: Jan Kundrát <jan.kundrat@cesnet.cz> Tested-by: Adam Duskett <aduskett@gmail.com> Reviewed-by: Adam Duskett <aduskett@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* {linux, linux-headers}: bump 4.{4, 9, 14, 19, 20}.x seriesGravatar Peter Korsgaard2019-02-272-6/+6
| | | | Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* linux: don't check hashes for user-supplied patchesGravatar Yann E. MORIN2019-02-171-0/+3
| | | | | | | | | | | | | We have virtually no way to know the hashes for user-supplied patches, so we should just ignore them. Reported-by: Simon van der Veldt <simon.vanderveldt@gmail.com> Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com> Cc: Arnout Vandecappelle <arnout@mind.be> Cc: Peter Korsgaard <peter@korsgaard.com> Tested-by: Simon van der Veldt <simon.vanderveldt@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* {linux, linux-headers}: bump 4.{4, 9, 14, 19, 20}.x seriesGravatar Peter Korsgaard2019-02-142-6/+6
| | | | Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* package/xenomai: move arch restriction to Cobalt core, no restriction for ↵Gravatar Thomas De Schampheleire2019-02-091-4/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Mercury Xenomai has two mutually exclusive cores: - Cobalt: dual-kernel approach: patched kernel + userland - Mercury: only userland In the Cobalt core, not all architectures are supported. This is the source of the existing ARCH_SUPPORTS variable. In the Mercury core, there is no imposed architecture restriction. Rename the XENOMAI_ARCH_SUPPORTS flag to XENOMAI_COBALT_ARCH_SUPPORTS and move its check from the Xenomai package to the Cobalt core. Nevertheless, even for Mercury, there are some restrictions: - pthread_atfork is used, which requires an MMU - sync functions like __sync_sub_and_fetch and __sync_add_and_fetch are expected. As the corresponding 'linux extension' selects Xenomai, we add the MMU and sync dependencies there too. They may or may not already be covered by XENOMAI_COBALT_ARCH_SUPPORTS flag. Signed-off-by: Thomas De Schampheleire <thomas.de_schampheleire@nokia.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* linux: bump Linux CIP to version v4.4.171-cip30Gravatar Angelo Compagnucci2019-02-052-3/+3
| | | | | | | | This patch bumps the Linux CIP version to v4.4.171-cip30 and updates the download url to the new official one. Signed-off-by: Angelo Compagnucci <angelo@amarulasolutions.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* linux: add option to enable support for Device Tree overlaysGravatar Titouan Christophe2019-02-032-0/+12
| | | | | | | | | | Add an option to compile device trees in Linux with symbol generation such that device tree overlays can be loaded on the target system Signed-off-by: Titouan Christophe <titouan.christophe@railnova.eu> [Arnout: remove "default n" and move setting of LINUX_MAKE_ENV to the place where the rest is set.] Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
* {linux, linux-headers}: bump 4.{4, 9, 14, 19, 20}.x seriesGravatar Bernd Kuhls2019-01-272-6/+6
| | | | | Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* {linux, linux-headers}: bump 4.{9, 14, 19, 20}.x seriesGravatar Peter Korsgaard2019-01-232-5/+5
| | | | Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* {linux, linux-headers}: bump 4.{4, 9, 14, 19, 20}.x seriesGravatar Peter Korsgaard2019-01-172-6/+6
| | | | Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* linux: use HOSTCC_NOCCACHE as kconfig HOSTCCGravatar Thomas Petazzoni2019-01-161-7/+10
| | | | | | | | | | | | | | | | | | | linux is a bit different than other kconfig-package, because it has "toolchain" in KCONFIG_DEPENDENCIES. Thanks to this, host-ccache *is* ready by the time kconfig invocations are made, so we could use $(HOSTCC) as the host compiler for kconfig related operations. However, for consistency with other kconfig-package packages, we chose to use $(HOSTCC_NOCCACHE) as well. We cannot rely on the default value of HOSTCC passed by the kconfig-package infrastructure, because $(LINUX_MAKE_FLAGS) also contains a HOSTCC definition that would override the one passed by the kconfig-package infrastructure. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com> Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* {linux, linux-headers}: default to 4.19.xGravatar Peter Korsgaard2019-01-121-2/+4
| | | | | | | | | | | | | | | | | | | 4.20.x is not a long term support kernel, but 4.19.x is (supported until end 2020): https://www.kernel.org/category/releases.html With the upcoming Buildroot 2019.02 release being a LTS release, default to 4.19.x instead. Notice: The userspace API breakage in net_stamp.h causing build failures has now been fixed in 4.19.14 by commit e4a2ffe9029fd (net: Use __kernel_clockid_t in uapi net_stamp.h) Signed-off-by: Peter Korsgaard <peter@korsgaard.com> [Thomas: add comment in linux/Config.in and package/linux-headers/Config.in.host so that we don't mistakenly bump to 4.20+.] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* {linux, linux-headers}: bump 4.{9, 14, 19, 20}.x seriesGravatar Peter Korsgaard2019-01-102-5/+5
| | | | Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* package/linux-headers: drop obsolete 3.2.x / 4.{1, 16, 18}.x versionsGravatar Peter Korsgaard2019-01-031-5/+0
| | | | | | | According to https://www.kernel.org/category/releases.html, these kernel versions are no longer supported, so drop them now that we have added 4.20.x Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* package/linux-headers: bump 4.{4, 9, 14, 19}.x seriesGravatar Peter Korsgaard2019-01-021-4/+4
| | | | Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* linux: add support for Linux 4.20Gravatar Thomas Petazzoni2019-01-011-2/+2
| | | | | Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* package/linux-headers: add support for Linux 4.20 kernel headersGravatar Thomas Petazzoni2019-01-011-0/+1
| | | | | | | | | We need to update linux/linux.hash as part of this commit, because package/linux-headers/linux-headers.hash is a symlink to linux/linux.hash. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* pcm-tools: new packageGravatar Carlos Santos2018-12-081-0/+2
| | | | | | | | | | | | | | | | Processor Counter Monitor (PCM) is an application programming interface (API) and a set of tools based on the API to monitor performance and energy metrics of Intel(R) Core(TM), Xeon(R), Atom(TM) and Xeon Phi(TM) processors. This package contains a patch on the pmu-query.py script to look for the pcm-core program at the default path. It's not nice to have a Buildroot specific patch but let's use one while we look for a solution that is acceptable upstream. Signed-off-by: Carlos Santos <casantos@datacom.ind.br> [Peter: Needs C++, force X86_MSR on in linux] Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* linux: ensure images/ exist before creating files thereGravatar Yann E. MORIN2018-12-061-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | When using an initramfs, on the first-pass build, we create a dummy cpio so that the build succeeeds. The real cpio will come later, and we'll do a second-pass build to use the actual cpio. However, when we touch that dummy cpio, the images/ directory may not yet exist, since commit d0f4f95e39 (Makefile: rework main directory creation logic) removed its creation at the begining of the build, to only at the moment we need it, i.e. during the *_INSTALL_IMAGES_CMDS steps. However, the linux build is not a _INSTALL_IMAGES_CMDS step, so there is no guarantee that images/ already exist at that time. Fix that by explicitly creating images/ before touching the dummy cpio. Reported-by: Matthew Weber <matthew.weber@rockwellcollins.com> Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Cc: Matthew Weber <matthew.weber@rockwellcollins.com> Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com> Reviewed-by: Matthew Weber <matthew.weber@rockwellcollins.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* {linux, linux-headers}: bump 4.{9, 14, 19}.x seriesGravatar Peter Korsgaard2018-12-062-4/+4
| | | | | Signed-off-by: Peter Korsgaard <peter@korsgaard.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* {linux, linux-headers}: bump 4.{4, 9, 14, 19}.x seriesGravatar Peter Korsgaard2018-12-032-5/+5
| | | | | Signed-off-by: Peter Korsgaard <peter@korsgaard.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* Merge branch 'next'Gravatar Peter Korsgaard2018-12-023-2/+6
|\ | | | | | | Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
| * linux: bump default to 4.19.2Gravatar Baruch Siach2018-11-221-2/+2
| | | | | | | | | | Signed-off-by: Baruch Siach <baruch@tkos.co.il> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
| * linux-headers: bump to kernel version 4.19.2Gravatar Baruch Siach2018-11-221-0/+1
| | | | | | | | | | | | [Peter: add hash] Signed-off-by: Baruch Siach <baruch@tkos.co.il> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
| * linux: enable MICROCODE_INTEL if intel-microcode is selectedGravatar Carlos Santos2018-11-121-0/+3
| | | | | | | | | | | | | | | | | | We already turn on kernel features for several packages, so let's do it for intel-microcode too, otherwise it's impossible to load the microcode (by means of iucode-tools). Signed-off-by: Carlos Santos <casantos@datacom.com.br> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* | linux: bump CIP to version v4.4.154-cip28Gravatar Angelo Compagnucci2018-11-291-2/+2
| | | | | | | | | | | | | | This patch bumps the Linux CIP kernel to version v4.4.154-cip28 Signed-off-by: Angelo Compagnucci <angelo@amarulasolutions.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* | {linux, linux-headers}: bump 4.{4, 9, 14, 18}.x seriesGravatar Bernd Kuhls2018-11-242-5/+5
| | | | | | | | | | Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* | linux: Make dtc install step more reliableGravatar Andreas Naumann2018-11-231-3/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Checking for the existence of the dtc binary built by the non-dependent dtc package may cause instable behaviour when giving more freedom on the order of how the packages are built (parallelization). In addidion, when moving to per-package host/target method, the check would always trigger in the isolated host, leading to linux-dtc always being installed as dtc. This in turn may lead to undesired overwriting of the real host-dtc binary when finally assembling the global host dir. Thus rework the linux-dtc install condition to be defined by configuration rather than compile time order. Signed-off-by: Andreas Naumann <anaumann@ultratronik.de> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* | {linux, linux-headers}: bump 4.{4, 9, 14, 18}.x seriesGravatar Peter Korsgaard2018-11-112-5/+5
|/ | | | | Signed-off-by: Peter Korsgaard <peter@korsgaard.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* linux: enable CONFIG_AUDIT if the audit package is selectedGravatar Carlos Santos2018-11-031-0/+3
| | | | | | | | | | | We already turn on kernel features for several packages, so let's do it for audit too, since the daemon is useless and fails to load otherwise. Notice that we also turn NET on, since AUDIT depends on NET, like we do for the wireguard package. Signed-off-by: Carlos Santos <casantos@datacom.com.br> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* linux: add custom linux boot logo optionGravatar Angelo Compagnucci2018-10-212-0/+23
| | | | | | | | | | | | This patch adds a simple way to change the linux bootup logo. The patch was kept purposely simple to support only the use cause where a user needs a color linux boot up logo. Signed-off-by: Angelo Compagnucci <angelo@amarulasolutions.com> Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr> [Peter: clarify/reword option/help text, automatically enable framebuffer support, fix convert path] Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* {linux, linux-headers}: fix linux-4.9.133.tar.xz checksumGravatar Antoine Tenart2018-10-171-1/+1
| | | | | | | | | | | | | | | | | | | The Linux tarball checksum was recently updated, including the one for version 4.9.133. The checksum for this particular version of Linux misses one character which lead to a build issue as the checksum does not match: ERROR: linux-4.9.133.tar.xz has wrong sha256 hash: ERROR: expected: 3730fc025ba330a6f4908a6a1e4cb86d821000c84167721680ccf1b37b26563 ERROR: got : 53730fc025ba330a6f4908a6a1e4cb86d821000c84167721680ccf1b37b26563 ERROR: Incomplete download, or man-in-the-middle (MITM) attack This patch fixes it. Fixes: 0064c7b25125 ("{linux, linux-headers}: bump 4.{4, 9, 14, 18}.x series") Signed-off-by: Antoine Tenart <antoine.tenart@bootlin.com> Tested-by: Ricardo Martincoski <ricardo.martincoski@datacom.com.br> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* {linux, linux-headers}: bump 4.{4, 9, 14, 18}.x seriesGravatar Bernd Kuhls2018-10-162-5/+5
| | | | | Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* linux-headers: bump 4.{4, 9, 14, 18}.x seriesGravatar Fabio Estevam2018-09-261-3/+3
| | | | | Signed-off-by: Fabio Estevam <festevam@gmail.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* linux: bump default to version 4.18.10Gravatar Fabio Estevam2018-09-262-2/+2
| | | | | Signed-off-by: Fabio Estevam <festevam@gmail.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* linux: add hash fileGravatar Mark Corbin2018-09-231-0/+9
| | | | | | | | | | | Added a hash file for the Linux kernel. Hashes have been copied from the appropriate sha256sums.asc files on kernel.org. The Linux hash file is also shared with the linux-headers package via a symbolic link. Signed-off-by: Mark Corbin <mark.corbin@embecosm.com> [Thomas: update hashes with recent linux-headers changes.] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* linux: bump default to version 4.18.9Gravatar Fabio Estevam2018-09-201-1/+1
| | | | | Signed-off-by: Fabio Estevam <festevam@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* linux: bump default to version 4.18.8Gravatar Fabio Estevam2018-09-161-1/+1
| | | | | Signed-off-by: Fabio Estevam <festevam@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* linux: bump default to version 4.18.7Gravatar Bernd Kuhls2018-09-101-1/+1
| | | | | Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* Merge branch 'next'Gravatar Peter Korsgaard2018-09-071-2/+2
|\ | | | | | | Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
| * linux: bump default to version 4.18.5Gravatar Bernd Kuhls2018-08-241-1/+1
| | | | | | | | | | Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>