Go to file
Thomas Petazzoni ffbe46a529 linux: simplify LINUX_BUILD_CMDS
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 487e21cff6 ("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>
2019-04-13 17:15:19 +02:00
arch arch/mips: add (Marvell) Octeon III processor 2019-02-04 17:30:18 +01:00
board configs/nanopi_m1_plus: bump to linux 5.0 and u-boot 2019.01 2019-04-10 13:39:56 +02:00
boot boot/opensbi: add hash file 2019-04-10 11:54:51 +02:00
configs configs/nanopi_m1_plus: bump to linux 5.0 and u-boot 2019.01 2019-04-10 13:39:56 +02:00
docs docs/website: update for 2019.02.1 2019-03-30 09:18:11 +01:00
fs fs/common.mk: disable real chown calls in fakeroot 2019-04-06 19:12:09 +02:00
linux linux: simplify LINUX_BUILD_CMDS 2019-04-13 17:15:19 +02:00
package linux: use host pkg-config when host libelf is set 2019-04-13 17:07:10 +02:00
support support/scripts/brpkutil.py: wrap at 80 columns 2019-04-13 15:59:47 +02:00
system system/skeleton: remove password expiration from shadow 2019-03-20 23:06:29 +01:00
toolchain toolchain/toolchain-external-custom: support Linux 5.1 2019-04-07 09:10:52 +02:00
utils utils/getdeveloperlib.py: print warnings/errors to stderr 2019-04-04 22:54:53 +02:00
.defconfig arch: remove support for sh64 2016-09-08 22:15:15 +02:00
.flake8 .flake8: fix check for 80/132 columns 2019-04-10 12:31:33 +02:00
.gitignore
.gitlab-ci.yml .gitlab-ci.yml: reorder jobs 2019-04-13 15:28:55 +02:00
.gitlab-ci.yml.in .gitlab-ci.yml: reorder jobs 2019-04-13 15:28:55 +02:00
CHANGES Update for 2019.02.1 2019-03-30 09:14:19 +01:00
Config.in toolchain: set the ssp gcc option in kconfig 2019-03-13 00:01:55 +01:00
Config.in.legacy package/lunit: remove package 2019-04-03 21:35:46 +02:00
COPYING COPYING: add exception about patch licensing 2016-02-26 19:50:13 +01:00
DEVELOPERS package/gli: new package 2019-04-11 18:28:28 +02:00
Makefile Makefile: release: really drop build/docs from release tarball 2019-03-29 23:09:41 +01:00
Makefile.legacy Remove BR2_DEPRECATED 2016-10-15 23:14:45 +02:00
README

Buildroot is a simple, efficient and easy-to-use tool to generate embedded
Linux systems through cross-compilation.

The documentation can be found in docs/manual. You can generate a text
document with 'make manual-text' and read output/docs/manual/manual.text.
Online documentation can be found at http://buildroot.org/docs.html

To build and use the buildroot stuff, do the following:

1) run 'make menuconfig'
2) select the target architecture and the packages you wish to compile
3) run 'make'
4) wait while it compiles
5) find the kernel, bootloader, root filesystem, etc. in output/images

You do not need to be root to build or run buildroot.  Have fun!

Buildroot comes with a basic configuration for a number of boards. Run
'make list-defconfigs' to view the list of provided configurations.

Please feed suggestions, bug reports, insults, and bribes back to the
buildroot mailing list: buildroot@buildroot.org
You can also find us on #buildroot on Freenode IRC.

If you would like to contribute patches, please read
https://buildroot.org/manual.html#submitting-patches