aboutsummaryrefslogtreecommitdiff
path: root/linux/linux.mk
Commit message (Collapse)AuthorAgeFilesLines
* linux: use kmod instead of module-init-toolsGravatar Thomas Petazzoni2013-09-021-1/+1
| | | | | Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* Install DTB as part of images install commandGravatar Reuben Dowle2013-08-011-1/+1
| | | | | | | | | When installing DTB to the images directory, do this as part of the image install commands rather than the target install commands. Signed-off-by: Reuben Dowle <reuben.dowle@4rf.com.az> Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* Fix building initramfs kernel with appended dtbGravatar Nathan Ford2013-08-011-0/+1
| | | | | | | | | | | | The target for building the kernel with a cpio initramfs is not calling the append dtb commands, creating a final kernel image without an appended dtb. Instead it needs to call kernel make on the intermediate target, then call the append dtb commands to produce the final image as the primary kernel build target does. Signed-off-by: Nathan Ford <nford@westpond.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* linux: Fix uImage with appended DTs generationGravatar Maxime Ripard2013-08-011-10/+11
| | | | | | | | | | | | | | Fixes bug #5516 - appended device tree blobs on uImage fails Before version 3.7 of the kernel, building the zImage and then the uImage will rewrite the zImage in the process, removing the device tree we just appended. Use mkimage to append the device tree to the uImage and rebuild the headers directly. Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* fix white spacesGravatar Jerzy Grzegorek2013-07-201-1/+1
| | | | | Signed-off-by: Jerzy Grzegorek <jerzy.grzegorek@trzebnica.net> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* linux: remove EABI conditionalGravatar Yann E. MORIN2013-07-141-3/+2
| | | | | | | | | | We're only EABI now, so we want to always build an EABI kernel when we're building for ARM. 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> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* linux: Do not force GZIP initramfs compressionGravatar Valentine Barshak2013-07-081-3/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Initramfs compression does not make much sense for the architectures that support compressed kernel images because in this case the data would be compressed twice. This will eventually result in a bigger kernel image and time overhead when uncompressing it. The only reason to use compressed initramfs is to reduce memory usage when the kernel prepares rootfs, and both the unpacked filesystem and initramfs.cpio are present in the memory. Buildroot attempts to force GZIP compression for initramfs, however it doesn't always work because initramfs compression mode depends on RAM disk compression supported by the kernel. Thus, CONFIG_INITRAMFS_COMPRESSION_GZIP depends on CONFIG_RD_GZIP. If CONFIG_RD_GZIP is not set, setting GZIP initramfs compression will have no effect. Besides, the kernel also supports other compression methods, like BZIP2, LZMA, XZ and LZO. Forcing the good old GZIP does not really make much sense any more. This removes initramfs compression settings from Buildroot, so that the default value preset in the kernel config is used, which is CONFIG_INITRAMFS_COMPRESSION_NONE. If initramfs compression is still needed, it can be set in the kernel config (using make linux-menuconfig) Signed-off-by: Valentine Barshak <gvaxon@gmail.com> Acked-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* Normalize separator size to 80 in remaining makefilesGravatar Alexandre Belloni2013-06-201-2/+2
| | | | | Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* Fix package headers to comply with coding styleGravatar Alexandre Belloni2013-06-061-0/+1
| | | | | Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* linux: qstrip the custom DTS pathGravatar Thomas Petazzoni2013-06-051-1/+1
| | | | | | | | This fixes a problem reported by wacha@mit.bme.hu, see http://lists.busybox.net/pipermail/buildroot/2013-June/073312.html. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* Merge branch 'next'Gravatar Peter Korsgaard2013-06-021-1/+1
|\
| * Choose xz compressed tarball for linux kernel.Gravatar Raúl Sánchez Siles2013-05-111-1/+1
| | | | | | | | | | | | | | | | | | Prefer xz compressed tarball so some bandwidth is saved for kernel headers and kernel itself downloads. Signed-off-by: Raúl Sánchez Siles <rasasi78@gmail.com> Reviewed-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* | linux: CONFIG_KERNEL_LZO option requires host-lzopGravatar Fabio Porcedda2013-05-141-1/+1
|/ | | | | | | | When the LZO compression mode is chosen the linux kernel requires lzop host utility at build time. Signed-off-by: Fabio Porcedda <fabio.porcedda@gmail.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* linux: error out early if user forgot to specify dts name(s)Gravatar Peter Korsgaard2013-04-151-0/+5
| | | | Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* linux: don't use $ in dtb comment as the shell tries to expand themGravatar Peter Korsgaard2013-04-141-2/+2
| | | | Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* linux: Add a load address option for building uImage on 3.7+ multi-platform ↵Gravatar Julien Boibessot2013-03-151-0/+5
| | | | | | | | | kernels [Peter: add quotes as suggested by Arnout] Signed-off-by: Julien Boibessot <julien.boibessot@armadeus.com> Acked-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* linux: Install the device tree in /boot when installing the kernelGravatar Maxime Ripard2013-02-191-0/+8
| | | | | | | | | | | The option BR2_LINUX_KERNEL_INSTALL_TARGET used to install the kernel in /boot in the rootfs. The introduction of the device tree builds made it possible to generate device tree blobs, and stored them in IMAGES_DIR like the kernel, but didn't copy the dtb in /boot when _INSTALL_TARGET was enabled. Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* linux, uboot, mxs-bootlets, barebox: avoid double slash in CUSTOM_TARBALLGravatar Arnout Vandecappelle (Essensium/Mind)2013-01-131-1/+1
| | | | | | | | | | | | | | | Closes #5846 The $(dir ...) function leaves a slash at the end, so that the LINUX_SITE variable for a custom tarball ends in a slash. The DOWNLOAD macro adds another slash between SITE and SOURCE, which results in a double slash in the download URL. Fix this by stripping off the final slash from the _SITE in all packages that have a custom tarball. Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* linux: fix appended dtb handling of pre/post v3.8-rc1Gravatar Arnout Vandecappelle (Essensium/Mind)2013-01-091-15/+12
| | | | | | | | | | The $(wildcard ) doesn't work for LINUX_APPEND_DTB, because the .dtb doesn't exist yet at that point. Also factor the common part out. Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* linux: fix double LINUX_APPEND_DTBGravatar Peter Korsgaard2013-01-081-1/+0
| | | | | | | Introduced by 5b33e0b6a (linux: handle new dtb location since 3.8-rc1 for appended dtbs). Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* linux: handle new dtb location since 3.8-rc1 for appended dtbsGravatar Peter Korsgaard2013-01-061-2/+9
| | | | | | Similar to how we've done it for seperate dtbs (ef34705087b). Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* linux: handle new dtb location since 3.8-rc1Gravatar Peter Korsgaard2012-12-211-1/+4
| | | | | | | | .dtb files are now generated in arch/$ARCH/boot/dts instead of arch/$ARCH/boot, so extend the LINUX_INSTALL_DTB rule to look there as well. Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* linux: simplify dtb variablesGravatar Peter Korsgaard2012-12-211-5/+5
| | | | | | | | | Only qstrip once and add a KERNEL_DTBS helper variable to simplify the dtb rules. No functional change. Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* linux: Support multiple device tree buildGravatar Maxime Ripard2012-12-201-2/+5
| | | | | Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* linux: Rename blackfin kernel Image file from vmImage back to uImageGravatar Sonic Zhang2012-08-111-5/+0
| | | | | | | Consist with other architectures. Signed-off-by: Sonic Zhang <sonic.zhang@analog.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* linux: Add new image formats for PowerPC and MicroblazeGravatar Maxime Ripard2012-07-311-0/+6
| | | | | | | | | | | | Add the following Linux kernel image formats: * cuImage(powerpc) * simpleImage(microblaze) * linux.bin(microblaze) Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com> Acked-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* Add support for appended device tree blobs for armGravatar Maxime Ripard2012-07-311-1/+36
| | | | | | | | | | | | | | | | This patch adds support for the ARM-only appended device tree mechanism present in the kernel. This option allows to add at the end of the kernel image the device tree blob so that we can still boot device tree enabled kernels with old bootloaders. This patch also adds the needed logic to genereate such an image when building zImages or uImages, also adding the necessary parts to rebuild the uImage. Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* Factorize the u-boot images codeGravatar Maxime Ripard2012-07-311-1/+4
| | | | | | | | | | This patch introduces the BR2_LINUX_KERNEL_UBOOT_IMAGE boolean to factorize more code that will be shared in the next patches that introduces other uImage-like targets. Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com> Acked-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* Rework support for the device treeGravatar Maxime Ripard2012-07-311-0/+19
| | | | | | | | | | | | | | | | | | | | | This patch introduces some support for device tree-enabled kernels. It replaces the former BR2_LINUX_KERNEL_DTS_FILE option that was microblaze-only, that was quite limited. This option was quite limited, first obviously because it was restricted to microblaze, but also because it targetted only external device tree source files, and allowed only to build simpleImages using the custom image name mechanism. This patch adds a much more generic one, that can work on basically every architecture that supports device tree. It allows to build both device tree source file that comes with the kernel source or to set the path to the device tree file to use so that one can use a custom device tree. Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com> Acked-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* Revert "Microblaze: build kernel with device tree"Gravatar Maxime Ripard2012-07-311-14/+0
| | | | | | | | | | This is way too specific to microblaze-only. Remove this support to introduce a more generic way to do support device tree kernels. This reverts commit aaed42d15643e0cb64c96fa400a6097a19d19ef4. Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* all packages: rename XXXTARGETS to xxx-packageGravatar Arnout Vandecappelle (Essensium/Mind)2012-07-171-1/+1
| | | | | | | | | | | | | Also remove the redundant $(call ...). This is a purely mechanical change, performed with find package linux toolchain boot -name \*.mk | \ xargs sed -i -e 's/$(eval $(call GENTARGETS))/$(eval $(generic-package))/' \ -e 's/$(eval $(call AUTOTARGETS))/$(eval $(autotools-package))/' \ -e 's/$(eval $(call CMAKETARGETS))/$(eval $(cmake-package))/' Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* linux: define licenseGravatar Luca Ceresoli2012-07-171-0/+2
| | | | | Signed-off-by: Luca Ceresoli <luca@lucaceresoli.net> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* linux: install dtc (device tree compiler) as host tool if selectedGravatar Thomas De Schampheleire2012-05-151-0/+10
| | | | | | | | | Having dtc as a host tool can be useful for users that have a custom boot scenario where the device tree is not embedded in the kernel. Signed-off-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com> Acked-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* linux: improve the 'make linux-*' special commandsGravatar Thomas Petazzoni2012-05-051-3/+5
| | | | | | | | | | | | | | | | | This patch improves two things: * It makes sure that the linux-menuconfig and al. commands can be executed even if the user hasn't executed 'make' before. Until now, the commands were depending on the .configured stamp, which is not sufficient since the linux package has been converted to the GENTARGETS infrastructure. Instead, depend on the linux-configure phony target. * It makes sure that those commands are not available when the Linux package is not selected, just like we do for Barebox. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* Enable cgroups in Linux if we use systemdGravatar Maxime Ripard2012-04-021-0/+2
| | | | | Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* linux.mk: .ub-File copying after building initramfsGravatar Markus Kaindl2012-03-211-1/+1
| | | | | | | | test should exit with Exit-Code 0 if no .ub-File present and copy the file if Exit-Code 1, otherwise make fails Signed-off-by: Markus Kaindl <markus.kaindl@stusta.mhn.de> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* Microblaze: build kernel with device treeGravatar Stephan Hoffmann2012-03-181-0/+16
| | | | | | | | | | | | | This patch adds the options needed to build the SimpleImage containing the device tree structure needed for the Microblaze architecture. Handling Device Tree and SimpleImage will be handled in a general way in the future. I provide this patch to be able to build the system in the meantime. Signed-off-by: Stephan Hoffmann <sho@relinux.de> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* DOWNLOAD: change $1=DIRECTORY_URL, $2=FILE_NAME to $1=FULL_FILE_URL, ↵Gravatar Alvaro G. M2012-03-181-1/+1
| | | | | | | | | | | | | | | | | | | | | $2=FILE_NAME This modifies the definition of DOWNLOAD to receive two arguments: the first one is the full URL of the file to download, whereas the second (and optional) is the name the file will have once downloaded. Same thing with the SOURCE_CHECK_WGET and SCP functions. All calls to these functions have been changed to the shortest form of the new API, except for toolchains acquisition. Since there is quite a number of different toolchains this call to DOWNLOAD is better set to the generic one. Signed-off-by: Alvaro G. M <alvaro.gamez@hazent.com> Acked-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Tested-by: Stephan Hoffmann <sho@relinux.de> Downloading Microblaze LE toolchain works on a clean install Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* linux: drop LZMA environment variableGravatar Peter Korsgaard2012-02-101-1/+0
| | | | | | Not used anymore. Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* linux: use the depmod built in HOST_DIRGravatar Thomas Petazzoni2012-01-311-1/+2
| | | | | Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* linux: add linux-update-config and linux-update-defconfig targetsGravatar Thomas De Schampheleire2011-11-111-0/+11
| | | | | | | | | | | | | | In analogy to build targets uclibc-update and busybox-update, add extra targets to copy the current configuration to the custom configuration file set in buildroot. These targets facilitate the work of developers adding support for a specific board. linux-update-config copies .config directly. linux-update-defconfig first creates a defconfig and copies that. Signed-off-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com> Acked-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* Add vmlinuz support in Kernel binary format for MIPS.Gravatar Kelvin Cheung2011-10-281-0/+4
| | | | | | Signed-off-by: Kelvin Cheung <keguang.zhang@gmail.com> Acked-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* linux: bump default kernel to version 3.1Gravatar Gustavo Zacarias2011-10-241-3/+5
| | | | | | | | Bump default kernel vesion to 3.1 to match headers. Also implement downloads for 3.x series kernels. Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* package: remove useless arguments from GENTARGETSGravatar Thomas Petazzoni2011-09-291-1/+1
| | | | | | | | | | Thanks to the pkgparentdir and pkgname functions, we can rewrite the GENTARGETS macro in a way that avoids the need for each package to repeat its name and the directory in which it is present. [Peter: pkgdir->pkgparentdir] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* fs/initramfs: refactor with fs/cpioGravatar Arnout Vandecappelle (Essensium/Mind)2011-09-271-10/+7
| | | | | | | | | | An initramfs is in fact the same as a cpio archive, but embedded in the kernel. So instead of duplicating the cpio infrastructure, we can simply build images/rootfs.cpio and link that into the kernel. Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* linux: Add Linux Kernel extensions menuGravatar Thomas De Schampheleire2011-09-181-0/+2
| | | | | | | | | | | | | Add a kernel sub-menu (called "Linux Kernel Extensions"), which makes possible to patch it or tweak the kernel build step. * All linux/linux-ext-*.mk files will be read by the make process. * The menu can be customized in "linux/Config.ext.in". [Peter: small fixes] Signed-off-by: Benoit Mauduit <benoit.mauduit@openwide.fr> Signed-off-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* support: move patch-kernel.sh and rename itGravatar Thomas Petazzoni2011-09-171-3/+3
| | | | | | | | The name "patch-kernel.sh" is a bit stupid, since this script is used to patch everything in Buildroot, not only kernel trees. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* linux: add linux/linux26-savedefconfig supportGravatar Jean-Christophe PLAGNIOL-VILLARD2011-08-221-0/+4
| | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* uboot-tools: add fw_printenv, rename to uboot-toolsGravatar Peter Korsgaard2011-07-181-1/+1
| | | | | | | Move fw_printenv / fw_setenv options from the uboot bootloader build to the uboot-mkimage package, and rename it to uboot-tools. Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* linux: fix build with release candidatesGravatar Peter Korsgaard2011-07-141-1/+1
| | | | | | Fixes *** Recursive variable `LINUX_SITE' references itself Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>