Commit 5ea4a0a8 authored by Andrey V.Kosteltsev's avatar Andrey V.Kosteltsev

Version 1.4.0 just for equality of versions

parent 913d3e5c
COMPONENT_TARGETS = $(TOOLCHAIN_S8XX_NEWLIB)
export TOOLCHAIN_VERSION = 1.4.0
include ../../../build-system/config.mk
REQUIRES = core/gcc/2018.09.12^full
REQUIRES += core/gdb/2018.09.12
# ======= __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 $@
#!/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.4.0
fi
#
# END of default common variables.
#
#################################################################
#!/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
#!/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
#include <stdlib.h>
#include <inttypes.h>
int main()
{
uint32_t a = 7, b = 3, c, r;
c = a / b;
r = a % b;
return( 0 );
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment