Tried to get arm32 to work, but sysroot is missing getrandom, and no getrandom no libsodium as far as I understand. Everything compiles now, including the sample, tested kexe on arm64, runs and does sodium init at least

This commit is contained in:
Ugljesa Jovanovic authored and Ugljesa Jovanovic committed 2020-06-02 23:59:01 +02:00
1 parent 641d950384
commit 006dd47873
13 files changed
+83 -386

No files matched your search

+5 -5
View File
@@ -1,10 +1,10 @@
#! /bin/sh
export PREFIX="$(pwd)/static-arm32"
#export CC=/usr/bin/arm-none-eabi-gcc
export TARGET_ARCH=armv7
export SYSROOT="$HOME/.konan/dependencies/target-sysroot-2-raspberrypi --host=arm-none-eabi"
export SYSROOT=$HOME/.konan/dependencies/target-sysroot-2-raspberrypi
#export CFLAGS="-fno-stack-protector -mfpu=vfp -mfloat-abi=hard -I$SYSROOT/usr/include/c++/4.8.3 -I$SYSROOT/usr/include/c++/4.8.3/arm-linux-gnueabihf"
export CFLAGS=""
export LDFLAGS="--specs=nosys.specs"
export LDFLAGS=""
cd libsodium
./configure --prefix=$PREFIX --with-sysroot=$SYSROOT --host=arm-none-eabi "$@"
./autogen.sh -s -f
./configure --prefix=$PREFIX --with-sysroot=$SYSROOT --host=arm-linux-gnueabihf "$@"