-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
8139303: aarch32: add support for ARM aarch32
Initial port of template interpreter to aarch32 Reviewed-by: duke
- Loading branch information
Nikolay Gorshkov
authored and
Ed Nevill
committed
Dec 30, 2015
1 parent
a24ad21
commit db1c6d4
Showing
8 changed files
with
130 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
#!/bin/sh | ||
# | ||
# Wrapper script that calls the real pkg-config with the relocated | ||
# sysroot location | ||
# | ||
# Wrapper derived from raspberry crosstool and modified to take SYSROOT | ||
# env variable from outside instead of computing via gcc -print-sysroot, | ||
# which produces wrong output if called without CFLAGS which contain --sysroot | ||
# Computing with CFLAGS not used, as pkg-config, in general, should not rely | ||
# on CC, CFLAGS, ... | ||
# However, we need to CC env defined to compute pkg-config-real executable. | ||
# CC could be not used, if this script placed in raspberry crosstool's bin/. | ||
|
||
set -e | ||
|
||
if [ ! $SYSROOT ] || [ ! $CC ]; then | ||
echo "No SYSROOT or CC env defined, exiting" | ||
exit 1 | ||
fi | ||
|
||
GCC="$CC" | ||
MACHINE=`"$GCC" -dumpmachine` | ||
|
||
#GCC could contain version like xxx-gcc-4.8.3, assuming xxx is equal to machine name | ||
PKG_CONFIG_REAL=${GCC%$MACHINE-*}$MACHINE-pkg-config-real | ||
|
||
export PKG_CONFIG_DIR= | ||
export PKG_CONFIG_LIBDIR="${SYSROOT}/usr/lib/${MACHINE}/pkgconfig":"${SYSROOT}/usr/lib/pkgconfig":"${SYSROOT}/usr/share/pkgconfig" | ||
export PKG_CONFIG_SYSROOT_DIR="${SYSROOT}" | ||
|
||
exec $PKG_CONFIG_REAL "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#!/bin/sh | ||
|
||
set -v | ||
|
||
LDFLAGS="--sysroot=$RASPI_ROOT" \ | ||
CFLAGS="--sysroot=$RASPI_ROOT" \ | ||
CXXFLAGS="--sysroot=$RASPI_ROOT" \ | ||
PKG_CONFIG_PATH=$PKG_CONFIG_PATH:"$RASPI_ROOT/usr/lib/arm-linux-gnueabihf/pkgconfig" \ | ||
PKG_CONFIG=$PWD/cross-pkg-config \ | ||
SYSROOT=$RASPI_ROOT \ | ||
bash configure \ | ||
CC=arm-linux-gnueabihf-gcc \ | ||
CXX=arm-linux-gnueabihf-g++ \ | ||
BUILD_CC=gcc \ | ||
BUILD_LD=gcc \ | ||
--with-sys-root=$RASPI_ROOT \ | ||
--with-freetype-include=$RASPI_ROOT/usr/include/freetype2/ \ | ||
--with-freetype-lib=$RASPI_ROOT/usr/lib/arm-linux-gnueabihf \ | ||
--x-includes=$RASPI_ROOT/usr/include/ \ | ||
--x-libraries=$RASPI_ROOT/usr/lib \ | ||
--disable-precompiled-headers \ | ||
--with-extra-cflags=--sysroot=$RASPI_ROOT \ | ||
--with-extra-cxxflags=--sysroot=$RASPI_ROOT \ | ||
--with-extra-ldflags=--sysroot=$RASPI_ROOT \ | ||
--openjdk-target=aarch32-linux-gnueabihf \ | ||
"$@" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/bin/sh | ||
|
||
set -v | ||
|
||
CFLAGS="--sysroot=$RASPI_ROOT" \ | ||
CXXFLAGS="--sysroot=$RASPI_ROOT" \ | ||
LDFLAGS="--sysroot=$RASPI_ROOT" \ | ||
BUILD_LD=gcc \ | ||
make \ | ||
OBJCOPY=/opt/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/arm-linux-gnueabihf-objcopy \ | ||
STRIP=/opt/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/arm-linux-gnueabihf-strip \ | ||
POST_STRIP_CMD="/opt/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/arm-linux-gnueabihf-strip -g" \ | ||
BUILD_LD=gcc \ | ||
"$@" |