aboutsummaryrefslogtreecommitdiff
path: root/linux
Commit message (Collapse)AuthorAgeFilesLines
* linux: add support for vmlinuz.bin kernel image formatGravatar Yegor Yefremov2015-12-152-0/+8
| | | | | | | | Linux for MIPS supports raw binary zboot image (vmlinuz.bin). Add it to the "Kernel binary format" list. Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* linux: bump default version to 4.3.3Gravatar Gustavo Zacarias2015-12-151-2/+2
| | | | | | 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>
* linux: Add kernel compression selection.Gravatar Johan Sagaert2015-12-132-1/+49
| | | | | | | | | | | | This selection will ensure that the correct host tools will be build used for the kernel compression method used. [Maxime: Select the compression opts in the kernel config too ] Signed-off-by: Sagaert Johan <sagaert.johan@proximus.be> Signed-off-by: Maxime Hadjinlian <maxime.hadjinlian@gmail.com> Reviewed-by: "Yann E. MORIN" <yann.morin.1998 at free.fr> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* linux: bump default version to 4.3.2Gravatar Vicente Olivert Riera2015-12-111-2/+2
| | | | | Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* linux: bump default version to 4.3.1Gravatar Gustavo Zacarias2015-12-091-2/+2
| | | | | Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* linux: bump default version to 4.3Gravatar Vicente Olivert Riera2015-11-021-2/+2
| | | | | | 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>
* linux: Add zImage.epapr targetGravatar Jeremy Kerr2015-10-312-0/+6
| | | | | | Signed-off-by: Jeremy Kerr <jk@ozlabs.org> Signed-off-by: Joel Stanley <joel@jms.id.au> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* linux: bump default version to 4.2.5Gravatar Gustavo Zacarias2015-10-271-2/+2
| | | | | Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* linux: bump default version to 4.2.4Gravatar Gustavo Zacarias2015-10-231-2/+2
| | | | | Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* linux: add 'Image' as the image name for aarch64Gravatar Arnout Vandecappelle2015-10-052-0/+6
| | | | | | | | On aarch64, the image name is always Image, so let's add support for that. Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* linux: install dtc binary as linux-dtcGravatar Peter Korsgaard2015-10-041-1/+1
| | | | | | | So it doesn't conflict with host-dtc. The Linux kernel version may be a patched version supporting E.G. overlays. Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* linux: remove now-redundant ccache handlingGravatar Arnout Vandecappelle2015-10-041-1/+1
| | | | | | Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Reviewed-by: Romain Naour <romain.naour@openwide.fr> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* linux: bump default version to 4.2.3Gravatar Vicente Olivert Riera2015-10-031-2/+2
| | | | | Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* linux: bump default to version 4.2.2Gravatar Gustavo Zacarias2015-09-301-2/+2
| | | | | Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* linux-ext: add fbtft hint for linux kernel >= v4.0Gravatar Peter Seiderer2015-09-271-1/+3
| | | | | | | | Since v4.0 the fbtft drivers are included in the linux kernel staging area. Signed-off-by: Peter Seiderer <ps.report@gmx.net> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* linux: bump default to version 4.2.1Gravatar Gustavo Zacarias2015-09-221-2/+2
| | | | | Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* core/pkg-kernel-module: ensure linux supports modulesGravatar Yann E. MORIN2015-09-041-0/+2
| | | | | | | | | | | | | | | | | | | | | When a package wants to build a kernel module, we should ensure that the kernel does support modules. This patch does it automatically for packages using the kernel-module infrastructure. Packages that do not use it will have to set it manually (to be done in a followup patch). Suggested-by: Peter Korsgaard <jacmet@uclibc.org> Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Cc: Peter Korsgaard <jacmet@uclibc.org> Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Cc: Noé Rubinstein <noe.rubinstein@gmail.com> Cc: Jan Viktorin <viktorin@rehivetech.com> Cc: Gustavo Zacarias <gustavo@zacarias.com.ar> Reviewed-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* linux: bump default to version 4.2Gravatar Peter Korsgaard2015-09-011-2/+2
| | | | Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* Merge branch 'next'Gravatar Peter Korsgaard2015-09-011-2/+2
|\ | | | | | | Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
| * linux: bump default to version 4.1.5Gravatar Benoît Thébaudeau2015-08-181-2/+2
| | | | | | | | | | Signed-off-by: Benoît Thébaudeau <benoit@wsystem.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* | linux: enable all options needed by xtables-addonsGravatar Yann E. MORIN2015-08-231-0/+1
|/ | | | | | | | | | | | | | | | | | | | | | Both of CONFIG_NF_CONNTRACK and CONFIG_NF_CONNTRACK_MARK are needed by xtables-addons. Although the current code does enable them in the linux' .config file, the former is protected behind CONFIG_NETFILTER_ADVANCED, which may be missing from a user-supplied (def)config file, and is missing from some of the bundled defconfigs as well. For example, the following defconfig fails to build: BR2_TOOLCHAIN_EXTERNAL=y BR2_LINUX_KERNEL=y BR2_LINUX_KERNEL_DEFCONFIG="i386" BR2_PACKAGE_XTABLES_ADDONS=y So, also force-enable CONFIG_NETFILTER_ADVANCED. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* linux: bump default to version 4.1.4Gravatar Gustavo Zacarias2015-08-041-2/+2
| | | | | Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* package/linux: trash stderr in LINUX_VERSION_PROBEDGravatar Yann E. MORIN2015-07-221-1/+1
| | | | | | | | | | | | The Linux buildsystem tries to run the compiler even just for 'kernelrelease' (which we store in LINUX_VERSION_PROBED) and we sometimes need to use it before the toolchain is available; thus we get spurious errors on stderr. Consign stderr to oblivion when computing the 'kernelrelease'. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* linux: bump default to version 4.1.3Gravatar Gustavo Zacarias2015-07-221-2/+2
| | | | | Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* linux: use backtick instead of $(shell ...) make functionGravatar Arnout Vandecappelle2015-07-151-1/+1
| | | | | | | | Verified that LINUX_VERSION_PROBED is only used in "-quoted commands (actually, usually it's not quoted). Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* package/perf: migrate perf to use the new linux-tools infrastructureGravatar Romain Naour2015-07-142-0/+105
| | | | | | | | | | | | Remove the perf package and add legacy handling. [Thomas: - improve the Config.in.legacy help text - improve the comment explaining why we pass O= when building perf] Signed-off-by: Romain Naour <romain.naour@openwide.fr> Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* linux-tools: add cpupowerGravatar Romain Naour2015-07-143-0/+53
| | | | | | | | | | This patch is based on the patch send by James Knight: http://lists.busybox.net/pipermail/buildroot/2015-May/128754.html Signed-off-by: Romain Naour <romain.naour@openwide.fr> Cc: James Knight <james.knight@rockwellcollins.com> Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* linux: add linux-tools infraGravatar Romain Naour2015-07-141-0/+24
| | | | | | | | | | | | | | | | | | | | | | | This commit add an infrastructure to build linux kernel tools available in the kernel sources. Currently, the only linux kernel tool packaged in Buildroot is perf and it's packaged as a separate generic package. This is a problem for licence information raised in this thread [1]. Since these tools require to build a Linux kernel, we can use some hooks in linux package like we did for linux extensions [2] and remove the perf package. [1] http://lists.busybox.net/pipermail/buildroot/2015-May/128783.html [2] http://lists.busybox.net/pipermail/buildroot/2015-March/121835.html [Thomas: fix minor typos in comments.] Signed-off-by: Romain Naour <romain.naour@openwide.fr> Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* package/linux: check for config file before calling kconfig-packageGravatar Yann E. MORIN2015-07-141-32/+29
| | | | | | | | | | | | | | | | | If we check that the user provides a config file after we call to the kconfig-package infra, the error message we get is the one for the kconfig-package infra, not the custom error message we want to show to the user. So, only call kconfig-package after we do the check. Move the check with the existing checks for the DTS, for consistency. [Thomas: put the checks together, but right before the kconfig-package call, rather than in the middle of the code, were the DTS related tests were located.] Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* package/linux: don't enforce check for DTS when not buildingGravatar Yann E. MORIN2015-07-141-0/+4
| | | | | | | | | | | | | Currently, this is triggering the error message: make randconfig make source Limit the checks that enforce a DTS is set and at most one DTB is appended to when we are actually building, like is done for the configuration-file variables. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* linux: adjust fixup logic for ktapGravatar Thomas Petazzoni2015-07-131-1/+1
| | | | | | | | | | | | | | | | The ktap package requires some parts of the kernel tracing infrastructure to be enabled, especially CONFIG_EVENT_TRACING. However, this option is a blind option in the kernel, so enabling it in linux.mk has no effect: we need to enable a non-blind option that selects CONFIG_EVENT_TRACING. We've chosen to select CONFIG_ENABLE_DEFAULT_TRACERS. This fixes the build of ktap. [Thomas: use CONFIG_ENABLE_DEFAULT_TRACERS as suggested by Arnout.] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Reviewed-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
* linux: bump default to version 4.1.2Gravatar Gustavo Zacarias2015-07-101-2/+2
| | | | | Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* linux: bump default to version 4.1.1Gravatar Gustavo Zacarias2015-06-301-2/+2
| | | | | Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* linux: bump default to version 4.1Gravatar Gustavo Zacarias2015-06-221-2/+2
| | | | | Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* linux: bump default to version 4.0.5Gravatar Gustavo Zacarias2015-06-091-2/+2
| | | | | Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* Merge branch 'next'Gravatar Peter Korsgaard2015-06-012-0/+7
|\ | | | | | | Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
| * linux: add option to specify config fragmentsGravatar Floris Bos2015-05-212-0/+7
| | | | | | | | | | | | | | | | | | Signed-off-by: Floris Bos <bos@je-eigen-domein.nl> Reviewed-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Acked-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Tested-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Tested-by: Gergely Imreh <imrehg@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* | linux: bump default to version 4.0.4Gravatar Peter Korsgaard2015-05-191-2/+2
| | | | | | | | Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* | linux: bump default to version 4.0.3Gravatar Peter Korsgaard2015-05-131-2/+2
|/ | | | Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* linux: do not check hashes for custom versions and tarballsGravatar Yann E. MORIN2015-05-021-0/+7
| | | | | | | | | | | | | | This one is a bit tricky, as the version can come from the linux-headers package, so we must also account for that. We currently have no hash file for linux, but better do the change now, which allows us to later add a hash file. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Cc: Arnout Vandecappelle <arnout@mind.be> Reviewed-by: Arnout Vandecappelle <arnout@mind.be> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* linux: bump default to version 4.0.1Gravatar Gustavo Zacarias2015-04-291-2/+2
| | | | | Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* packages: refactor checks using BR_BUILDINGGravatar Thomas Petazzoni2015-04-261-1/+1
| | | | | | | | | Instead of manually testing MAKECMDGOALS, use the newly introduced BR_BUILDING variable to know if we're building or not. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Tested-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
* rtai: remove option BR2_LINUX_KERNEL_EXT_RTAI_PATCHGravatar Thomas Petazzoni2015-04-222-17/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit removes BR2_LINUX_KERNEL_EXT_RTAI_PATCH because this option never worked. It was added in commit 8797a9cd1fe6723db34b0c125d0d9d04e3483e8d, which added package/rtai/ and RTAI as a Linux extension. The option prompt says "Path for RTAI patch file", so let's say you specify /home/foo/bar/myrtai.patch as the value for BR2_LINUX_KERNEL_EXT_RTAI_PATCH. Then the code does: RTAI_PATCH = $(call qstrip,$(BR2_LINUX_KERNEL_EXT_RTAI_PATCH)) and we have a package called 'rtai', so the normal logic of <pkg>_PATCH applies. Since the <pkg>_PATCH value does not contain ftp://, http:// or https://, the package infrastructure will try to download $(RTAI_SITE)/$(RTAI_PATCH), i.e: https://www.rtai.org/userfiles/downloads/RTAI/home/foo/bar/myrtai.patch Pretty clear that it has no chance of working. Now, let's assume an URL is used as the value of BR2_LINUX_KERNEL_EXT_RTAI_PATCH, such as http://foo.com/bar/myrtai.patch. In this case, it will be properly downloaded by the package infrastructure. But then, the following code kicks in: define RTAI_PREPARE_KERNEL $(APPLY_PATCHES) \ $(LINUX_DIR) \ $(dir $(RTAI_PATCH)) \ $(notdir $(RTAI_PATCH)) endef The value of $(dir $(RTAI_PATCH)) will be http://foo.com/bar/. How can $(APPLY_PATCHES) make use of such a stupid patch location? [Thomas: add Config.in.legacy handling, as suggested by Arnout, even if we believe that no-one could have ever used this option.] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
* linux: Add uImage support for powerpc64Gravatar erico.nunes2015-04-141-2/+3
| | | | | | | | linux has uImage generation support for powerpc64 as well as powerpc, since 2.6.15. Signed-off-by: Erico Nunes <erico.nunes@datacom.ind.br> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* linux: bump default to version 4.0Gravatar Gustavo Zacarias2015-04-131-2/+2
| | | | | Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* linux: fix fbtft kernel extensionGravatar Peter Seiderer2015-04-091-7/+7
| | | | | | | | | | | | | | | | Fixes fbtft kernel extension bug reported by Richard Fergusson ([1]): drivers/video/Kconfig:2525: can't open file "drivers/video/fbdev/fbtft/Kconfig" Fix: write the right fbtft/KConfig path to video/Kconfig or video/fbdev/Kconfig (instead of hard coded one) [1] http://lists.busybox.net/pipermail/buildroot/2015-January/117057.html Reported-by: Richard Fergusson <fergie4000@gmail.com> Signed-off-by: Peter Seiderer <ps.report@gmx.net> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* linux: migrate extensions to use the new infrastructureGravatar Yann E. MORIN2015-04-093-21/+3
| | | | | | 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>
* linux: simplify adding new extensionsGravatar Yann E. MORIN2015-04-091-0/+7
| | | | | | | | | | | | | | | | | | | Curently, all three linux extensions follow the same layout: - test if the extension is enabled - add itself to linux' patch-dependencies - declare a macro, added as the pre-patch hook Except for the macro, all can be commonalised. Add a simple infrastructure for that: - extensions declare themselves in the list of extensions - extensions define their macro - the infra adds them to the patch-dependencies and pre-patch hooks as appropriate 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>
* linux: fix extensionsGravatar Yann E. MORIN2015-04-093-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since the move to the kconfig-package infra, linux extensions are broken. In our linux package, extensions are applied as pre-patch hooks. Before the kconfig-package infra, we had custom rules for the linux-*config targets, which were of the form: linux-menuconfig: linux-configure $(MAKE) -C $(LINUX_DIR) menuconfig This caused the linux tree to be fully configured before running the configurators, and thus linux dependencies were entirely fullfilled, and extensions were properly applied. Since we migrated (in dff25ea), the kconfig-package infra introduces a (hidden, internal) intermediate step 'kconfig-fixup' and decorelates the kconfig-part of the configuration from the actual package-part of the configuration: linux-configure -------> kconfig-fixup --> .config --> $(LINUX_CONFIG_FILE) / linux-menuconfig --' As thus, this (very useful!) use-case breaks (starting from a clean Buildroot tree): make menuconfig -> enable a kernel and at least one extension -> save and exit make linux-menuconfig -> extensions are not available Fix that by using the newly-introduced patch-dependencies, so that extensions are available before we try to patch the linux kernel. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Cc: Thomas De Schampheleire <patrickdepinguin@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* Fix typos in comment blocksGravatar Masahiro Yamada2015-04-081-6/+6
| | | | | | | | | | | [Thomas: fix issues noticed by Arnout: - Rewrap the linux/Config.in paragraph - Revert the "is a toolchain dependency" -> "has a toolchain dependency" change from pkg-generic.mk, as the original was correct.] Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>