Commit dac3b0ca authored by Andrey V.Kosteltsev's avatar Andrey V.Kosteltsev

Back merge fixes from toolchains-1.4.x

parent 19cb825c
......@@ -120,7 +120,6 @@ A1X_GLIBC_PATH = $(TOOLCHAINS_BASE_PATH)/$(A1X_GLIBC_DIR)
### |---Toolchain-spec-handy-ruler----------------|
A1X_GLIBC_SPEC = Allwinner A1x GNU Libc toolchain
# AllWinner A20-GLIBC
TOOLCHAIN_A2X_GLIBC = a2x-glibc
......
......@@ -94,19 +94,19 @@ endif
ifeq ($(TOOLCHAIN),$(TOOLCHAIN_H5_NEWLIB))
extra_configure_switches = --enable-multiarch
extra_configure_switches += --disable-multilib
extra_configure_switches += --enable-multilib
extra_configure_switches += --with-arch=armv8-a
endif
ifeq ($(TOOLCHAIN),$(TOOLCHAIN_S9XX_NEWLIB))
extra_configure_switches = --enable-multiarch
extra_configure_switches += --disable-multilib
extra_configure_switches += --enable-multilib
extra_configure_switches += --with-arch=armv8-a
endif
ifeq ($(TOOLCHAIN),$(TOOLCHAIN_RK33XX_NEWLIB))
extra_configure_switches = --enable-multiarch
extra_configure_switches += --disable-multilib
extra_configure_switches += --enable-multilib
extra_configure_switches += --with-arch=armv8-a
endif
......
#!/bin/sh
#!/bin/bash
if [ $# -lt 3 ]; then
exit 1
......@@ -16,7 +16,7 @@ multilib=lib
extra_cflags=
#
# Valid multilibs="arm fpu thumb thumb1 thumb2 armv7-m armv7e-m"
# Valid multilibs="arm armv7-m"
#
for mlib in $multilibs ; do
......
......@@ -7,7 +7,6 @@ export PATH=$TOOLCHAIN_PATH/bin:$PATH
DEBUG_FLAGS="-gdwarf-2"
ARCH_FLAGS="-march=armv7-m -mcpu=cortex-m3 -mthumb"
FPU_FLAGS=" -mfpu=fpv4-sp-d16 -mfloat-abi=hard"
#NO_STD_FLAGS=" -nostdlib -nostartfiles"
$TARGET-gcc -g $DEBUG_FLAGS -fomit-frame-pointer $ARCH_FLAGS $FPU_FLAGS -c -o main.o main.c
......
......@@ -6,7 +6,6 @@ export PATH=$TOOLCHAIN_PATH/bin:$PATH
DEBUG_FLAGS="-gdwarf-2"
ARCH_FLAGS="-march=armv7-m -mcpu=cortex-m3 -mthumb"
#NO_STD_FLAGS=" -nostdlib -nostartfiles"
$TARGET-gcc -g $DEBUG_FLAGS $ARCH_FLAGS $FPU_FLAGS -I$TOOLCHAIN_PATH/$TARGET/include -c -o main.o main.c
......
#!/bin/sh
#!/bin/bash
rm -f full.program.asm main main.asm main.elf main.hex main.map main.o main.srec
#!/bin/bash
. ./.config
export PATH=$TOOLCHAIN_PATH/bin:$PATH
DEBUG_FLAGS="-gdwarf-2"
ARCH_FLAGS=" -march=armv8-a -mcpu=cortex-a53 -mabi=ilp32 -mlittle-endian"
$TARGET-gcc -g $DEBUG_FLAGS $ARCH_FLAGS -fomit-frame-pointer -I$TOOLCHAIN_PATH/$TARGET/include -c -o main.o main.c
$TARGET-gcc $DEBUG_FLAGS $ARCH_FLAGS -o main main.o -lc -lm -lnosys -lrdimon
$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
#################################################################
#
# default common variables:
#
if test -z "$HOST"; then
export HOST=x86_64-pc-linux-gnu
fi
if test -z "$TARGET"; then
export TARGET=aarch64-h5-elf
fi
if test -z "$TOOLCHAIN_PATH"; then
export TOOLCHAIN_PATH=/opt/toolchains/aarch64-H5-elf-newlib/1.2.3
fi
#
# END of default common variables.
#
#################################################################
......@@ -5,10 +5,12 @@
export PATH=$TOOLCHAIN_PATH/bin:$PATH
DEBUG_FLAGS="-gdwarf-2"
ARCH_FLAGS="-march=armv8-a -mcpu=cortex-a53 -mlittle-endian"
ARCH_FLAGS=" -march=armv8-a -mcpu=cortex-a53 -mabi=lp64 -mlittle-endian"
$TARGET-gcc -g $DEBUG_FLAGS -fomit-frame-pointer -I$TOOLCHAIN_PATH/$TARGET/include -c -o main.o main.c
$TARGET-gcc $ARCH_FLAGS -o main main.o -lc -lm -lnosys -lrdimon
$TARGET-gcc -g $DEBUG_FLAGS $ARCH_FLAGS -fomit-frame-pointer -I$TOOLCHAIN_PATH/$TARGET/include -c -o main.o main.c
$TARGET-gcc $DEBUG_FLAGS $ARCH_FLAGS -o main main.o -lc -lm -lnosys -lrdimon
$TARGET-objdump -x main > main.map
$TARGET-strip main -o main.elf
......
......@@ -5,5 +5,6 @@ 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
......@@ -6,7 +6,6 @@ export PATH=$TOOLCHAIN_PATH/bin:$PATH
$TARGET-gcc -g -gdwarf-2 -fomit-frame-pointer -I$TOOLCHAIN_PATH/$TARGET/sys-root/usr/include -c -o main.o main.c
$TARGET-gcc -o main main.o
#$TARGET-gcc -L$TOOLCHAIN_PATH/$TARGET/sys-root/usr/lib64 -o main main.o
$TARGET-objdump -x main > main.map
......
......@@ -6,10 +6,7 @@ export PATH=$TOOLCHAIN_PATH/bin:$PATH
ARCH_FLAGS=" -march=armv7-a -mtune=cortex-a9"
# without fp
#FPU_FLAGS=" "
# VFP:
FPU_FLAGS=" -mfpu=vfpv3"
FPU_FLAGS=" -mfpu=vfpv3 -mfloat-abi=hard"
$TARGET-gcc -g -fomit-frame-pointer $ARCH_FLAGS $FPU_FLAGS -I$TOOLCHAIN_PATH/$TARGET/include -c -o main.o main.c
$TARGET-gcc $ARCH_FLAGS $FPU_FLAGS -o main main.o
......
......@@ -6,10 +6,6 @@ export PATH=$TOOLCHAIN_PATH/bin:$PATH
ARCH_FLAGS=" -march=armv7-a -mtune=cortex-a9"
# without fp
#FPU_FLAGS=" "
# VFP:
#FPU_FLAGS=" -mfloat-abi=softfp -mfpu=vfpv3"
$TARGET-gcc -g -fomit-frame-pointer $ARCH_FLAGS $FPU_FLAGS -I$TOOLCHAIN_PATH/$TARGET/include -c -o main.o main.c
$TARGET-gcc $ARCH_FLAGS $FPU_FLAGS -o main main.o
......
......@@ -23,6 +23,7 @@ COMPONENT_TARGETS += $(TOOLCHAIN_S8XX_GLIBC)
COMPONENT_TARGETS += $(TOOLCHAIN_S9XX_GLIBC)
COMPONENT_TARGETS += $(TOOLCHAIN_A9XX_GLIBC)
COMPONENT_TARGETS += $(TOOLCHAIN_RK33XX_GLIBC)
COMPONENT_TARGETS += $(TOOLCHAIN_RK339X_GLIBC)
COMPONENT_TARGETS += $(TOOLCHAIN_A33XX_GLIBC)
COMPONENT_TARGETS += $(TOOLCHAIN_POWER8_GLIBC)
......
......@@ -4,7 +4,7 @@
export PATH=$TOOLCHAIN_PATH/bin:$PATH
ARCH_FLAGS=" -march=armv7-a -mtune=cortex-a15"
ARCH_FLAGS=" -march=armv7ve -mtune=cortex-a15"
FPU_FLAGS=" -mfloat-abi=hard -mfpu=neon-vfpv4 -ffast-math"
$TARGET-gcc -g -O3 -fomit-frame-pointer $ARCH_FLAGS $FPU_FLAGS -I$TOOLCHAIN_PATH/$TARGET/include -c -o main.o main.c
......
......@@ -4,12 +4,8 @@
export PATH=$TOOLCHAIN_PATH/bin:$PATH
ARCH_FLAGS=" -march=armv7-a -mtune=cortex-a15"
#FPU_FLAGS=" "
# NEON:
#FPU_FLAGS=" -mfloat-abi=hard -mfpu=neon -ffast-math"
# NEON + VFPv4:
#FPU_FLAGS=" -mfloat-abi=hard -mfpu=neon-vfpv4 -ffast-math"
ARCH_FLAGS=" -march=armv7ve -mtune=cortex-a15"
$TARGET-gcc -g -O3 -fomit-frame-pointer $ARCH_FLAGS $FPU_FLAGS -I$TOOLCHAIN_PATH/$TARGET/include -c -o main.o main.c
$TARGET-gcc $ARCH_FLAGS $FPU_FLAGS -o main main.o
......
......@@ -4,7 +4,7 @@
export PATH=$TOOLCHAIN_PATH/bin:$PATH
ARCH_FLAGS=" -march=armv8-a -mcpu=cortex-a53"
ARCH_FLAGS=" -march=armv8-a -mcpu=cortex-a53 -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
......
#!/bin/bash
. ./.config
export PATH=$TOOLCHAIN_PATH/bin:$PATH
DEBUG_FLAGS="-gdwarf-2"
ARCH_FLAGS=" -march=armv8-a -mcpu=cortex-a53 -mabi=ilp32 -mlittle-endian"
$TARGET-gcc -g $DEBUG_FLAGS $ARCH_FLAGS -fomit-frame-pointer -I$TOOLCHAIN_PATH/$TARGET/include -c -o main.o main.c
$TARGET-gcc $DEBUG_FLAGS $ARCH_FLAGS -o main main.o -lc -lm -lnosys -lrdimon
$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
......@@ -5,5 +5,6 @@ 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
#!/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-rk33xx-elf
fi
if test -z "$TOOLCHAIN_PATH"; then
export TOOLCHAIN_PATH=/opt/toolchains/aarch64-RK33XX-elf-newlib/1.2.3
fi
#
# END of default common variables.
#
#################################################################
......@@ -5,10 +5,12 @@
export PATH=$TOOLCHAIN_PATH/bin:$PATH
DEBUG_FLAGS="-gdwarf-2"
ARCH_FLAGS="-march=armv8-a -mcpu=cortex-a53 -mlittle-endian"
ARCH_FLAGS=" -march=armv8-a -mcpu=cortex-a53 -mabi=lp64 -mlittle-endian"
$TARGET-gcc -g $DEBUG_FLAGS -fomit-frame-pointer -I$TOOLCHAIN_PATH/$TARGET/include -c -o main.o main.c
$TARGET-gcc $ARCH_FLAGS -o main main.o -lc -lm -lnosys -lrdimon
$TARGET-gcc -g $DEBUG_FLAGS $ARCH_FLAGS -fomit-frame-pointer -I$TOOLCHAIN_PATH/$TARGET/include -c -o main.o main.c
$TARGET-gcc $DEBUG_FLAGS $ARCH_FLAGS -o main main.o -lc -lm -lnosys -lrdimon
$TARGET-objdump -x main > main.map
$TARGET-strip main -o main.elf
......
#!/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 );
}
......@@ -4,7 +4,7 @@
export PATH=$TOOLCHAIN_PATH/bin:$PATH
ARCH_FLAGS=" -march=armv8-a -mcpu=cortex-a53"
ARCH_FLAGS=" -march=armv8-a -mcpu=cortex-a53 -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
......
#!/bin/bash
. ./.config
export PATH=$TOOLCHAIN_PATH/bin:$PATH
DEBUG_FLAGS="-gdwarf-2"
ARCH_FLAGS="-march=armv8-a -mcpu=cortex-a53 -mabi=ilp32 -mlittle-endian"
$TARGET-gcc -g $DEBUG_FLAGS $ARCH_FLAGS -fomit-frame-pointer -I$TOOLCHAIN_PATH/$TARGET/include -c -o main.o main.c
$TARGET-gcc $DEBUG_FLAGS $ARCH_FLAGS -o main main.o -lc -lm -lnosys -lrdimon
$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 );
}
#!/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-s9xx-elf
fi
if test -z "$TOOLCHAIN_PATH"; then
export TOOLCHAIN_PATH=/opt/toolchains/aarch64-S9XX-elf-newlib/1.2.3
fi
#
# END of default common variables.
#
#################################################################
......@@ -5,10 +5,10 @@
export PATH=$TOOLCHAIN_PATH/bin:$PATH
DEBUG_FLAGS="-gdwarf-2"
ARCH_FLAGS="-march=armv8-a -mcpu=cortex-a53 -mlittle-endian"
ARCH_FLAGS="-march=armv8-a -mcpu=cortex-a53 -mabi=lp64 -mlittle-endian"
$TARGET-gcc -g $DEBUG_FLAGS -fomit-frame-pointer -I$TOOLCHAIN_PATH/$TARGET/include -c -o main.o main.c
$TARGET-gcc $ARCH_FLAGS -o main main.o -lc -lm -lnosys -lrdimon
$TARGET-gcc -g $DEBUG_FLAGS $ARCH_FLAGS -fomit-frame-pointer -I$TOOLCHAIN_PATH/$TARGET/include -c -o main.o main.c
$TARGET-gcc $DEBUG_FLAGS $ARCH_FLAGS -o main main.o -lc -lm -lnosys -lrdimon
$TARGET-objdump -x main > main.map
......
#!/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 );
}
......@@ -6,7 +6,6 @@ export PATH=$TOOLCHAIN_PATH/bin:$PATH
$TARGET-gcc -m32 -g -gdwarf-2 -fomit-frame-pointer -I$TOOLCHAIN_PATH/$TARGET/sys-root/usr/include -c -o main.o main.c
$TARGET-gcc -m32 -o main main.o
#$TARGET-gcc -L$TOOLCHAIN_PATH/$TARGET/sys-root/usr/lib64 -o main main.o
$TARGET-objdump -x main > main.map
......
......@@ -6,7 +6,6 @@ export PATH=$TOOLCHAIN_PATH/bin:$PATH
$TARGET-gcc -g -gdwarf-2 -fomit-frame-pointer -I$TOOLCHAIN_PATH/$TARGET/sys-root/usr/include -c -o main.o main.c
$TARGET-gcc -o main main.o
#$TARGET-gcc -L$TOOLCHAIN_PATH/$TARGET/sys-root/usr/lib64 -o main main.o
$TARGET-objdump -x main > main.map
......
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