librecmc : Add python3.12 to the list and fixup grep issue
authorRISCi_ATOM <bob@bobcall.me>
Fri, 29 Dec 2023 18:35:36 +0000 (13:35 -0500)
committerRISCi_ATOM <bob@bobcall.me>
Fri, 29 Dec 2023 18:35:36 +0000 (13:35 -0500)
Makefile
include/prereq-build.mk

index ac447573f5882dfaaf143746839f9d32e37cf620..941bc4caf89d1ad1c9c54a04f4914065212c2880 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -18,7 +18,7 @@ $(if $(findstring $(space),$(TOPDIR)),$(error ERROR: The path to the libreCMC di
 
 world:
 
-DISTRO_PKG_CONFIG:=$(shell which -a pkg-config | grep -E '\/usr' | head -n 1)
+DISTRO_PKG_CONFIG:=$(shell which -a pkg-config | grep -E '/usr' | head -n 1)
 export PATH:=$(TOPDIR)/staging_dir/host/bin:$(PATH)
 
 ifneq ($(LIBRECMC_BUILD),1)
index eb6970bb45dcf9f7a489007a33444d3a4113cc95..b60f9cb8ca266d1179f74da0b2ffc2272e2f86fe 100644 (file)
@@ -145,6 +145,7 @@ $(eval $(call SetupHostCommand,perl,Please install Perl 5.x, \
 $(eval $(call CleanupPython2))
 
 $(eval $(call SetupHostCommand,python,Please install Python >= 3.5, \
+       python3.12 -V 2>&1 | grep 'Python 3', \
        python3.11 -V 2>&1 | grep 'Python 3', \
        python3.10 -V 2>&1 | grep 'Python 3', \
        python3.9 -V 2>&1 | grep 'Python 3', \