Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

backports: group PR for libreelec-9.2 updates #3488

Merged
merged 68 commits into from
Jun 13, 2019
Merged

backports: group PR for libreelec-9.2 updates #3488

merged 68 commits into from
Jun 13, 2019

Conversation

MilhouseVH
Copy link
Contributor

@MilhouseVH MilhouseVH commented May 4, 2019

Backports of:

#3373 (add libidn2 to image)
#3463 (ethmactool)
#3468 (C++ compiler and linker flags)
#3472 (tools/pkginfo)
#3482 (samba-4.9.7)
#3484 (linux: amend uimage load address for proper decompression)
#3491 (oscam)
#3493 (u-boot: explicitly enable decompression)
#3495 (tvmosaic)
#3500 (meson cross endianness)
#3501 (mesa-19.0.4)
#3503 (Cleanup references to past projects) [PARTIAL]
#3504 (Allwinner: Update Beelink X2 U-Boot patch)
#3508 (Update Broadcom firmware package)
#3509 (scripts/build: strip all executables in /usr)
#3511/#3513 (samba-4.9.8/heimdal-7.6.0 - security updates)
#3514 (u-boot: update to 2019.04 and clean up unsused config options)
#3515 (u-boot-script: add package to compile env scripts for u-boot)
#3517 (kernel-firmware/intel-ucode: update to 20190514, plus commit from #3434)
#3520 (Allwinner: Fix HDMI mode detection and speed up boot)
#3521 (libdrm: Update package to 2.4.98)
#3522 (bcm2835-bootloader: cleanup update.sh)
#3528 (linux: drop ati_remote.conf modprobe file)
#3530 (mesa: update to mesa-19.0.5)
#3531 (buildsystem: cleanup (addons) and fix (linux))
#3532 (curl: update to curl-7.65.0)
#3534 (amremote/atvclient: cleanup)
#3537 (packages: mega bump)
#3541 (Fix U-Boot compilation when board config is missing)
#3543 (xf86-video-nvidia: update to xf86-video-nvidia-430.14)
#3545 (Allwinner: Various updates)
#3546 (openssl: update to openssl-1.1.1c)
#3547 (heimdal: update to heimdal-7.7.0)
#3548 (config/functions: ln -sf is not always thread safe)
#3549 (xf86-video-nvidia: update to xf86-video-nvidia-430.26)
#3550 (procps-ng: free from busybox doesn't match top)
#3552 (LibreELEC-settings: update to LibreELEC-settings-f59dcc8)
#3553 (mesa: update to mesa-19.1.0)
#3554 (busybox: update to busybox-1.31.0)
#3558 (Alliwinner: Add eMMC definition to device tree of Orange PI 3)

More to be added until merge.

@kszaq
Copy link
Contributor

kszaq commented May 16, 2019

Please add #3463 and #3484

@MilhouseVH
Copy link
Contributor Author

Please add #3463 and #3484

Done!

@MilhouseVH MilhouseVH changed the base branch from master to libreelec-9.2 June 11, 2019 02:54
MilhouseVH and others added 21 commits June 13, 2019 22:12
Due to missing cpp_args and cpp_link_args in meson.conf ninja builds
of projects with C++ code were performed without CPU optimization
flags (-march, -mcpu, -mtune etc). Add these args so C++ code is
built with proper flags.

Signed-off-by: Matthias Reichl <hias@horus.com>
Signed-off-by: Ian Leonard <antonlacon@gmail.com>
Signed-off-by: Ian Leonard <antonlacon@gmail.com>
Signed-off-by: Ian Leonard <antonlacon@gmail.com>
Signed-off-by: Ian Leonard <antonlacon@gmail.com>
Signed-off-by: Ian Leonard <antonlacon@gmail.com>
Signed-off-by: Ian Leonard <antonlacon@gmail.com>
… CPU SN

Ethernet MAC address should be passed by u-boot in device tree. In
many cases this address is not correct: ethmactool package allows
userspace to take care of it.

Currently these are possible sources of "real" MAC:
 - Amlogic: cmdline, eFuse, CPU SN
 - Rockchip: CPU SN
When kernel image is compressed, it is first loaded
to RAM at load address specified in command line,
then unpacks to loadaddr provided by uImage.

For decompressed image not to overwrite compressed
data, uncompressed image load address needs to be
shifted by compressed image size + 1 MiB alignment.
…L_UIMAGE_ENTRYADDR is not set

If either of these values is not set, resulting uImage
will not load properly. Abort if these are not set.
If a package is sources multiple times, the destination address
may be recalculated and overwritten a few times. Prevent this by
using PKG-prefixed variables for results.

Thanks to MilhouseVH for suggesting this.
u-boot defconfigs don't enable decompression routines
required if we want to use compressed kernel image.
Enable them to be able to compress kernel and run it.
MilhouseVH and others added 24 commits June 13, 2019 22:12
See: https://www.gnu.org/software/bash/manual/html_node/Command-Substitution.html

"
...
Bash performs the expansion by executing command in a subshell environment and replacing
the command substitution with the standard output of the command, with any trailing newlines
deleted. Embedded newlines are not deleted, but they may be removed during word splitting. The
command substitution $(cat file) can be replaced by the equivalent but faster $(< file).
"

Testing indicates var=$(< file) is twice as fast as var=$(cat file).
A typical image build will update the dashboard 3500-4500 times. This change
avoids two process forks (cat, wc) per update, and the remaining $(< file) is
faster than $(cat file).
Signed-off-by: Ian Leonard <antonlacon@gmail.com>
Signed-off-by: Ian Leonard <antonlacon@gmail.com>
Signed-off-by: Ian Leonard <antonlacon@gmail.com>
@CvH CvH marked this pull request as ready for review June 13, 2019 22:12
@MilhouseVH MilhouseVH marked this pull request as ready for review June 13, 2019 22:13
@CvH CvH merged commit a48dc02 into LibreELEC:libreelec-9.2 Jun 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants