Index: build-config.mk.template
===================================================================
--- build-config.mk.template (revision 14)
+++ build-config.mk.template (revision 15)
@@ -45,6 +45,9 @@
ENABLE_KHADAS_EDGE = false
ENABLE_LEEZ_P710 = true
+# TARGET: aarch64-rk358x-linux-gnu:
+ENABLE_ORANGE_PI5 = true
+
# TARGET: arm-h3-linux-gnueabihf:
ENABLE_ORANGE_PP2E = true
ENABLE_NANOPI_NEO = false
Index: constants.mk
===================================================================
--- constants.mk (revision 14)
+++ constants.mk (revision 15)
@@ -437,7 +437,17 @@
LEEZ_P710_ENABLE_STATIC = no
+####### RK358X devices:
+####### --------------
+####### ORANGE Pi 5 [http://www.orangepi.org/index.html]:
+HARDWARE_PRANGE_PI5 = orange-pi5
+### |---HW-spec-handy-ruler-----------------------|
+PRANGE_PI5_SPEC = Orange Pi 5 RK3588S \(Linux, GNU Libc based\)
+PRANGE_PI5_USE_BUILT_GCC_LIBS = yes
+PRANGE_PI5_ENABLE_STATIC = no
+
+
####### S8XX devices:
####### ------------
@@ -639,6 +649,7 @@
KHADAS_EDGE_ID_STD = 0E01
LEEZ_P710_ID_STD = 0E02
ORANGE_PP2E_ID_STD = 0F01
+ ORANGE_PI5_ID_STD = 0F02
NANOPI_NEO_ID_STD = 0D02
ORANGE_PP_ID_STD = 1001
ORANGE_PL2_ID_STD = 1002
@@ -968,6 +979,28 @@
+# ======= RK358X-GLIBC ======================================================
+
+TOOLCHAIN_RK358X_GLIBC = rk358x-glibc
+
+RK358X_GLIBC_ARCH = aarch64-rk358x-linux-gnu
+RK358X_GLIBC_VERSION = 1.9.3
+RK358X_GLIBC_DIR = aarch64-RK358X-linux-glibc
+RK358X_GLIBC_PATH = $(TOOLCHAINS_BASE_PATH)/$(RK358X_GLIBC_DIR)
+RK358X_GLIBC_TARBALL = $(TOOLCHAINS_FTP_BASE)/$(RK358X_GLIBC_VERSION)/$(RK358X_GLIBC_DIR)-$(RK358X_GLIBC_VERSION).$(TARBALL_SUFFIX)
+
+RK358X_GLIBC_ARCH_DEFS = -D__RK358X_GLIBC__=1
+RK358X_GLIBC_ARCH_FLAGS = -march=armv8.2-a -mcpu=cortex-a75.cortex-a55 -mabi=lp64 -fomit-frame-pointer
+
+RK358X_GLIBC_SYSROOT = sys-root
+RK358X_GLIBC_DEST_SYSROOT = yes
+
+RK358X_GLIBC_HAS_PATCHELF = yes
+
+RK358X_GLIBC_HARDWARE_VARIANTS := $(HARDWARE_ORANGE_PI5)
+
+
+
# ======= S8XX-GLIBC =========================================================
TOOLCHAIN_S8XX_GLIBC = s8xx-glibc