From d83c6ae7405a1a3ea6f3f5fa7c55face18ce78ac Mon Sep 17 00:00:00 2001 From: jbnadal Date: Thu, 4 Jan 2018 14:25:23 +0100 Subject: [PATCH] Update buildroot from 17.02.2 -> 17.02.3 --- bsp/buildroot/CHANGES | 82 +++++ bsp/buildroot/Makefile | 4 +- bsp/buildroot/VERSION | 2 +- ...ios-Fix-alignment-change-with-gcc-5.patch} | 30 +- ...-Disable-PIE-to-avoid-FTBFS-on-amd64.patch | 30 ++ .../boot/syslinux/0002-disable-pie.patch | 22 -- ...Not-enough-room-for-program-headers-.patch | 35 +++ ...sk-Force-ld-output-format-to-32-bits.patch | 32 ++ ...tils-Use-the-host-toolchain-to-build.patch | 60 ++++ ...-Use-the-host-toolchain-for-prepcore.patch | 44 +++ bsp/buildroot/boot/syslinux/Config.in | 3 +- bsp/buildroot/boot/syslinux/syslinux.mk | 29 +- bsp/buildroot/boot/uboot/uboot.mk | 2 +- bsp/buildroot/docs/manual/manual.html | 18 +- bsp/buildroot/docs/manual/manual.pdf | Bin 499402 -> 499404 bytes bsp/buildroot/docs/manual/manual.text | 4 +- bsp/buildroot/fs/iso9660/Config.in | 8 +- bsp/buildroot/package/acl/acl.mk | 19 +- bsp/buildroot/package/apr/apr.mk | 1 + bsp/buildroot/package/armadillo/armadillo.mk | 4 +- ...ays-check-the-number-of-coefficients.patch | 36 +++ ...ues-to-fix-index-overflow-in-IMA.cpp.patch | 39 +++ ...multiplication-overflow-in-sfconvert.patch | 72 +++++ ...ail-when-error-occurs-in-parseFormat.patch | 42 +++ ...lication-overflow-in-MSADPCM-decodeS.patch | 122 ++++++++ .../audiofile/0008-CVE-2015-7747.patch | 161 ++++++++++ ...9-Fix-static-linking-with-libsndfile.patch | 193 ++++++++++++ bsp/buildroot/package/bash/bash.mk | 4 +- bsp/buildroot/package/bind/bind.hash | 4 +- bsp/buildroot/package/bind/bind.mk | 3 +- .../0004-test-add-missing-header.patch | 34 +++ ...avoid-conflict-with-encrypt-function.patch | 107 +++++++ bsp/buildroot/package/bluez_utils/Config.in | 1 + .../package/bluez_utils/bluez_utils.mk | 2 +- bsp/buildroot/package/busybox/mdev.conf | 18 +- bsp/buildroot/package/cairo/cairo.mk | 4 +- bsp/buildroot/package/cppcms/cppcms.mk | 4 + .../dbus-cpp/0002-cross-compile-tools.patch | 34 +++ .../0002-cxxflags-ldflags-for-build.patch | 32 -- bsp/buildroot/package/dbus-glib/dbus-glib.mk | 2 +- .../package/dbus-triggerd/dbus-triggerd.mk | 1 + bsp/buildroot/package/dbus/dbus.mk | 2 +- bsp/buildroot/package/dhcp/dhcp.mk | 1 + bsp/buildroot/package/domoticz/domoticz.mk | 18 +- bsp/buildroot/package/dovecot/dovecot.hash | 2 +- bsp/buildroot/package/dovecot/dovecot.mk | 2 +- bsp/buildroot/package/dropbear/dropbear.hash | 2 +- bsp/buildroot/package/dropbear/dropbear.mk | 2 +- .../package/efibootmgr/efibootmgr.hash | 1 + .../package/efibootmgr/efibootmgr.mk | 3 + bsp/buildroot/package/efl/Config.in | 16 +- .../package/elfutils/0002-disable-progs.patch | 52 ++-- bsp/buildroot/package/elfutils/0003-fts.patch | 91 ++++-- ...e-werror-conditional-to-build-werror.patch | 22 +- bsp/buildroot/package/elfutils/Config.in | 2 +- bsp/buildroot/package/elfutils/elfutils.hash | 4 +- bsp/buildroot/package/elfutils/elfutils.mk | 6 +- bsp/buildroot/package/fakeroot/fakeroot.mk | 2 + ...e-the-non-null-compare-warning-error.patch | 32 ++ bsp/buildroot/package/fbgrab/fbgrab.mk | 2 +- bsp/buildroot/package/filemq/filemq.mk | 4 +- .../package/flashrom/0002-sys-io.h.patch | 27 -- bsp/buildroot/package/flashrom/flashrom.hash | 2 +- bsp/buildroot/package/flashrom/flashrom.mk | 2 +- bsp/buildroot/package/fmc/fmc.hash | 4 +- ...1-psaux-Better-protect-flex-handling.patch | 47 +++ ....c-t1_builder_close_contour-Add-safe.patch | 35 +++ bsp/buildroot/package/freetype/freetype.mk | 2 +- bsp/buildroot/package/ftop/Config.in | 2 +- bsp/buildroot/package/ftop/ftop.hash | 7 +- bsp/buildroot/package/ftop/ftop.mk | 3 +- ...ne-_REENTRANT-when-pthread-is-passed.patch | 34 +++ bsp/buildroot/package/gdb/gdb.mk | 23 +- ...99-have-.eqproc-check-its-parameters.patch | 33 ++ ...have-.rsdparams-check-its-parameters.patch | 62 ++++ bsp/buildroot/package/git/git.hash | 2 +- bsp/buildroot/package/git/git.mk | 10 +- .../0005-sh-Fix-building-with-gcc5-6.patch | 56 ++++ .../0001-sh-Fix-building-with-gcc5-6.patch | 56 ++++ bsp/buildroot/package/gnutls/gnutls.hash | 2 +- bsp/buildroot/package/gnutls/gnutls.mk | 2 +- .../google-breakpad/google-breakpad.mk | 4 +- ...-with-systemctl-when-cross-compiling.patch | 41 +++ bsp/buildroot/package/granite/granite.hash | 2 +- .../gstreamer/gst-ffmpeg/gst-ffmpeg.mk | 6 + .../gst-plugins-base/gst-plugins-base.mk | 6 +- .../gstreamer1/gst1-plugins-bad/Config.in | 2 + .../gst1-plugins-bad/gst1-plugins-bad.mk | 2 +- .../gst1-plugins-base/gst1-plugins-base.mk | 7 - bsp/buildroot/package/hans/hans.mk | 2 +- bsp/buildroot/package/harfbuzz/harfbuzz.hash | 4 +- bsp/buildroot/package/harfbuzz/harfbuzz.mk | 4 +- bsp/buildroot/package/hiredis/hiredis.mk | 29 +- bsp/buildroot/package/htop/htop.mk | 2 +- ...t-problems-with-handling-of-bad-utf8.patch | 173 +++++++++++ bsp/buildroot/package/icu/icu.mk | 2 +- ...m-ImageMagick-ImageMagick-issues-415.patch | 52 ++++ ...c-unbreak-build-without-JPEG-support.patch | 47 --- .../package/imagemagick/imagemagick.hash | 2 +- .../package/imagemagick/imagemagick.mk | 2 +- ...o-uninitialized-data-in-the-JP2-deco.patch | 286 ++++++++++++++++++ ...-the-JP2-encoder-to-ensure-that-the-.patch | 30 ++ ...-be-explicit-about-mul-instruction-d.patch | 35 +++ bsp/buildroot/package/kyua/Config.in | 5 +- bsp/buildroot/package/libcec/libcec.hash | 2 +- bsp/buildroot/package/libcec/libcec.mk | 4 +- ...k-end-of-input-before-reading-a-byte.patch | 62 ++++ ...nzr-support-only-max-long-rgb-values.patch | 46 +++ bsp/buildroot/package/libcurl/libcurl.hash | 2 +- bsp/buildroot/package/libcurl/libcurl.mk | 2 +- bsp/buildroot/package/libev/libev.mk | 2 +- bsp/buildroot/package/libiio/libiio.mk | 1 + .../package/libmicrohttpd/libmicrohttpd.hash | 2 +- .../package/libmicrohttpd/libmicrohttpd.mk | 2 +- .../0001-miniupnpc-Fix-CVE-2017-8798.patch | 59 ++++ bsp/buildroot/package/libnl/libnl.hash | 1 + bsp/buildroot/package/libnl/libnl.mk | 2 + .../package/libnspr/0001-nios2.patch | 18 +- .../package/libnspr/0002-microblaze.patch | 21 +- bsp/buildroot/package/libnspr/libnspr.hash | 4 +- bsp/buildroot/package/libnspr/libnspr.mk | 2 +- .../package/libnss/0001-cross-compile.patch | 48 --- .../{0002-uclibc.patch => 0001-uclibc.patch} | 0 .../libnss/0003-it-uninitialized-fix.patch | 24 -- bsp/buildroot/package/libnss/libnss.hash | 4 +- bsp/buildroot/package/libnss/libnss.mk | 12 +- ...-p8-platform-config-fix-lookup-paths.patch | 38 --- ...cmake-fix-paths-for-cross-compilatio.patch | 40 +++ .../package/libplatform/libplatform.hash | 2 +- .../package/libplatform/libplatform.mk | 8 +- bsp/buildroot/package/librsvg/librsvg.mk | 2 +- .../package/libsamplerate/libsamplerate.hash | 2 +- .../package/libsamplerate/libsamplerate.mk | 4 +- .../package/libselinux/libselinux.mk | 5 +- .../0001-sidplay2-libs-2.1.1.patch | 254 +++++----------- .../package/libsidplay2/libsidplay2.mk | 1 - .../package/libsndfile/0001-srconly.patch | 17 -- .../package/libsndfile/libsndfile.hash | 2 +- .../package/libsndfile/libsndfile.mk | 5 +- bsp/buildroot/package/libsoc/libsoc.mk | 1 + ...gure-don-t-add-Werror-to-build-flags.patch | 28 -- bsp/buildroot/package/libtasn1/libtasn1.hash | 2 +- bsp/buildroot/package/libtasn1/libtasn1.mk | 4 +- bsp/buildroot/package/libubox/libubox.mk | 2 +- bsp/buildroot/package/libunwind/Config.in | 2 +- .../package/libwebsockets/libwebsockets.hash | 3 +- .../package/libwebsockets/libwebsockets.mk | 4 +- .../package/libxkbcommon/libxkbcommon.mk | 1 + .../linux-firmware/linux-firmware.hash | 2 +- .../package/linux-headers/Config.in.host | 12 +- bsp/buildroot/package/logrotate/Config.in | 2 +- bsp/buildroot/package/ltp-testsuite/Config.in | 6 +- .../package/ltp-testsuite/ltp-testsuite.mk | 10 +- ...resence-of-dlmopen-at-configure-time.patch | 130 ++++++++ ...ude-config.h-to-resolve-HAVE_DLMOPEN.patch | 30 ++ .../package/lttng-libust/lttng-libust.mk | 1 + bsp/buildroot/package/lua/lua.mk | 1 + .../0002-buildroot-libtool-v1.5.patch.patch | 109 +++++++ bsp/buildroot/package/mariadb/mariadb.hash | 7 +- bsp/buildroot/package/mariadb/mariadb.mk | 6 +- bsp/buildroot/package/mbedtls/mbedtls.hash | 4 +- bsp/buildroot/package/mbedtls/mbedtls.mk | 2 +- .../package/memcached/memcached.hash | 6 +- bsp/buildroot/package/memcached/memcached.mk | 2 +- bsp/buildroot/package/mesa3d/mesa3d.mk | 7 + bsp/buildroot/package/minicom/minicom.hash | 2 +- bsp/buildroot/package/minicom/minicom.mk | 4 +- bsp/buildroot/package/mono/mono.mk | 9 +- .../package/mosquitto/mosquitto.hash | 4 +- bsp/buildroot/package/mosquitto/mosquitto.mk | 9 +- bsp/buildroot/package/mpd/Config.in | 3 + .../package/mplayer/0006-musl-ldt.patch | 22 ++ .../package/mplayer/0007-fixmmx.patch | 77 +++++ bsp/buildroot/package/mplayer/mplayer.mk | 10 +- bsp/buildroot/package/mpv/mpv.mk | 1 + bsp/buildroot/package/mxml/mxml.mk | 2 +- bsp/buildroot/package/nbd/nbd.mk | 6 +- bsp/buildroot/package/ncftp/ncftp.mk | 1 + bsp/buildroot/package/ncurses/ncurses.mk | 5 - bsp/buildroot/package/nodejs/Config.in | 2 +- bsp/buildroot/package/nodejs/nodejs.hash | 4 +- .../package/ntp/0003-ntpq-fpic.patch | 23 ++ bsp/buildroot/package/ntp/ntp.hash | 6 +- bsp/buildroot/package/ntp/ntp.mk | 11 +- .../package/nvidia-driver/nvidia-driver.mk | 2 +- bsp/buildroot/package/openblas/Config.in | 3 +- bsp/buildroot/package/openssh/openssh.hash | 5 +- bsp/buildroot/package/openssh/openssh.mk | 2 +- .../package/opentyrian/opentyrian.mk | 2 +- bsp/buildroot/package/openvpn/Config.in | 7 + bsp/buildroot/package/openvpn/openvpn.hash | 2 +- bsp/buildroot/package/openvpn/openvpn.mk | 11 +- .../0008-fix-type-conversion.patch | 22 ++ .../package/pcre/0003-CVE-2017-6004.patch | 21 ++ .../package/pcre/0004-CVE-2017-7186.patch | 60 ++++ bsp/buildroot/package/pcre/pcre.mk | 2 +- bsp/buildroot/package/perl-gd/perl-gd.mk | 5 + bsp/buildroot/package/picocom/picocom.mk | 3 +- bsp/buildroot/package/pkg-generic.mk | 1 + bsp/buildroot/package/pkg-python.mk | 8 +- bsp/buildroot/package/popt/popt.mk | 1 + .../package/postgresql/postgresql.hash | 4 +- .../package/postgresql/postgresql.mk | 2 +- ...void-fext-numeric-literals-not-suppo.patch | 28 ++ .../package/python-django/python-django.hash | 4 +- .../package/python-django/python-django.mk | 4 +- .../package/python-pyyaml/python-pyyaml.mk | 2 +- .../package/python-web2py/python-web2py.hash | 2 +- .../package/python-web2py/python-web2py.mk | 2 +- bsp/buildroot/package/python/python.mk | 4 + ...licit-failure-mode-to-std-atomic-com.patch | 65 ++++ ...x-x11-header-related-compile-failure.patch | 36 +++ ...mples-fix-compile-without-gui-module.patch | 42 +++ bsp/buildroot/package/qt5/qt5base/qt5base.mk | 3 + bsp/buildroot/package/qwt/qwt.mk | 6 + .../package/rabbitmq-c/rabbitmq-c.mk | 10 +- bsp/buildroot/package/redis/redis.mk | 13 +- ...-svc_getargs-calls-with-svc_freeargs.patch | 231 ++++++++++++++ ...lay-don-t-install-script-in-random-l.patch | 45 +++ bsp/buildroot/package/rpm/rpm.hash | 4 +- bsp/buildroot/package/rpm/rpm.mk | 5 +- bsp/buildroot/package/rtmpdump/rtmpdump.mk | 2 +- bsp/buildroot/package/samba4/samba4.hash | 2 +- bsp/buildroot/package/samba4/samba4.mk | 2 +- ...0001-No-runtime-tests-for-endianness.patch | 17 +- bsp/buildroot/package/skeleton/skeleton.mk | 2 + bsp/buildroot/package/slang/slang.mk | 4 +- ...0001-src-Makefile.am-don-t-use-VPATH.patch | 43 +++ ...switch-to-pkg-config-to-find-openssl.patch | 75 +++++ bsp/buildroot/package/sngrep/sngrep.mk | 2 +- bsp/buildroot/package/squashfs/squashfs.hash | 2 +- ...af_alg-fix-crypt-definition-conflict.patch | 55 ++++ .../package/strongswan/strongswan.hash | 3 + .../package/strongswan/strongswan.mk | 3 + .../sudo/0001-fix-CVE-2017-1000367.patch | 264 ++++++++++++++++ bsp/buildroot/package/sudo/sudo.mk | 7 + .../package/syslog-ng/syslog-ng.conf | 2 +- bsp/buildroot/package/systemd/Config.in | 6 + bsp/buildroot/package/taglib/Config.in | 2 +- bsp/buildroot/package/taglib/taglib.mk | 2 +- ...ure-has-a-packet-that-is-too-large-2.patch | 44 +++ ....c-libtiff-tiffiop.h-fix-uint32-over.patch | 46 +++ ...g.c-make-OJPEGDecode-early-exit-in-c.patch | 53 ++++ ...rlog.c-libtiff-tif_luv.c-fix-heap-ba.patch | 110 +++++++ ...ead.c-modify-ChopUpSingleUncompresse.patch | 107 +++++++ ...rror-out-cleanly-in-cpContig2Separat.patch | 74 +++++ ...mage.c-add-explicit-uint32-cast-in-p.patch | 31 ++ ...h-tif_unix.c-tif_win32.c-tif_vms.c-a.patch | 88 ++++++ ...g.c-fix-leak-in-OJPEGReadHeaderInfoS.patch | 43 +++ ...g.c-fix-leak-in-OJPEGReadHeaderInfoS.patch | 36 +++ ....c-avoid-integer-division-by-zero-in.patch | 35 +++ ...ead.c-avoid-division-by-floating-poi.patch | 47 +++ ....c-validate-BitsPerSample-in-JPEGSet.patch | 35 +++ ....c-avoid-potential-undefined-behavio.patch | 56 ++++ bsp/buildroot/package/tor/tor.hash | 2 +- bsp/buildroot/package/tor/tor.mk | 2 +- bsp/buildroot/package/trinity/trinity.hash | 1 + bsp/buildroot/package/trinity/trinity.mk | 2 + bsp/buildroot/package/upmpdcli/upmpdcli.mk | 2 +- bsp/buildroot/package/vlc/vlc.hash | 8 +- bsp/buildroot/package/vlc/vlc.mk | 2 +- ...Fix-CRLF-injection-in-Wget-host-part.patch | 40 +++ bsp/buildroot/package/which/Config.in | 2 +- .../package/wireshark/wireshark.hash | 4 +- bsp/buildroot/package/wireshark/wireshark.mk | 2 +- .../xdriver_xf86-video-vmware.mk | 7 + .../package/x11r7/xlib_libXv/xlib_libXv.mk | 2 +- bsp/buildroot/package/xen/xen.hash | 2 +- bsp/buildroot/package/xen/xen.mk | 2 +- bsp/buildroot/package/zmqpp/zmqpp.mk | 2 +- bsp/buildroot/support/download/git | 4 +- bsp/buildroot/support/scripts/br2-external | 3 + .../scripts/{pkgutil.py => brpkgutil.py} | 0 bsp/buildroot/support/scripts/graph-depends | 8 +- bsp/buildroot/support/scripts/mkusers | 14 +- bsp/buildroot/system/Config.in | 1 - bsp/buildroot/system/skeleton/etc/fstab | 2 +- bsp/buildroot/toolchain/Config.in | 2 +- bsp/buildroot/toolchain/helpers.mk | 12 +- .../pkg-toolchain-external.mk | 2 + ...toolchain-external-codesourcery-aarch64.mk | 2 +- .../toolchain-external-codesourcery-arm.mk | 2 +- .../toolchain-external-codesourcery-mips.mk | 2 +- .../toolchain-external-codesourcery-niosII.mk | 2 +- .../toolchain/toolchain/toolchain.mk | 4 +- 285 files changed, 5286 insertions(+), 876 deletions(-) rename bsp/buildroot/boot/syslinux/{0001-Fix-gcc-5-ALIGN-causing-Boot-error.patch => 0001-bios-Fix-alignment-change-with-gcc-5.patch} (66%) create mode 100644 bsp/buildroot/boot/syslinux/0002-Disable-PIE-to-avoid-FTBFS-on-amd64.patch delete mode 100644 bsp/buildroot/boot/syslinux/0002-disable-pie.patch create mode 100644 bsp/buildroot/boot/syslinux/0003-Fix-ldlinux.elf-Not-enough-room-for-program-headers-.patch create mode 100644 bsp/buildroot/boot/syslinux/0004-memdisk-Force-ld-output-format-to-32-bits.patch create mode 100644 bsp/buildroot/boot/syslinux/0005-utils-Use-the-host-toolchain-to-build.patch create mode 100644 bsp/buildroot/boot/syslinux/0006-lzo-Use-the-host-toolchain-for-prepcore.patch create mode 100644 bsp/buildroot/package/audiofile/0003-Always-check-the-number-of-coefficients.patch create mode 100644 bsp/buildroot/package/audiofile/0004-clamp-index-values-to-fix-index-overflow-in-IMA.cpp.patch create mode 100644 bsp/buildroot/package/audiofile/0005-Check-for-multiplication-overflow-in-sfconvert.patch create mode 100644 bsp/buildroot/package/audiofile/0006-Actually-fail-when-error-occurs-in-parseFormat.patch create mode 100644 bsp/buildroot/package/audiofile/0007-Check-for-multiplication-overflow-in-MSADPCM-decodeS.patch create mode 100644 bsp/buildroot/package/audiofile/0008-CVE-2015-7747.patch create mode 100644 bsp/buildroot/package/audiofile/0009-Fix-static-linking-with-libsndfile.patch create mode 100644 bsp/buildroot/package/bluez_utils/0004-test-add-missing-header.patch create mode 100644 bsp/buildroot/package/bluez_utils/0005-test-avoid-conflict-with-encrypt-function.patch create mode 100644 bsp/buildroot/package/dbus-cpp/0002-cross-compile-tools.patch delete mode 100644 bsp/buildroot/package/dbus-cpp/0002-cxxflags-ldflags-for-build.patch create mode 100644 bsp/buildroot/package/faketime/0001-Disable-the-non-null-compare-warning-error.patch delete mode 100644 bsp/buildroot/package/flashrom/0002-sys-io.h.patch create mode 100644 bsp/buildroot/package/freetype/0001-psaux-Better-protect-flex-handling.patch create mode 100644 bsp/buildroot/package/freetype/0002-src-psaux-psobjs.c-t1_builder_close_contour-Add-safe.patch create mode 100644 bsp/buildroot/package/gcc/arc-2016.09-release/895-arc-define-_REENTRANT-when-pthread-is-passed.patch create mode 100644 bsp/buildroot/package/ghostscript/0003-Bug-697799-have-.eqproc-check-its-parameters.patch create mode 100644 bsp/buildroot/package/ghostscript/0004-Bug-697799-have-.rsdparams-check-its-parameters.patch create mode 100644 bsp/buildroot/package/glibc/2.23/0005-sh-Fix-building-with-gcc5-6.patch create mode 100644 bsp/buildroot/package/glibc/2.24/0001-sh-Fix-building-with-gcc5-6.patch create mode 100644 bsp/buildroot/package/gpsd/0001-do-not-interact-with-systemctl-when-cross-compiling.patch create mode 100644 bsp/buildroot/package/icu/0006-utext-problems-with-handling-of-bad-utf8.patch create mode 100644 bsp/buildroot/package/imagemagick/0001-https-github.com-ImageMagick-ImageMagick-issues-415.patch delete mode 100644 bsp/buildroot/package/imagemagick/0001-png.c-unbreak-build-without-JPEG-support.patch create mode 100644 bsp/buildroot/package/jasper/0002-Fixed-bugs-due-to-uninitialized-data-in-the-JP2-deco.patch create mode 100644 bsp/buildroot/package/jasper/0003-Added-a-check-in-the-JP2-encoder-to-ensure-that-the-.patch create mode 100644 bsp/buildroot/package/kvm-unit-tests/0001-x86-hyperv_clock-be-explicit-about-mul-instruction-d.patch create mode 100644 bsp/buildroot/package/libcroco/0001-input-check-end-of-input-before-reading-a-byte.patch create mode 100644 bsp/buildroot/package/libcroco/0002-tknzr-support-only-max-long-rgb-values.patch create mode 100644 bsp/buildroot/package/libminiupnpc/0001-miniupnpc-Fix-CVE-2017-8798.patch delete mode 100644 bsp/buildroot/package/libnss/0001-cross-compile.patch rename bsp/buildroot/package/libnss/{0002-uclibc.patch => 0001-uclibc.patch} (100%) delete mode 100644 bsp/buildroot/package/libnss/0003-it-uninitialized-fix.patch delete mode 100644 bsp/buildroot/package/libplatform/0001-p8-platform-config-fix-lookup-paths.patch create mode 100644 bsp/buildroot/package/libplatform/0001-platform-config.cmake-fix-paths-for-cross-compilatio.patch delete mode 100644 bsp/buildroot/package/libsndfile/0001-srconly.patch delete mode 100644 bsp/buildroot/package/libtasn1/0001-configure-don-t-add-Werror-to-build-flags.patch create mode 100644 bsp/buildroot/package/lttng-libust/0003-Validate-the-presence-of-dlmopen-at-configure-time.patch create mode 100644 bsp/buildroot/package/lttng-libust/0004-Fix-include-config.h-to-resolve-HAVE_DLMOPEN.patch create mode 100644 bsp/buildroot/package/madplay/0002-buildroot-libtool-v1.5.patch.patch create mode 100644 bsp/buildroot/package/mplayer/0006-musl-ldt.patch create mode 100644 bsp/buildroot/package/mplayer/0007-fixmmx.patch create mode 100644 bsp/buildroot/package/ntp/0003-ntpq-fpic.patch create mode 100644 bsp/buildroot/package/oracle-mysql/0008-fix-type-conversion.patch create mode 100644 bsp/buildroot/package/pcre/0003-CVE-2017-6004.patch create mode 100644 bsp/buildroot/package/pcre/0004-CVE-2017-7186.patch create mode 100644 bsp/buildroot/package/pulseview/0003-CMakeLists.txt-Avoid-fext-numeric-literals-not-suppo.patch create mode 100644 bsp/buildroot/package/qt5/qt5base/5.8.0/0003-QAtomic-pass-explicit-failure-mode-to-std-atomic-com.patch create mode 100644 bsp/buildroot/package/qt5/qt5base/5.8.0/0003-eglfs-fix-x11-header-related-compile-failure.patch create mode 100644 bsp/buildroot/package/qt5/qt5base/5.8.0/0004-examples-fix-compile-without-gui-module.patch create mode 100644 bsp/buildroot/package/rpcbind/0004-rpcbind-pair-all-svc_getargs-calls-with-svc_freeargs.patch create mode 100644 bsp/buildroot/package/rpi-userland/0006-host-apps-dtoverlay-don-t-install-script-in-random-l.patch create mode 100644 bsp/buildroot/package/sngrep/0001-src-Makefile.am-don-t-use-VPATH.patch create mode 100644 bsp/buildroot/package/sngrep/0002-configure.ac-switch-to-pkg-config-to-find-openssl.patch create mode 100644 bsp/buildroot/package/strongswan/0001-af_alg-fix-crypt-definition-conflict.patch create mode 100644 bsp/buildroot/package/sudo/0001-fix-CVE-2017-1000367.patch create mode 100644 bsp/buildroot/package/tcpreplay/0001-278-fail-if-capture-has-a-packet-that-is-too-large-2.patch create mode 100644 bsp/buildroot/package/tiff/0001-libtiff-tif_read.c-libtiff-tiffiop.h-fix-uint32-over.patch create mode 100644 bsp/buildroot/package/tiff/0002-libtiff-tif_ojpeg.c-make-OJPEGDecode-early-exit-in-c.patch create mode 100644 bsp/buildroot/package/tiff/0003-libtiff-tif_pixarlog.c-libtiff-tif_luv.c-fix-heap-ba.patch create mode 100644 bsp/buildroot/package/tiff/0004-libtiff-tif_dirread.c-modify-ChopUpSingleUncompresse.patch create mode 100644 bsp/buildroot/package/tiff/0005-tools-tiffcp.c-error-out-cleanly-in-cpContig2Separat.patch create mode 100644 bsp/buildroot/package/tiff/0006-libtiff-tif_getimage.c-add-explicit-uint32-cast-in-p.patch create mode 100644 bsp/buildroot/package/tiff/0007-libtiff-tiffiop.h-tif_unix.c-tif_win32.c-tif_vms.c-a.patch create mode 100644 bsp/buildroot/package/tiff/0008-libtiff-tif_ojpeg.c-fix-leak-in-OJPEGReadHeaderInfoS.patch create mode 100644 bsp/buildroot/package/tiff/0009-libtiff-tif_ojpeg.c-fix-leak-in-OJPEGReadHeaderInfoS.patch create mode 100644 bsp/buildroot/package/tiff/0010-libtiff-tif_jpeg.c-avoid-integer-division-by-zero-in.patch create mode 100644 bsp/buildroot/package/tiff/0011-libtiff-tif_dirread.c-avoid-division-by-floating-poi.patch create mode 100644 bsp/buildroot/package/tiff/0012-libtiff-tif_jpeg.c-validate-BitsPerSample-in-JPEGSet.patch create mode 100644 bsp/buildroot/package/tiff/0013-libtiff-tif_read.c-avoid-potential-undefined-behavio.patch create mode 100644 bsp/buildroot/package/wget/0001-Fix-CRLF-injection-in-Wget-host-part.patch rename bsp/buildroot/support/scripts/{pkgutil.py => brpkgutil.py} (100%) diff --git a/bsp/buildroot/CHANGES b/bsp/buildroot/CHANGES index 5fedca19..d8b369fe 100644 --- a/bsp/buildroot/CHANGES +++ b/bsp/buildroot/CHANGES @@ -1,3 +1,85 @@ +2017.02.3, Released June 2nd, 2017 + + Important / security related fixes. + + Download: -source-check fixed for packages from git. + + External toolchain: musl dynamic linker symlink for mips-sf + corrected. + + Updated/fixed packages: armadillo, audiofile, bash, + bluez_utils, cppcms, dbus, dhcp, dropbear, efibootmgr, efl, + elfutils, faketime, fbgrab, flashrom, ftop, gdb, git, + google-breakpad, gpsd, hans, kvm-unit-tests, kyua, libev, + libmicrohttpd, libminiupnpc, libtasn1, libubox, ltp-testsuite, + lua, madplay, mariadb, mono, mosquitto, mxml, ntp, + nvidia-driver, openblas, openvpn, oracle-mysql, picocom, popt, + postgresql, pulseview, qt5base, qwt, rabbitmq-c, redis, + rpcbind, rtmpdump, samba4, strongswan, sudo, vlc + + Issues resolved (http://bugs.buildroot.org): + + #9796: source-check broken for Git downloads + #9871: fbgrab 1.3 won't build with BR2_REPRODUCIBLE set + +2017.02.2, Released May 1st, 2017 + + Important / security related fixes. + + Use HTTPS for the Codesourcery external toolchains as the HTTP + URLs no longer work. + + Updated/fixed packages: bind, busybox, dovecot, freetype, + ghostscript, glibc, granite, hiredis, icu, imagemagick, + gst-plugins-base, gst1-plugins-base, libcroco, libcurl, libnl, + libnspr, libnss, libsamplerate, libsndfile, libunwind, + minicom, mplayer, mpv, nodejs, python-django, python-pyyaml, + python-web2py, samba4, syslinux, systemd, tiff, trinity, + uboot, wireshark, xen + + Issues resolved (http://bugs.buildroot.org): + + #9791: Python searches for packages in the user site directory + +2017.02.1, Released April 4th, 2017 + + Important / security related fixes. + + Fix a variable clashing issue in the mkusers script with + internal bash variables. + + Improve external toolchain version detection. + + Correct permissions for /dev/pts/ptmx when systemd is used + with recent glibc versions. + + Fix python module name clash for graph-depends. + + Fakeroot now links against libacl to fix issues on + distributions using acls. + + Ensure that the git download infrastructure creates GNU format + tar files. + + br2-external: Improve error reporting. + + Updated/fixed packages: acl, apr, audiofile, busybox, cairo, + dbus-cpp, dbus-glib, dbus-triggerd, domoticz, elfutils, + fakeroot, filemq, fmc, gdb, git, gnutls, gst-ffmpeg, + gst1-plygins-bad, harfbuzz, htop, imagemagick, jasper, libcec, + libiio, libplatform, librsvg, libselinux, libsidplay2, libsoc, + libwebsockets, libxkbcommon, linux-firmware, logrotate, + lpt-testsuite, lttng-libust, mariadb, mbedtls, memcached, + mesa3d, mpd, mplayer, nbd, ncftp, ntp, openssh, opentyrian, + pcre, perl-gd, python, qt5base, rpi-userland, rpm, samba4, + skalibs, slang, sngrep, squashfs, syslog-ng, taglib, + tcpreplay, tor, upmpdcli, wget, wireshark, + xdriver_xf86-video-vmware, xlib_libXv, zmqpp + + Issues resolved (http://bugs.buildroot.org): + + #9456: mkusers script bash errors + 2017.02, Released February 28th, 2017 Minor fixes, mainly fixing autobuilder issues. diff --git a/bsp/buildroot/Makefile b/bsp/buildroot/Makefile index 67f4b980..8a2bd816 100644 --- a/bsp/buildroot/Makefile +++ b/bsp/buildroot/Makefile @@ -86,9 +86,9 @@ else # umask / $(CURDIR) / $(O) all: # Set and export the version string -export BR2_VERSION := 2017.02 +export BR2_VERSION := 2017.02.3 # Actual time the release is cut (for reproducible builds) -BR2_VERSION_EPOCH = 1488315000 +BR2_VERSION_EPOCH = 1496390000 # Save running make version since it's clobbered by the make package RUNNING_MAKE_VERSION := $(MAKE_VERSION) diff --git a/bsp/buildroot/VERSION b/bsp/buildroot/VERSION index cc95ad21..b71a2ac6 100644 --- a/bsp/buildroot/VERSION +++ b/bsp/buildroot/VERSION @@ -1 +1 @@ -buildroot 2017_02 +buildroot 2017_03 diff --git a/bsp/buildroot/boot/syslinux/0001-Fix-gcc-5-ALIGN-causing-Boot-error.patch b/bsp/buildroot/boot/syslinux/0001-bios-Fix-alignment-change-with-gcc-5.patch similarity index 66% rename from bsp/buildroot/boot/syslinux/0001-Fix-gcc-5-ALIGN-causing-Boot-error.patch rename to bsp/buildroot/boot/syslinux/0001-bios-Fix-alignment-change-with-gcc-5.patch index 2df67665..633d996e 100644 --- a/bsp/buildroot/boot/syslinux/0001-Fix-gcc-5-ALIGN-causing-Boot-error.patch +++ b/bsp/buildroot/boot/syslinux/0001-bios-Fix-alignment-change-with-gcc-5.patch @@ -1,16 +1,19 @@ -commit e5f2b577ded109291c9632dacb6eaa621d8a59fe -Author: Sylvain Gault -Date: Tue Sep 29 02:38:25 2015 +0200 +From da5cbd1a3b248f2d32281a1766a3d1414c0e8e03 Mon Sep 17 00:00:00 2001 +From: Sylvain Gault +Date: Tue, 29 Sep 2015 02:38:25 +0200 +Subject: [PATCH] bios: Fix alignment change with gcc 5 - bios: Fix alignment change with gcc 5 - - The section aligment specified in the ld scripts have to be greater or - equal to those in the .o files generated by gcc. - - Signed-off-by: Sylvain Gault - Tested-by: poma - Signed-off-by: Paulo Alcantara - Signed-off-by: Frank Hunleth +The section aligment specified in the ld scripts have to be greater or +equal to those in the .o files generated by gcc. + +Signed-off-by: Sylvain Gault +Tested-by: poma +Signed-off-by: Paulo Alcantara +Signed-off-by: Frank Hunleth +--- + core/i386/syslinux.ld | 6 +++--- + core/x86_64/syslinux.ld | 6 +++--- + 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/core/i386/syslinux.ld b/core/i386/syslinux.ld index 7b4e012..7390451 100644 @@ -74,3 +77,6 @@ index 1057112..bf815c4 100644 __bss_vma = .; __bss_lma = .; /* Dummy */ .bss (NOLOAD) : AT (__bss_lma) { +-- +2.7.4 + diff --git a/bsp/buildroot/boot/syslinux/0002-Disable-PIE-to-avoid-FTBFS-on-amd64.patch b/bsp/buildroot/boot/syslinux/0002-Disable-PIE-to-avoid-FTBFS-on-amd64.patch new file mode 100644 index 00000000..64a08b85 --- /dev/null +++ b/bsp/buildroot/boot/syslinux/0002-Disable-PIE-to-avoid-FTBFS-on-amd64.patch @@ -0,0 +1,30 @@ +From 250bf2c921713434627dc7bc8b0918fa0841f9b7 Mon Sep 17 00:00:00 2001 +From: Graham Inggs +Date: Wed, 5 Apr 2017 22:03:12 +0200 +Subject: [PATCH] Disable PIE to avoid FTBFS on amd64 + +gcc 6.x has PIE support enabled by default, which causes a build issue +with syslinux. This patch disables PIE support in the relevant +syslinux Makefile. + +Signed-off-by: Ryan Coe +--- + gpxe/src/Makefile | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/gpxe/src/Makefile b/gpxe/src/Makefile +index cc91d78..077af64 100644 +--- a/gpxe/src/Makefile ++++ b/gpxe/src/Makefile +@@ -4,7 +4,7 @@ + # + + CLEANUP := +-CFLAGS := ++CFLAGS := -fno-PIE + ASFLAGS := + LDFLAGS := + MAKEDEPS := Makefile +-- +2.7.4 + diff --git a/bsp/buildroot/boot/syslinux/0002-disable-pie.patch b/bsp/buildroot/boot/syslinux/0002-disable-pie.patch deleted file mode 100644 index b31b622c..00000000 --- a/bsp/buildroot/boot/syslinux/0002-disable-pie.patch +++ /dev/null @@ -1,22 +0,0 @@ -Description: Disable PIE to avoid FTBFS on amd64 -Bug-Ubuntu: https://bugs.launchpad.net/bugs/1579023 -Author: Graham Inggs -Last-Update: 2016-05-06 - -gcc 6.x has PIE support enabled by default, which causes a build issue -with syslinux. This patch disables PIE support in the relevant -syslinux Makefile. - -Signed-off-by: Ryan Coe - ---- a/gpxe/src/Makefile -+++ b/gpxe/src/Makefile -@@ -4,7 +4,7 @@ - # - - CLEANUP := --CFLAGS := -+CFLAGS := -fno-PIE - ASFLAGS := - LDFLAGS := - MAKEDEPS := Makefile diff --git a/bsp/buildroot/boot/syslinux/0003-Fix-ldlinux.elf-Not-enough-room-for-program-headers-.patch b/bsp/buildroot/boot/syslinux/0003-Fix-ldlinux.elf-Not-enough-room-for-program-headers-.patch new file mode 100644 index 00000000..83a87ee0 --- /dev/null +++ b/bsp/buildroot/boot/syslinux/0003-Fix-ldlinux.elf-Not-enough-room-for-program-headers-.patch @@ -0,0 +1,35 @@ +From 61de7762389d460da7ffdd644f50c60175cce23b Mon Sep 17 00:00:00 2001 +From: Steve McIntyre <93sam@debian.org> +Date: Wed, 5 Apr 2017 22:09:37 +0200 +Subject: [PATCH] Fix 'ldlinux.elf: Not enough room for program headers, try + linking with -N' +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Fix for https://bugs.debian.org/846679: syslinux: FTBFS: ld: +ldlinux.elf: Not enough room for program headers, try linking with -N + +https://bugs.debian.org/cgi-bin/bugreport.cgi?att=1;bug=846679;filename=syslinux_6.03%2Bdfsg-14.1.debdiff;msg=10 + +Signed-off-by: Benoît Allard +--- + core/Makefile | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/core/Makefile b/core/Makefile +index ad0acb5..58a3545 100644 +--- a/core/Makefile ++++ b/core/Makefile +@@ -165,7 +165,7 @@ LDSCRIPT = $(SRC)/$(ARCH)/syslinux.ld + + %.elf: %.o $(LIBDEP) $(LDSCRIPT) $(AUXLIBS) + $(LD) $(LDFLAGS) -Bsymbolic $(LD_PIE) -E --hash-style=gnu -T $(LDSCRIPT) -M -o $@ $< \ +- --start-group $(LIBS) $(subst $(*F).elf,lib$(*F).a,$@) --end-group \ ++ --start-group $(LIBS) $(subst $(*F).elf,lib$(*F).a,$@) --end-group --no-dynamic-linker \ + > $(@:.elf=.map) + $(OBJDUMP) -h $@ > $(@:.elf=.sec) + $(PERL) $(SRC)/lstadjust.pl $(@:.elf=.lsr) $(@:.elf=.sec) $(@:.elf=.lst) +-- +2.7.4 + diff --git a/bsp/buildroot/boot/syslinux/0004-memdisk-Force-ld-output-format-to-32-bits.patch b/bsp/buildroot/boot/syslinux/0004-memdisk-Force-ld-output-format-to-32-bits.patch new file mode 100644 index 00000000..4eedf497 --- /dev/null +++ b/bsp/buildroot/boot/syslinux/0004-memdisk-Force-ld-output-format-to-32-bits.patch @@ -0,0 +1,32 @@ +From c0287594239d5af2082cac20817f8e8b11a4b1b2 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Beno=C3=AEt=20Allard?= +Date: Wed, 5 Apr 2017 14:18:09 +0200 +Subject: [PATCH] memdisk: Force ld output format to 32-bits +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +On toolchains where the default output is x86_64, we need to be +consistent with the other .o files + +Signed-off-by: Benoît Allard +--- + memdisk/Makefile | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/memdisk/Makefile b/memdisk/Makefile +index e6557d8..06613ff 100644 +--- a/memdisk/Makefile ++++ b/memdisk/Makefile +@@ -78,7 +78,7 @@ memdisk16.o: memdisk16.asm + $(NASM) -f bin $(NASMOPT) $(NFLAGS) $(NINCLUDE) -o $@ -l $*.lst $< + + memdisk_%.o: memdisk_%.bin +- $(LD) -r -b binary -o $@ $< ++ $(LD) --oformat elf32-i386 -r -b binary -o $@ $< + + memdisk16.elf: $(OBJS16) + $(LD) -Ttext 0 -o $@ $^ +-- +2.7.4 + diff --git a/bsp/buildroot/boot/syslinux/0005-utils-Use-the-host-toolchain-to-build.patch b/bsp/buildroot/boot/syslinux/0005-utils-Use-the-host-toolchain-to-build.patch new file mode 100644 index 00000000..e091a3a8 --- /dev/null +++ b/bsp/buildroot/boot/syslinux/0005-utils-Use-the-host-toolchain-to-build.patch @@ -0,0 +1,60 @@ +From e000251144056c99e390a2a4449d06cbd2a19c0a Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Beno=C3=AEt=20Allard?= +Date: Wed, 5 Apr 2017 14:25:02 +0200 +Subject: [PATCH] utils: Use the host toolchain to build. +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +The utilities are meant to run on the host machine, hence must be built using +the host toolchain. + +Signed-off-by: Benoît Allard +--- + utils/Makefile | 12 ++++++------ + 1 file changed, 6 insertions(+), 6 deletions(-) + +diff --git a/utils/Makefile b/utils/Makefile +index dfe6259..ac91aaa 100644 +--- a/utils/Makefile ++++ b/utils/Makefile +@@ -17,8 +17,8 @@ + VPATH = $(SRC) + include $(MAKEDIR)/syslinux.mk + +-CFLAGS = $(GCCWARN) -Os -fomit-frame-pointer -D_FILE_OFFSET_BITS=64 -I$(SRC) +-LDFLAGS = -O2 ++CFLAGS = $(CFLAGS_FOR_BUILD) $(GCCWARN) -Os -fomit-frame-pointer -D_FILE_OFFSET_BITS=64 -I$(SRC) ++LDFLAGS = $(LDFLAGS_FOR_BUILD) -O2 + + C_TARGETS = isohybrid gethostip memdiskfind + SCRIPT_TARGETS = mkdiskimage +@@ -35,7 +35,7 @@ ISOHDPFX = $(addprefix $(OBJ)/,../mbr/isohdpfx.bin ../mbr/isohdpfx_f.bin \ + all: $(TARGETS) + + %.o: %.c +- $(CC) $(UMAKEDEPS) $(CFLAGS) -c -o $@ $< ++ $(CC_FOR_BUILD) $(UMAKEDEPS) $(CFLAGS) -c -o $@ $< + + mkdiskimage: mkdiskimage.in ../mbr/mbr.bin bin2hex.pl + $(PERL) $(SRC)/bin2hex.pl < $(OBJ)/../mbr/mbr.bin | cat $(SRC)/mkdiskimage.in - > $@ +@@ -51,13 +51,13 @@ isohdpfx.c: $(ISOHDPFX) isohdpfxarray.pl + $(PERL) $(SRC)/isohdpfxarray.pl $(ISOHDPFX) > $@ + + isohybrid: isohybrid.o isohdpfx.o +- $(CC) $(LDFLAGS) -o $@ $^ -luuid ++ $(CC_FOR_BUILD) $(LDFLAGS) -o $@ $^ -luuid + + gethostip: gethostip.o +- $(CC) $(LDFLAGS) -o $@ $^ ++ $(CC_FOR_BUILD) $(LDFLAGS) -o $@ $^ + + memdiskfind: memdiskfind.o +- $(CC) $(LDFLAGS) -o $@ $^ ++ $(CC_FOR_BUILD) $(LDFLAGS) -o $@ $^ + + tidy dist: + rm -f *.o .*.d isohdpfx.c +-- +2.1.4 + diff --git a/bsp/buildroot/boot/syslinux/0006-lzo-Use-the-host-toolchain-for-prepcore.patch b/bsp/buildroot/boot/syslinux/0006-lzo-Use-the-host-toolchain-for-prepcore.patch new file mode 100644 index 00000000..c6fa7feb --- /dev/null +++ b/bsp/buildroot/boot/syslinux/0006-lzo-Use-the-host-toolchain-for-prepcore.patch @@ -0,0 +1,44 @@ +From 83e1f00990c25554723609bb549e18b987034317 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Beno=C3=AEt=20Allard?= +Date: Thu, 6 Apr 2017 09:43:46 +0200 +Subject: [PATCH] lzo: Use the host toolchain for prepcore +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Signed-off-by: Benoît Allard +--- + lzo/Makefile | 7 +++++-- + 1 file changed, 5 insertions(+), 2 deletions(-) + +diff --git a/lzo/Makefile b/lzo/Makefile +index 29f1fa6..c016e5a 100644 +--- a/lzo/Makefile ++++ b/lzo/Makefile +@@ -11,10 +11,13 @@ + ## ----------------------------------------------------------------------- + + VPATH = $(SRC) +-include $(MAKEDIR)/build.mk ++include $(MAKEDIR)/syslinux.mk + + INCLUDES += -I$(SRC)/include + ++%.o: %.c ++ $(CC_FOR_BUILD) $(UMAKEDEPS) $(CFLAGS_FOR_BUILD) $(INCLUDES) -c -o $@ $< ++ + LIBOBJS = $(patsubst %.c,%.o,$(subst $(SRC)/,,$(wildcard $(SRC)/src/*.c))) + LIB = lzo.a + BINS = prepcore +@@ -30,7 +33,7 @@ $(LIB) : $(LIBOBJS) + $(RANLIB) $@ + + prepcore : prepcore.o $(LIB) +- $(CC) $(LDFLAGS) -o $@ $^ $(LIBS) ++ $(CC_FOR_BUILD) $(LDFLAGS_FOR_BUILD) -o $@ $^ $(LIBS) + + tidy dist clean spotless: + rm -f $(BINS) +-- +2.1.4 + diff --git a/bsp/buildroot/boot/syslinux/Config.in b/bsp/buildroot/boot/syslinux/Config.in index 6067e9ce..299a559f 100644 --- a/bsp/buildroot/boot/syslinux/Config.in +++ b/bsp/buildroot/boot/syslinux/Config.in @@ -1,12 +1,13 @@ config BR2_TARGET_SYSLINUX bool "syslinux" depends on BR2_i386 || BR2_x86_64 - select BR2_HOSTARCH_NEEDS_IA32_COMPILER # Make sure at least one of the flavors is installed select BR2_TARGET_SYSLINUX_ISOLINUX \ if !BR2_TARGET_SYSLINUX_PXELINUX && \ !BR2_TARGET_SYSLINUX_MBR && \ !BR2_TARGET_SYSLINUX_EFI + select BR2_PACKAGE_UTIL_LINUX + select BR2_PACKAGE_UTIL_LINUX_LIBUUID help The syslinux bootloader for x86 systems. This includes: syslinux, pxelinux, extlinux. diff --git a/bsp/buildroot/boot/syslinux/syslinux.mk b/bsp/buildroot/boot/syslinux/syslinux.mk index 82890c5d..a88885bc 100644 --- a/bsp/buildroot/boot/syslinux/syslinux.mk +++ b/bsp/buildroot/boot/syslinux/syslinux.mk @@ -13,7 +13,7 @@ SYSLINUX_LICENSE_FILES = COPYING SYSLINUX_INSTALL_IMAGES = YES -SYSLINUX_DEPENDENCIES = host-nasm host-util-linux host-upx +SYSLINUX_DEPENDENCIES = host-nasm host-upx util-linux ifeq ($(BR2_TARGET_SYSLINUX_LEGACY_BIOS),y) SYSLINUX_TARGET += bios @@ -51,21 +51,36 @@ SYSLINUX_POST_PATCH_HOOKS += SYSLINUX_CLEANUP # and the internal zlib should take precedence so -I shouldn't # be used. define SYSLINUX_BUILD_CMDS - $(TARGET_MAKE_ENV) $(MAKE1) CC="$(HOSTCC) -idirafter $(HOST_DIR)/usr/include $(HOST_LDFLAGS)" \ - AR="$(HOSTAR)" $(SYSLINUX_EFI_ARGS) -C $(@D) $(SYSLINUX_TARGET) + $(TARGET_MAKE_ENV) $(MAKE1) \ + CC="$(TARGET_CC)" \ + LD="$(TARGET_LD)" \ + NASM="$(HOST_DIR)/usr/bin/nasm" \ + CC_FOR_BUILD="$(HOSTCC)" \ + CFLAGS_FOR_BUILD="$(HOST_CFLAGS)" \ + LDFLAGS_FOR_BUILD="$(HOST_LDFLAGS)" \ + $(SYSLINUX_EFI_ARGS) -C $(@D) $(SYSLINUX_TARGET) endef # While the actual bootloader is compiled for the target, several # utilities for installing the bootloader are meant for the host. # Repeat the target, otherwise syslinux will try to build everything -# Repeat CC and AR, since syslinux really wants to check them at -# install time +# Repeat LD (and CC) as it happens that some binaries are linked at +# install-time. define SYSLINUX_INSTALL_TARGET_CMDS - $(TARGET_MAKE_ENV) $(MAKE1) CC="$(HOSTCC) -idirafter $(HOST_DIR)/usr/include $(HOST_LDFLAGS)" \ - AR="$(HOSTAR)" $(SYSLINUX_EFI_ARGS) INSTALLROOT=$(HOST_DIR) \ + $(TARGET_MAKE_ENV) $(MAKE1) $(SYSLINUX_EFI_ARGS) INSTALLROOT=$(HOST_DIR) \ + CC="$(TARGET_CC)" \ + LD="$(TARGET_LD)" \ -C $(@D) $(SYSLINUX_TARGET) install endef +# That 'syslinux' binary is an installer actually built for the target. +# However, buildroot makes no usage of it, so better delete it than have it +# installed at the wrong place +define SYSLINUX_POST_INSTALL_CLEANUP + rm -rf $(HOST_DIR)/usr/bin/syslinux +endef +SYSLINUX_POST_INSTALL_TARGET_HOOKS += SYSLINUX_POST_INSTALL_CLEANUP + SYSLINUX_IMAGES-$(BR2_TARGET_SYSLINUX_ISOLINUX) += bios/core/isolinux.bin SYSLINUX_IMAGES-$(BR2_TARGET_SYSLINUX_PXELINUX) += bios/core/pxelinux.bin SYSLINUX_IMAGES-$(BR2_TARGET_SYSLINUX_MBR) += bios/mbr/mbr.bin diff --git a/bsp/buildroot/boot/uboot/uboot.mk b/bsp/buildroot/boot/uboot/uboot.mk index 6b9d5445..782609a5 100644 --- a/bsp/buildroot/boot/uboot/uboot.mk +++ b/bsp/buildroot/boot/uboot/uboot.mk @@ -293,7 +293,7 @@ endif # UBOOT_BOARD_NAME else ifeq ($(BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG),y) ifeq ($(BR2_TARGET_UBOOT_USE_DEFCONFIG),y) ifeq ($(call qstrip,$(BR2_TARGET_UBOOT_BOARD_DEFCONFIG)),) -$(error No board defconfig name specified, check your BR2_TARGET_UBOOT_DEFCONFIG setting) +$(error No board defconfig name specified, check your BR2_TARGET_UBOOT_BOARD_DEFCONFIG setting) endif # qstrip BR2_TARGET_UBOOT_BOARD_DEFCONFIG endif # BR2_TARGET_UBOOT_USE_DEFCONFIG ifeq ($(BR2_TARGET_UBOOT_USE_CUSTOM_CONFIG),y) diff --git a/bsp/buildroot/docs/manual/manual.html b/bsp/buildroot/docs/manual/manual.html index 28a3b3be..73463349 100644 --- a/bsp/buildroot/docs/manual/manual.html +++ b/bsp/buildroot/docs/manual/manual.html @@ -1,6 +1,6 @@ -The Buildroot user manual

The Buildroot user manual


Table of Contents

I. Getting started
1. About Buildroot
2. System requirements
2.1. Mandatory packages
2.2. Optional packages
3. Getting Buildroot
4. Buildroot quick start
5. Community resources
II. User guide
6. Buildroot configuration
6.1. Cross-compilation toolchain
6.2. /dev management
6.3. init system
7. Configuration of other components
8. General Buildroot usage
8.1. make tips
8.2. Understanding when a full rebuild is necessary
8.3. Understanding how to rebuild packages
8.4. Offline builds
8.5. Building out-of-tree
8.6. Environment variables
8.7. Dealing efficiently with filesystem images
8.8. Graphing the dependencies between packages
8.9. Graphing the build duration
8.10. Graphing the filesystem size contribution of packages
8.11. Integration with Eclipse
8.12. Advanced usage
9. Project-specific customization
9.1. Recommended directory structure
9.2. Keeping customizations outside of Buildroot
9.3. Storing the Buildroot configuration
9.4. Storing the configuration of other components
9.5. Customizing the generated target filesystem
9.6. Adding custom user accounts
9.7. Customization after the images have been created
9.8. Adding project-specific patches
9.9. Adding project-specific packages
9.10. Quick guide to storing your project-specific customizations
10. Frequently Asked Questions & Troubleshooting
10.1. The boot hangs after Starting network…
10.2. Why is there no compiler on the target?
10.3. Why are there no development files on the target?
10.4. Why is there no documentation on the target?
10.5. Why are some packages not visible in the Buildroot config menu?
10.6. Why not use the target directory as a chroot directory?
10.7. Why doesn’t Buildroot generate binary packages (.deb, .ipkg…)?
10.8. How to speed-up the build process?
11. Known issues
12. Legal notice and licensing
12.1. Complying with open source licenses
12.2. License abbreviations
12.3. Complying with the Buildroot license
13. Beyond Buildroot
13.1. Boot the generated images
13.2. Chroot
III. Developer guide
14. How Buildroot works
15. Coding style
15.1. Config.in file
15.2. The .mk file
15.3. The documentation
16. Adding support for a particular board
17. Adding new packages to Buildroot
17.1. Package directory
17.2. Config files
17.3. The .mk file
17.4. The .hash file
17.5. Infrastructure for packages with specific build systems
17.6. Infrastructure for autotools-based packages
17.7. Infrastructure for CMake-based packages
17.8. Infrastructure for Python packages
17.9. Infrastructure for LuaRocks-based packages
17.10. Infrastructure for Perl/CPAN packages
17.11. Infrastructure for virtual packages
17.12. Infrastructure for packages using kconfig for configuration files
17.13. Infrastructure for rebar-based packages
17.14. Infrastructure for Waf-based packages
17.15. Infrastructure for packages building kernel modules
17.16. Infrastructure for asciidoc documents
17.17. Infrastructure specific to the Linux kernel package
17.18. Hooks available in the various build steps
17.19. Gettext integration and interaction with packages
17.20. Tips and tricks
17.21. Conclusion
18. Patching a package
18.1. Providing patches
18.2. How patches are applied
18.3. Format and licensing of the package patches
18.4. Integrating patches found on the Web
19. Download infrastructure
20. Debugging Buildroot
21. Contributing to Buildroot
21.1. Reproducing, analyzing and fixing bugs
21.2. Analyzing and fixing autobuild failures
21.3. Reviewing and testing patches
21.4. Work on items from the TODO list
21.5. Submitting patches
21.6. Reporting issues/bugs or getting help
22. DEVELOPERS file and get-developers
IV. Appendix
23. Makedev syntax documentation
24. Makeusers syntax documentation
25. Converting old br2-external trees

Buildroot 2017.02 manual generated on 2017-02-28 -21:03:45 UTC from git revision 083c0735e

The Buildroot manual is written by the Buildroot developers. +The Buildroot user manual

The Buildroot user manual


Table of Contents

I. Getting started
1. About Buildroot
2. System requirements
2.1. Mandatory packages
2.2. Optional packages
3. Getting Buildroot
4. Buildroot quick start
5. Community resources
II. User guide
6. Buildroot configuration
6.1. Cross-compilation toolchain
6.2. /dev management
6.3. init system
7. Configuration of other components
8. General Buildroot usage
8.1. make tips
8.2. Understanding when a full rebuild is necessary
8.3. Understanding how to rebuild packages
8.4. Offline builds
8.5. Building out-of-tree
8.6. Environment variables
8.7. Dealing efficiently with filesystem images
8.8. Graphing the dependencies between packages
8.9. Graphing the build duration
8.10. Graphing the filesystem size contribution of packages
8.11. Integration with Eclipse
8.12. Advanced usage
9. Project-specific customization
9.1. Recommended directory structure
9.2. Keeping customizations outside of Buildroot
9.3. Storing the Buildroot configuration
9.4. Storing the configuration of other components
9.5. Customizing the generated target filesystem
9.6. Adding custom user accounts
9.7. Customization after the images have been created
9.8. Adding project-specific patches
9.9. Adding project-specific packages
9.10. Quick guide to storing your project-specific customizations
10. Frequently Asked Questions & Troubleshooting
10.1. The boot hangs after Starting network…
10.2. Why is there no compiler on the target?
10.3. Why are there no development files on the target?
10.4. Why is there no documentation on the target?
10.5. Why are some packages not visible in the Buildroot config menu?
10.6. Why not use the target directory as a chroot directory?
10.7. Why doesn’t Buildroot generate binary packages (.deb, .ipkg…)?
10.8. How to speed-up the build process?
11. Known issues
12. Legal notice and licensing
12.1. Complying with open source licenses
12.2. License abbreviations
12.3. Complying with the Buildroot license
13. Beyond Buildroot
13.1. Boot the generated images
13.2. Chroot
III. Developer guide
14. How Buildroot works
15. Coding style
15.1. Config.in file
15.2. The .mk file
15.3. The documentation
16. Adding support for a particular board
17. Adding new packages to Buildroot
17.1. Package directory
17.2. Config files
17.3. The .mk file
17.4. The .hash file
17.5. Infrastructure for packages with specific build systems
17.6. Infrastructure for autotools-based packages
17.7. Infrastructure for CMake-based packages
17.8. Infrastructure for Python packages
17.9. Infrastructure for LuaRocks-based packages
17.10. Infrastructure for Perl/CPAN packages
17.11. Infrastructure for virtual packages
17.12. Infrastructure for packages using kconfig for configuration files
17.13. Infrastructure for rebar-based packages
17.14. Infrastructure for Waf-based packages
17.15. Infrastructure for packages building kernel modules
17.16. Infrastructure for asciidoc documents
17.17. Infrastructure specific to the Linux kernel package
17.18. Hooks available in the various build steps
17.19. Gettext integration and interaction with packages
17.20. Tips and tricks
17.21. Conclusion
18. Patching a package
18.1. Providing patches
18.2. How patches are applied
18.3. Format and licensing of the package patches
18.4. Integrating patches found on the Web
19. Download infrastructure
20. Debugging Buildroot
21. Contributing to Buildroot
21.1. Reproducing, analyzing and fixing bugs
21.2. Analyzing and fixing autobuild failures
21.3. Reviewing and testing patches
21.4. Work on items from the TODO list
21.5. Submitting patches
21.6. Reporting issues/bugs or getting help
22. DEVELOPERS file and get-developers
IV. Appendix
23. Makedev syntax documentation
24. Makeusers syntax documentation
25. Converting old br2-external trees

Buildroot 2017.02.3 manual generated on 2017-06-02 +09:15:16 UTC from git revision cae46d7b8d

The Buildroot manual is written by the Buildroot developers. It is licensed under the GNU General Public License, version 2. Refer to the COPYING file in the Buildroot sources for the full text of this license.

Copyright © 2004-2017 The Buildroot developers

logo.png

Part I. Getting started

Chapter 1. About Buildroot

Buildroot is a tool that simplifies and automates the process of @@ -16,8 +16,8 @@ processors everyone is used to having in his PC. They can be PowerPC processors, MIPS processors, ARM processors, etc.

Buildroot supports numerous processors and their variants; it also comes with default configurations for several boards available off-the-shelf. Besides this, a number of third-party projects are based on, -or develop their BSP [1] or -SDK [2] on top of Buildroot.



[1] BSP: Board Support Package

[2] SDK: Software Development Kit

Chapter 2. System requirements

Buildroot is designed to run on Linux systems.

While Buildroot itself will build most host packages it needs for the +or develop their BSP [1] or +SDK [2] on top of Buildroot.



[1] BSP: Board Support Package

[2] SDK: Software Development Kit

Chapter 2. System requirements

Buildroot is designed to run on Linux systems.

While Buildroot itself will build most host packages it needs for the compilation, certain standard Linux utilities are expected to be already installed on the host system. Below you will find an overview of the mandatory and optional packages (note that package names may vary @@ -272,7 +272,7 @@ processor. Under most Linux systems, the compilation toolchain uses the GNU libc (glibc) as the C standard library. This compilation toolchain is called the "host compilation toolchain". The machine on which it is running, and on which you’re working, is called the "host -system" [3].

The compilation toolchain is provided by your distribution, and +system" [3].

The compilation toolchain is provided by your distribution, and Buildroot has nothing to do with it (other than using it to build a cross-compilation toolchain and other tools that are run on the development host).

As said above, the compilation toolchain that comes with your system @@ -551,7 +551,7 @@ The third solution is systemd. http://www.freedesktop.org/wiki/Software/systemd.

The solution recommended by Buildroot developers is to use the BusyBox init as it is sufficient for most embedded -systems. systemd can be used for more complex situations.



[3] This terminology differs from what is used by GNU +systems. systemd can be used for more complex situations.



[3] This terminology differs from what is used by GNU configure, where the host is the machine on which the application will run (which is usually the same as target)

Chapter 7. Configuration of other components

Before attempting to modify any of the components below, make sure you have already configured Buildroot itself, and have enabled the @@ -2673,7 +2673,7 @@ flags. The argument to be given to LIBFOO_CONFIG_SCRIPTS is the file name(s) of the shell script(s) needing fixing. All these names are relative to $(STAGING_DIR)/usr/bin and if needed multiple names can be given.

In addition, the scripts listed in LIBFOO_CONFIG_SCRIPTS are removed -from $(TARGET_DIR)/usr/bin, since they are not needed on the target.

Example 17.1. Config script: divine package

Package divine installs shell script $(STAGING_DIR)/usr/bin/divine-config.

So its fixup would be:

DIVINE_CONFIG_SCRIPTS = divine-config

Example 17.2. Config script: imagemagick package:

Package imagemagick installs the following scripts: +from $(TARGET_DIR)/usr/bin, since they are not needed on the target.

Example 17.1. Config script: divine package

Package divine installs shell script $(STAGING_DIR)/usr/bin/divine-config.

So its fixup would be:

DIVINE_CONFIG_SCRIPTS = divine-config

Example 17.2. Config script: imagemagick package:

Package imagemagick installs the following scripts: $(STAGING_DIR)/usr/bin/{Magick,Magick++,MagickCore,MagickWand,Wand}-config

So it’s fixup would be:

IMAGEMAGICK_CONFIG_SCRIPTS = \
    Magick-config Magick++-config \
    MagickCore-config MagickWand-config Wand-config

On line 14, we specify the list of dependencies this package relies @@ -4598,7 +4598,7 @@ large number of commits in the series;

  • deep impact of the changes in the rest of the project;
  • -RFC [4]; +RFC [4];
  • whenever you feel it will help presenting your work, your choices, the review process, etc. @@ -4680,7 +4680,7 @@ pastebin service. Note that not all available pastebin services will preserve Unix-style line terminators when downloading raw pastes. Following pastebin services are known to work correctly: - https://gist.github.com/ -- http://code.bulix.org/



  • [4] RFC: (Request for comments) change proposal

    Chapter 22. DEVELOPERS file and get-developers

    The main Buildroot directory contains a file named DEVELOPERS that +- http://code.bulix.org/



    [4] RFC: (Request for comments) change proposal

    Chapter 22. DEVELOPERS file and get-developers

    The main Buildroot directory contains a file named DEVELOPERS that lists the developers involved with various areas of Buildroot. Thanks to this file, the get-developer tool allows to: