summaryrefslogtreecommitdiffstats
path: root/linux/linux.mk
Commit message (Collapse)AuthorAgeFilesLines
* linux: handle new dtb location since 3.8-rc1Peter 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 variablesPeter 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 buildMaxime 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 uImageSonic 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 MicroblazeMaxime 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 armMaxime 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 codeMaxime 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 treeMaxime 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"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-packageArnout 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 licenseLuca 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 selectedThomas 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 commandsThomas 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 systemdMaxime 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 initramfsMarkus 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 treeStephan 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, ↵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 variablePeter Korsgaard2012-02-101-1/+0
| | | | | | Not used anymore. Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* linux: use the depmod built in HOST_DIRThomas 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 targetsThomas 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.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.1Gustavo 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 GENTARGETSThomas 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/cpioArnout 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 menuThomas 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 itThomas 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 supportJean-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-toolsPeter 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 candidatesPeter Korsgaard2011-07-141-1/+1
| | | | | | Fixes *** Recursive variable `LINUX_SITE' references itself Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* linux: add support for 3.x and -rc versionsThomas Petazzoni2011-07-111-1/+10
| | | | | | | | | | | | | | | | | | | The assumption that all kernels are in http://www.kernel.org/pub/linux/kernel/v2.6/ is no longer true: versions 3.x are in separate directories. We now compute the directory name from the major and minor versions of the version provided by the user. This assumes that the 3.1 version will be in a /v3.1/ directory, which we don't know yet because the 3.1 cycle hasn't started yet. At the same time, we add support for the official -rcX versions. Patch tested by compiling 3.0-rc6, which Buildroot has successfully downloaded and built. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* linux: allow specification of a custom Git repository as a sourceThomas Petazzoni2011-07-111-0/+3
| | | | | Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* Improve TARGETS handling for bootloaders and kernelThomas Petazzoni2011-07-111-5/+0
| | | | | | | | | | | | | | | | | | As the kernel and bootloaders do not use the normal BR2_PACKAGE_* Kconfig options, their target name was not automatically added to the global TARGETS variable. Each bootloader .mk and the linux.mk had to add their own target manually to TARGETS, and the package infrastructure was making tests on non-existing Kconfig variables. This commit improves the package infrastructure so that it looks at BR2_PACKAGE_<pkg> for packages, BR2_TARGET_<pkg> for bootloaders and at the special BR2_LINUX_KERNEL for the linux package. This allows to simplify a little bit the bootloaders and linux .mk files. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* linux: convert to the GENTARGETS infrastructureThomas Petazzoni2011-07-111-65/+61
| | | | | Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* linux: rename LINUX26 to LINUXThomas Petazzoni2011-07-111-55/+55
| | | | | Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* linux: simplify modules checkPeter Korsgaard2011-07-071-2/+2
| | | | | | No need to mix make and shell code. Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* linux: make it possible to install the kernel in /bootThomas Petazzoni2011-07-071-0/+3
| | | | | | [Peter: always copy to output/images as requested by Luca] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* Create menu entry to select device creation methodYegor Yefremov2011-05-091-0/+7
| | | | | | | | | | | | | | | | | | Four methods for the creation of device files in /dev are now proposed: - static method uses device table as before - devtmpfs method enables this feature in kernel - mdev method adds mdev starting script to the file system and selects mdev itself for installation - udev method selects udev for installation All dynamic methods are based on devtmpfs, so one doesn't need to care about /dev folder. Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* linux: Add support to specify special Kernel Image make targetMartin Hicks2011-04-011-0/+4
| | | | | | | | | | | This is useful for ARCHes like PowerPC that have a whole lot of special targets for each different board. The kernel image target tells make which OpenFirmware machine description file is combined into the kernel binary. [Peter: fix long lines] Signed-Off-By: Martin Hicks <mort@bork.org> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* initial support for Blackfin processorsMike Frysinger2011-02-071-0/+5
| | | | | | | [Peter: don't allow MMU on bfin] Acked-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* Enable ccache for kernel compileMartin Hicks2011-02-011-1/+1
| | | | | | | Just needed to pass in ccache as a prefix to the CROSS_TARGET variable. Signed-off-by: Martin Hicks <mort@bork.org> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* linux: fix linux- aliasesPeter Korsgaard2010-12-271-7/+5
| | | | | | | The generic linux-% alias conflicts with the linux-fusion package, so add explicit aliases instead. Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* linux: don't force IPv6 configuration in kernelThomas Petazzoni2010-12-221-5/+0
| | | | | | | | | | | | | | | | | | | As per the discussion at http://lists.busybox.net/pipermail/buildroot/2010-December/040030.html, remove the bits that forced the IPv6 configuration in the kernel depending on the toolchain ability to support (or not) IPv6. You may have a toolchain with IPv6 support but still don't want to have IPv6 in your kernel. The only parameters we adjust in the kernel configuration are: * ARM EABI, since we got a lot of bug reports regarding misconfigured kernel compared to the ABI used by userspace applications. * initramfs, since its contents are generated by Buildroot itself Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* linux: fix linux-% shortcut targetsBjørn Forsman2010-12-191-1/+1
| | | | | | | | | | | linux-% shortcut targets (short for linux26-%) ignores the ouput dir $(O) so that 'make O=output.arm linux-menuconfig' is actually run in the default $(O) directory output/ and not in output.arm/. Fix by passing on $(O) if set. [Peter: Use EXTRAMAKEARGS] Signed-off-by: Bjørn Forsman <bjorn.forsman@gmail.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* linux: support 'make linux26-nconfig'Bjørn Forsman2010-12-191-1/+1
| | | | | Signed-off-by: Bjørn Forsman <bjorn.forsman@gmail.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* linux: add KERNEL_ARCH_PATH to fix x86-specific issueThomas Petazzoni2010-12-171-4/+16
| | | | | | | | | | | | | Both i386 and x86_64 architectures are supported by the arch/x86 directory in the kernel. So, when we copy the kernel configuration file to arch/$(KERNEL_ARCH)/configs/, it does not work because arch/i386 and arch/x86_64 do not exist. So, we introduce KERNEL_ARCH_PATH, which is the path to the architecture specific directory in the kernel source tree. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* linux: add support for ELF vmlinux imageThomas Petazzoni2010-12-171-0/+6
| | | | | | | | | The ELF vmlinux image found at the root of the kernel source tree is the format that Qemu needs when emulating mips(el) or ppc targets, so add support for it. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* linux: support a space-separated list of patchesThomas Petazzoni2010-12-161-12/+11
| | | | | | | | | | | | The kernel being a component that often needs a fairly important set of changes to be adapted to a particular hardware platform, having maximum flexibility on the patching process is a nice thing. Therefore, as per the discussions from the Buildroot Developer Day, we add a mechanism to apply a list of patches (that could come either from URLs, local files or local directories). Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* linux: Import minimal defconfigs as defconfigsThomas Petazzoni2010-12-161-1/+3
| | | | | | | | | | | | | | Now that minimal kernel defconfigs are used in Buildroot, the problem is that copying those minimal configuration files to .config in the kernel source tree does not work, as kconfig will ask interactively what should be the value for all unspecified options. On suggestion on Sam Ravnborg, the easiest way to solve this is to import the minimal defconfig file as a defconfig inside the kernel tree (in arch/$(ARCH)/configs) and configure the kernel with it. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* linux: restore DEPMOD usageMike Frysinger2010-12-111-1/+1
| | | | | | | | | | | | | The linux.mk rewrite lost the DEPMOD setting while installing modules which means depending on host-module-init-tools has been useless. Instead, the build system has been executing /sbin/depmod. While we're here, drop the INSTALL_MOD_PATH since LINUX26_MAKE_FLAGS already contains it. Signed-off-by: Mike Frysinger <vapier@gentoo.org> Acked-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* linux: add shorter shortcutsMike Frysinger2010-12-111-0/+3
| | | | | | | | | We only have one Linux kernel package, and "linux26-" is an anachronism in today's world. So add useful "linux-%" shortcuts to the "linux26-%". Signed-off-by: Mike Frysinger <vapier@gentoo.org> Acked-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>