Go to file
Ricardo Martincoski 02b165dc71 check-package: fix Python3 support
This script currently uses "/usr/bin/env python" as shebang but it does
not really support Python3. Instead of limiting the script to Python2,
fix it to support both versions.

So change all imports to absolute imports because Python3 follows PEP328
and dropped implicit relative imports.

In order to avoid errors when decoding files with the default 'utf-8'
codec, use errors="surrogateescape" when opening files, the docs for
open() states: "This is useful for processing files in an unknown
encoding.". This argument is not compatible with Python2 open() so
import 'six' to use it only when running in Python3.
As a consequence the file handler becomes explicit, so use it to close()
the file after it got processed.

This "surrogateescape" is a simple alternative to the complete solution
of opening files with "rb" and changing all functions in the lib*.py
files to use bytes objects instead of strings. The only case we can have
non-ascii/non-utf-8 files being checked by the script are for patch
files when the upstream file to be patched is not ascii or utf-8. There
is currently one case in the tree:
package/urg/0002-urg-gcc6-fix-narrowing-conversion.patch.

Signed-off-by: Ricardo Martincoski <ricardo.martincoski@gmail.com>
Cc: Arnout Vandecappelle <arnout@mind.be>
Reviewed-by: Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
Tested-by: Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2019-01-16 23:14:25 +01:00
arch arch: add support for RISC-V 32-bit (riscv32) architecture 2019-01-06 14:09:31 +01:00
board configs/qemu_riscv32_virt: new defconfig 2019-01-06 14:30:11 +01:00
boot boot/shim: new package 2019-01-12 17:38:25 +01:00
configs configs/olimex_a20_olinuxino_lime*: bump Linux and U-Boot versions 2019-01-16 15:59:06 +01:00
docs docs/manual: standardize a bit more the formatting of commit titles 2019-01-16 09:23:44 +01:00
fs fs/common.mk: make sure that static devices from packages are created 2018-12-04 21:53:14 +01:00
linux {linux, linux-headers}: default to 4.19.x 2019-01-12 18:19:47 +01:00
package package/supertux: needs gcc >= 6 2019-01-16 21:20:57 +01:00
support package/pkg-cmake: add CMAKE_SYSTEM_VERSION to toolchainfile.cmake 2019-01-12 16:06:51 +01:00
system skeleton: use BR2_SYSTEM_DEFAULT_PATH as default PATH 2018-12-31 14:32:44 +01:00
toolchain toolchain-external: update Arm AArch64 toolchain 8.2-2018.11 2019-01-04 12:45:17 +01:00
utils check-package: fix Python3 support 2019-01-16 23:14:25 +01:00
.defconfig
.flake8
.gitignore
.gitlab-ci.yml configs/qemu_riscv32_virt: new defconfig 2019-01-06 14:30:11 +01:00
.gitlab-ci.yml.in .gitlab-ci.yml: store .config files as artefacts for defconfig tests 2018-12-09 17:31:13 +01:00
CHANGES Update for 2018.02.9 2018-12-20 14:21:49 +01:00
Config.in core/download: drop the SSH command 2018-11-19 22:11:31 +01:00
Config.in.legacy package/boost: bump to version 1.69.0 2019-01-13 21:45:43 +01:00
COPYING
DEVELOPERS package/rtc-tools: new package 2019-01-16 10:56:25 +01:00
Makefile Makefile, manual, website: Bump copyright year 2019-01-06 21:30:34 +01:00
Makefile.legacy
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