Index: Makefile
===================================================================
--- Makefile (revision 9)
+++ Makefile (revision 10)
@@ -28,6 +28,7 @@
COMPONENT_TARGETS += $(TOOLCHAIN_A311X_GLIBC)
COMPONENT_TARGETS += $(TOOLCHAIN_RK33XX_GLIBC)
COMPONENT_TARGETS += $(TOOLCHAIN_RK339X_GLIBC)
+COMPONENT_TARGETS += $(TOOLCHAIN_RK358X_GLIBC)
COMPONENT_TARGETS += $(TOOLCHAIN_A33XX_GLIBC)
COMPONENT_TARGETS += $(TOOLCHAIN_POWER8_GLIBC)
@@ -132,6 +133,9 @@
ifeq ($(TOOLCHAIN),$(TOOLCHAIN_RK339X_GLIBC))
REQUIRES = products/RK339X-glibc/1.9.2
endif
+ifeq ($(TOOLCHAIN),$(TOOLCHAIN_RK358X_GLIBC))
+REQUIRES = products/RK358X-glibc/1.9.2
+endif
ifeq ($(TOOLCHAIN),$(TOOLCHAIN_A33XX_GLIBC))
REQUIRES = products/A33XX-glibc/1.9.2
endif
Index: RK358X-glibc/1.9.2/Makefile
===================================================================
--- RK358X-glibc/1.9.2/Makefile (nonexistent)
+++ RK358X-glibc/1.9.2/Makefile (revision 10)
@@ -0,0 +1,35 @@
+
+
+COMPONENT_TARGETS = $(TOOLCHAIN_RK358X_GLIBC)
+
+export TOOLCHAIN_VERSION = 1.9.2
+
+include ../../../build-system/config.mk
+
+REQUIRES = core/gcc/12.2.0^full
+REQUIRES += tools/patchelf/0.18.0
+REQUIRES += core/gdb/12.1
+
+# ======= __END_OF_REQUIRES__ =======
+
+tarball_name = $(TOOLCHAIN_DIR)-$(TOOLCHAIN_VERSION).tar.xz
+tarball = $(TARGET_BUILD_DIR)/$(tarball_name)
+
+tarball_target = $(TARGET_BUILD_DIR)/.tarball-created
+
+BUILD_TARGETS = $(tarball_target)
+
+PRODUCT_TARGETS = $(tarball)
+
+include ../../../build-system/core.mk
+
+
+$(tarball): $(tarball_target)
+
+$(tarball_target):
+ @echo ""
+ @echo "Creating $(tarball_name) tarball..."
+ @cd $(TOOLCHAINS_BASE_PATH) ; \
+ tar -cf - $(TOOLCHAIN_DIR)/$(TOOLCHAIN_VERSION) | xz --threads=0 > $(tarball_name)
+ @mv $(TOOLCHAINS_BASE_PATH)/$(tarball_name) $(TARGET_BUILD_DIR)
+ @touch $@
Index: RK358X-glibc/1.9.2/RK358X-TEST/.config
===================================================================
--- RK358X-glibc/1.9.2/RK358X-TEST/.config (nonexistent)
+++ RK358X-glibc/1.9.2/RK358X-TEST/.config (revision 10)
@@ -0,0 +1,22 @@
+#!/bin/bash
+
+#################################################################
+#
+# default common variables:
+#
+if test -z "$HOST"; then
+ export HOST=x86_64-pc-linux-gnu
+fi
+
+if test -z "$TARGET"; then
+ export TARGET=aarch64-rk358x-linux-gnu
+fi
+
+if test -z "$TOOLCHAIN_PATH"; then
+ export TOOLCHAIN_PATH=/opt/toolchains/aarch64-RK358X-linux-glibc/1.9.2
+fi
+
+#
+# END of default common variables.
+#
+#################################################################
Index: RK358X-glibc/1.9.2/RK358X-TEST/build.sh
===================================================================
--- RK358X-glibc/1.9.2/RK358X-TEST/build.sh (nonexistent)
+++ RK358X-glibc/1.9.2/RK358X-TEST/build.sh (revision 10)
@@ -0,0 +1,19 @@
+#!/bin/bash
+
+. ./.config
+
+export PATH=$TOOLCHAIN_PATH/bin:$PATH
+
+ARCH_FLAGS=" -march=armv8-a -mcpu=cortex-a75.cortex-a55 -mabi=lp64"
+
+$TARGET-gcc -g -O3 -gdwarf-2 -fomit-frame-pointer $ARCH_FLAGS -I$TOOLCHAIN_PATH/$TARGET/include -c -o main.o main.c
+$TARGET-gcc $ARCH_FLAGS $FPU_FLAGS -o main main.o
+
+$TARGET-objdump -x main > main.map
+
+$TARGET-strip main -o main.elf
+
+$TARGET-objcopy -O srec main.elf main.srec
+$TARGET-objcopy -O ihex main.elf main.hex
+$TARGET-objdump -S -d main.o > main.asm
+$TARGET-objdump -S -d main > full.program.asm
Property changes on: RK358X-glibc/1.9.2/RK358X-TEST/build.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: RK358X-glibc/1.9.2/RK358X-TEST/clean.sh
===================================================================
--- RK358X-glibc/1.9.2/RK358X-TEST/clean.sh (nonexistent)
+++ RK358X-glibc/1.9.2/RK358X-TEST/clean.sh (revision 10)
@@ -0,0 +1,10 @@
+#!/bin/bash
+
+rm -f full.program.asm
+rm -f main
+rm -f main.asm
+rm -f main.elf
+rm -f main.hex
+rm -f main.map
+rm -f main.o
+rm -f main.srec
Property changes on: RK358X-glibc/1.9.2/RK358X-TEST/clean.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: RK358X-glibc/1.9.2/RK358X-TEST/main.c
===================================================================
--- RK358X-glibc/1.9.2/RK358X-TEST/main.c (nonexistent)
+++ RK358X-glibc/1.9.2/RK358X-TEST/main.c (revision 10)
@@ -0,0 +1,17 @@
+
+#include <stdlib.h>
+#include <inttypes.h>
+
+int main()
+{
+ float d, f = 3.1415;
+
+ uint32_t a = 7, b = 3, c, r;
+
+ c = a / b;
+ r = a % b;
+
+ d = f * 2.1;
+
+ return( 0 );
+}