mirror of
https://git.busybox.net/buildroot.git
synced 2024-11-23 05:23:39 +08:00
boot/grub2: replace host-python3 with BR2_PYTHON3_HOST_DEPENDENCY
Commit86bb1b236
"boot/grub2: needs host-python3" [1] introduced a dependency on host-python3. Since grub does not have any specific requirements on host Python modules, or recent host Python version, this commit replaces the host-python3 dependency with BR2_PYTHON3_HOST_DEPENDENCY. This will skip the host-python3 compilation if a sufficient version (3.4 or greater at the time of this commit) is already present on host. This will save build time. This optimization was suggested by Peter, in [2]. Note 1: this commit was checked to ensure that grub is building with Python 3.4. Note 2: BR2_PYTHON3_HOST_DEPENDENCY was introduced in commitb60729784
"support/dependencies: add a check for python3" [3]. [1]86bb1b2360
[2] https://lists.buildroot.org/pipermail/buildroot/2024-September/763967.html [3]b60729784a
Signed-off-by: Julien Olivain <ju.o@free.fr> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
parent
29888ab35e
commit
8a71fda371
@ -9,8 +9,10 @@ GRUB2_SITE = http://ftp.gnu.org/gnu/grub
|
||||
GRUB2_SOURCE = grub-$(GRUB2_VERSION).tar.xz
|
||||
GRUB2_LICENSE = GPL-3.0+
|
||||
GRUB2_LICENSE_FILES = COPYING
|
||||
GRUB2_DEPENDENCIES = host-bison host-flex host-gawk host-grub2 host-python3
|
||||
HOST_GRUB2_DEPENDENCIES = host-bison host-flex host-gawk host-python3
|
||||
GRUB2_DEPENDENCIES = host-bison host-flex host-gawk host-grub2 \
|
||||
$(BR2_PYTHON3_HOST_DEPENDENCY)
|
||||
HOST_GRUB2_DEPENDENCIES = host-bison host-flex host-gawk \
|
||||
$(BR2_PYTHON3_HOST_DEPENDENCY)
|
||||
GRUB2_INSTALL_IMAGES = YES
|
||||
|
||||
# CVE-2019-14865 is about a flaw in the grub2-set-bootflag tool, which
|
||||
|
Loading…
Reference in New Issue
Block a user