ARC Toolchains

Synopsys ARC GNU Toolchains.

57 Commits   0 Branches   16 Tags   |
Index: products/Makefile
===================================================================
--- products/Makefile	(revision 55)
+++ products/Makefile	(revision 56)
@@ -3,7 +3,7 @@
 COMPONENT_TARGETS  = $(TOOLCHAIN_S8XX_NEWLIB)
 
 
-export TOOLCHAIN_VERSION = 1.7.0
+export TOOLCHAIN_VERSION = 1.7.1
 
 
 include ../build-system/config.mk
@@ -10,7 +10,7 @@
 
 
 ifeq ($(TOOLCHAIN),$(TOOLCHAIN_S8XX_NEWLIB))
-REQUIRES  = products/S8XX-newlib/1.7.0
+REQUIRES  = products/S8XX-newlib/1.7.1
 endif
 
 # ======= __END_OF_REQUIRES__ =======
Index: products/S8XX-newlib/1.7.1/Makefile
===================================================================
--- products/S8XX-newlib/1.7.1/Makefile	(nonexistent)
+++ products/S8XX-newlib/1.7.1/Makefile	(revision 56)
@@ -0,0 +1,34 @@
+
+
+COMPONENT_TARGETS = $(TOOLCHAIN_S8XX_NEWLIB)
+
+export TOOLCHAIN_VERSION = 1.7.1
+
+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.7.1/S8XX-TEST/.config
===================================================================
--- products/S8XX-newlib/1.7.1/S8XX-TEST/.config	(nonexistent)
+++ products/S8XX-newlib/1.7.1/S8XX-TEST/.config	(revision 56)
@@ -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.7.1
+fi
+
+#
+# END of default common variables.
+#
+#################################################################
Index: products/S8XX-newlib/1.7.1/S8XX-TEST/build.sh
===================================================================
--- products/S8XX-newlib/1.7.1/S8XX-TEST/build.sh	(nonexistent)
+++ products/S8XX-newlib/1.7.1/S8XX-TEST/build.sh	(revision 56)
@@ -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.7.1/S8XX-TEST/build.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: products/S8XX-newlib/1.7.1/S8XX-TEST/clean.sh
===================================================================
--- products/S8XX-newlib/1.7.1/S8XX-TEST/clean.sh	(nonexistent)
+++ products/S8XX-newlib/1.7.1/S8XX-TEST/clean.sh	(revision 56)
@@ -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.7.1/S8XX-TEST/clean.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: products/S8XX-newlib/1.7.1/S8XX-TEST/main.c
===================================================================
--- products/S8XX-newlib/1.7.1/S8XX-TEST/main.c	(nonexistent)
+++ products/S8XX-newlib/1.7.1/S8XX-TEST/main.c	(revision 56)
@@ -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 );
+}