Go to file
Thomas De Schampheleire b541a858f8 utils/checkpackagelib/lib_mk.py: handle 'else' and 'elif' statements
An 'else' or 'elif' clause inside a make conditional should not be indented
in the same way as the if/endif clause. check-package did not recognize the
else statement and expected an indentation.

For example:

ifdef FOOBAR
	interesting
else
	more interesting
endif

would, according to check-package, need to become:

ifdef FOOBAR
	interesting
	else
	more interesting
endif

Treat 'else' and 'elif' the same as if-like keywords in the Indent test, but
take into account that 'else' is also valid shell, so we need to correctly
handle line continuation to prevent complaining about the 'else' in:

ifdef FOOBAR
	if true; \
	    ... \
	else \
	    ... \
	fi
endif

We don't add the 'else' and 'elif' statements to start_conditional, because
it would cause incorrect nesting counting in class OverriddenVariable.

Signed-off-by: Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
(cherry picked from commit a1bb132a81)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2021-01-05 22:50:01 +01:00
arch arch/x86: adds BR2_X86_CPU_HAS_3DNOW flag 2020-07-16 18:18:26 +02:00
board board/boundarydevices: promote buildroot-external-boundary project 2020-12-27 09:30:34 +01:00
boot boot/lpc32xxcdl: switch upstream location 2021-01-04 17:58:18 +01:00
configs configs/beaglebone_qt5: switch to using KMS instead of wayland+weston 2020-12-21 10:56:39 +01:00
docs docs/manual: Add section about contributing to maintenance branches 2020-09-15 19:46:48 +02:00
fs fs/cpio/init: unbreak ttyname_r() on glibc after dropping /dev/console exec 2020-08-29 19:40:49 +02:00
linux {linux, linux-headers}: bump 5.{4, 9, 10}.x series 2021-01-04 15:07:12 +01:00
package package/openvpn: use make install instead of custom install step 2021-01-05 20:52:36 +01:00
support Update for 2020.02.9 2020-12-27 17:55:12 +01:00
system Revert "system: don't attempt swapon/swapoff in inittab if not available" 2020-02-08 20:13:07 +01:00
toolchain toolchain/toolchain-external/toolchain-external-arm-arm: add dependency on NEON 2020-11-16 16:05:34 +01:00
utils utils/checkpackagelib/lib_mk.py: handle 'else' and 'elif' statements 2021-01-05 22:50:01 +01: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: use python3 for flake8 run 2020-09-05 22:03:37 +02:00
.gitlab-ci.yml.in .gitlab-ci.yml: use python3 for flake8 run 2020-09-05 22:03:37 +02:00
CHANGES Update for 2020.02.9 2020-12-27 17:55:12 +01:00
Config.in Config.in: update BR2_OPTIMIZE_FAST prompt and help text 2020-07-22 13:38:51 +02:00
Config.in.legacy package/python-pycrypto: remove package 2020-05-31 22:36:03 +02:00
COPYING COPYING: add exception about patch licensing 2016-02-26 19:50:13 +01:00
DEVELOPERS DEVELOPERS: change email for Titouan Christophe 2021-01-05 22:38:42 +01:00
Makefile Update for 2020.02.9 2020-12-27 17:55:12 +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