Radix cross Linux Toolchains for ARC architecture

ARC Toolchains for boot loaders components of some SoCs (such as Amlogic System on Chip)

20 Commits   0 Branches   8 Tags
Index: products/Makefile
===================================================================
--- products/Makefile	(revision 6)
+++ products/Makefile	(revision 7)
@@ -3,7 +3,7 @@
 COMPONENT_TARGETS  = $(TOOLCHAIN_S8XX_NEWLIB)
 
 
-export TOOLCHAIN_VERSION = 1.9.2
+export TOOLCHAIN_VERSION = 1.9.3
 
 
 include ../build-system/config.mk
@@ -10,7 +10,7 @@
 
 
 ifeq ($(TOOLCHAIN),$(TOOLCHAIN_S8XX_NEWLIB))
-REQUIRES  = products/S8XX-newlib/1.9.2
+REQUIRES  = products/S8XX-newlib/1.9.3
 endif
 
 # ======= __END_OF_REQUIRES__ =======
Index: products/S8XX-newlib/1.9.3/Makefile
===================================================================
--- products/S8XX-newlib/1.9.3/Makefile	(nonexistent)
+++ products/S8XX-newlib/1.9.3/Makefile	(revision 7)
@@ -0,0 +1,34 @@
+
+
+COMPONENT_TARGETS = $(TOOLCHAIN_S8XX_NEWLIB)
+
+export TOOLCHAIN_VERSION = 1.9.3
+
+include ../../../build-system/config.mk
+
+REQUIRES  = core/gcc/2020.03.16^full
+REQUIRES += core/gdb/2020.03.18
+
+# ======= __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): $(build_requires)
+	@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: products/S8XX-newlib/1.9.3/S8XX-TEST/.config
===================================================================
--- products/S8XX-newlib/1.9.3/S8XX-TEST/.config	(nonexistent)
+++ products/S8XX-newlib/1.9.3/S8XX-TEST/.config	(revision 7)
@@ -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=arc-s8xx-elf32
+fi
+
+if test -z "$TOOLCHAIN_PATH"; then
+  export TOOLCHAIN_PATH=/opt/toolchains/arc-S8XX-elf32-newlib/1.9.3
+fi
+
+#
+# END of default common variables.
+#
+#################################################################
Index: products/S8XX-newlib/1.9.3/S8XX-TEST/build.sh
===================================================================
--- products/S8XX-newlib/1.9.3/S8XX-TEST/build.sh	(nonexistent)
+++ products/S8XX-newlib/1.9.3/S8XX-TEST/build.sh	(revision 7)
@@ -0,0 +1,17 @@
+#!/bin/bash
+
+. ./.config
+
+export PATH=$TOOLCHAIN_PATH/bin:$PATH
+
+$TARGET-gcc -g -mcpu=arcem -I$TOOLCHAIN_PATH/$TARGET/include -c -o main.o main.c
+$TARGET-gcc -mcpu=arcem -o main main.o -lc -lnosys
+
+$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: products/S8XX-newlib/1.9.3/S8XX-TEST/build.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: products/S8XX-newlib/1.9.3/S8XX-TEST/clean.sh
===================================================================
--- products/S8XX-newlib/1.9.3/S8XX-TEST/clean.sh	(nonexistent)
+++ products/S8XX-newlib/1.9.3/S8XX-TEST/clean.sh	(revision 7)
@@ -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: products/S8XX-newlib/1.9.3/S8XX-TEST/clean.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: products/S8XX-newlib/1.9.3/S8XX-TEST/main.c
===================================================================
--- products/S8XX-newlib/1.9.3/S8XX-TEST/main.c	(nonexistent)
+++ products/S8XX-newlib/1.9.3/S8XX-TEST/main.c	(revision 7)
@@ -0,0 +1,13 @@
+
+#include <stdlib.h>
+#include <inttypes.h>
+
+int main()
+{
+   uint32_t a = 7, b = 3, c, r;
+
+   c = a / b;
+   r = a % b;
+
+   return( 0 );
+}
Index: products/S8XX-newlib/1.9.3
===================================================================
--- products/S8XX-newlib/1.9.3	(nonexistent)
+++ products/S8XX-newlib/1.9.3	(revision 7)

Property changes on: products/S8XX-newlib/1.9.3
___________________________________________________________________
Added: svn:ignore
## -0,0 +1,34 ##
+
+# Target build dirs
+.noarch/
+.host/
+
+.s8xx-newlib/
+
+# Hidden files (each file)
+.makefile
+
+# Tarballs
+*.gz
+*.bz2
+*.xz
+*.tgz
+*.txz
+
+# Signatures
+*.asc
+*.sig
+*.sign
+*.sha1sum
+
+# Patches
+*.patch
+
+# Default linux config files
+*.defconfig
+
+# Object Files
+*.[ao]
+
+# backup copies
+*~