mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-06-25 06:14:18 +08:00
Specify host in config.sh, not specific recipe
This commit is contained in:
parent
072917c5df
commit
219464b4d0
@ -2,7 +2,10 @@
|
||||
set -e
|
||||
|
||||
# Configuration
|
||||
export TARGET=x86_64-unknown-redox
|
||||
ARCH=x86_64
|
||||
export TARGET=$ARCH-unknown-redox
|
||||
HOST=$ARCH-elf-redox
|
||||
RUST_HOST=$ARCH-unknown-redox
|
||||
|
||||
# Automatic variables
|
||||
ROOT="$(cd `dirname "$0"` && pwd)"
|
||||
|
||||
@ -2,8 +2,6 @@ GIT=https://github.com/ids1024/curl.git
|
||||
BRANCH=redox
|
||||
BUILD_DEPENDS=(openssl)
|
||||
|
||||
HOST=x86_64-elf-redox
|
||||
|
||||
function recipe_version {
|
||||
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
|
||||
skip=1
|
||||
|
||||
@ -1,7 +1,6 @@
|
||||
GIT=https://github.com/redox-os/dash.git
|
||||
BRANCH=redox
|
||||
|
||||
HOST=x86_64-elf-redox
|
||||
export AR="${HOST}-ar"
|
||||
export AS="${HOST}-as"
|
||||
export CC="${HOST}-gcc"
|
||||
|
||||
@ -1,8 +1,6 @@
|
||||
VERSION=3.6
|
||||
TAR=http://ftp.gnu.org/gnu/diffutils/diffutils-$VERSION.tar.xz
|
||||
|
||||
HOST=x86_64-elf-redox
|
||||
|
||||
function recipe_version {
|
||||
echo "$VERSION"
|
||||
skip=1
|
||||
|
||||
@ -1,8 +1,6 @@
|
||||
VERSION=2.2.1
|
||||
TAR=http://downloads.sourceforge.net/project/expat/expat/$VERSION/expat-$VERSION.tar.bz2
|
||||
|
||||
HOST=x86_64-elf-redox
|
||||
|
||||
function recipe_version {
|
||||
echo "$VERSION"
|
||||
skip=1
|
||||
|
||||
@ -1,8 +1,6 @@
|
||||
GIT=https://github.com/redox-os/gawk
|
||||
BRANCH=redox
|
||||
|
||||
HOST=x86_64-elf-redox
|
||||
|
||||
function recipe_update {
|
||||
echo "skipping update"
|
||||
skip=1
|
||||
|
||||
@ -1,7 +1,6 @@
|
||||
GIT=https://github.com/redox-os/gcc.git
|
||||
BRANCH=redox
|
||||
|
||||
HOST=x86_64-elf-redox
|
||||
export AR="${HOST}-ar"
|
||||
export AS="${HOST}-as"
|
||||
export CC="${HOST}-gcc"
|
||||
@ -52,7 +51,7 @@ function recipe_clean {
|
||||
function recipe_stage {
|
||||
dest="$(realpath $1)"
|
||||
make DESTDIR="$dest" install-gcc install-target-libgcc install-target-libstdc++-v3
|
||||
find "$dest"/{bin,libexec} -exec x86_64-elf-redox-strip {} ';' 2> /dev/null
|
||||
find "$dest"/{bin,libexec} -exec $STRIP {} ';' 2> /dev/null
|
||||
ln -s "gcc" "$1/bin/cc"
|
||||
skip=1
|
||||
}
|
||||
|
||||
@ -2,8 +2,6 @@ VERSION=2.13.1
|
||||
TAR=https://www.kernel.org/pub/software/scm/git/git-$VERSION.tar.xz
|
||||
BUILD_DEPENDS=(zlib curl openssl expat)
|
||||
|
||||
HOST=x86_64-elf-redox
|
||||
|
||||
export AR="${HOST}-ar"
|
||||
export AS="${HOST}-as"
|
||||
export CC="${HOST}-gcc"
|
||||
|
||||
@ -1,6 +1,5 @@
|
||||
GIT=https://github.com/redox-os/binutils-gdb.git
|
||||
|
||||
HOST=x86_64-elf-redox
|
||||
export AR="${HOST}-ar"
|
||||
export AS="${HOST}-as"
|
||||
export CC="${HOST}-gcc"
|
||||
@ -24,7 +23,7 @@ function recipe_update {
|
||||
}
|
||||
|
||||
function recipe_build {
|
||||
./configure --host=${HOST} --target=${HOST} --prefix=/ --with-sysroot=/usr/x86_64-elf-redox --disable-gdb --disable-nls --disable-werror
|
||||
./configure --host=${HOST} --target=${HOST} --prefix=/ --with-sysroot=/usr/$HOST --disable-gdb --disable-nls --disable-werror
|
||||
make
|
||||
skip=1
|
||||
}
|
||||
@ -42,6 +41,6 @@ function recipe_clean {
|
||||
function recipe_stage {
|
||||
dest="$(realpath $1)"
|
||||
make DESTDIR="$dest" install
|
||||
find "$dest/bin" -exec x86_64-elf-redox-strip {} ';' 2> /dev/null
|
||||
find "$dest/bin" -exec $STRIP {} ';' 2> /dev/null
|
||||
skip=1
|
||||
}
|
||||
|
||||
@ -1,8 +1,6 @@
|
||||
VERSION=3.1
|
||||
TAR=https://ftp.gnu.org/gnu/grep/grep-$VERSION.tar.xz
|
||||
|
||||
HOST=x86_64-elf-redox
|
||||
|
||||
function recipe_version {
|
||||
echo "$VERSION"
|
||||
skip=1
|
||||
|
||||
@ -1,8 +1,6 @@
|
||||
VERSION=4.2.1
|
||||
TAR=https://ftp.gnu.org/gnu/make/make-$VERSION.tar.gz
|
||||
|
||||
HOST=x86_64-elf-redox
|
||||
|
||||
export AR="${HOST}-ar"
|
||||
export AS="${HOST}-as"
|
||||
export CC="${HOST}-gcc"
|
||||
|
||||
@ -1,8 +1,6 @@
|
||||
VERSION=5.3.1
|
||||
TAR=http://www.lua.org/ftp/lua-$VERSION.tar.gz
|
||||
|
||||
HOST=x86_64-elf-redox
|
||||
|
||||
function recipe_version {
|
||||
echo "$VERSION"
|
||||
skip=1
|
||||
|
||||
@ -1,8 +1,6 @@
|
||||
VERSION=2.13.01
|
||||
TAR=http://www.nasm.us/pub/nasm/releasebuilds/$VERSION/nasm-$VERSION.tar.gz
|
||||
|
||||
HOST=x86_64-elf-redox
|
||||
|
||||
function recipe_version {
|
||||
echo "$VERSION"
|
||||
skip=1
|
||||
|
||||
@ -1,8 +1,6 @@
|
||||
GIT=https://github.com/redox-os/newlib.git
|
||||
BRANCH=redox
|
||||
|
||||
HOST=x86_64-elf-redox
|
||||
|
||||
function recipe_version {
|
||||
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
|
||||
skip=1
|
||||
@ -46,7 +44,7 @@ function recipe_stage {
|
||||
dest="$(realpath $1)"
|
||||
make DESTDIR="$dest" install
|
||||
cd "$dest"
|
||||
mv x86_64-elf-redox/* ./
|
||||
rmdir x86_64-elf-redox
|
||||
mv $HOST/* ./
|
||||
rmdir $HOST
|
||||
skip=1
|
||||
}
|
||||
|
||||
@ -1,8 +1,6 @@
|
||||
GIT=https://github.com/ids1024/openssl.git
|
||||
BRANCH=redox
|
||||
|
||||
HOST=x86_64-elf-redox
|
||||
|
||||
function recipe_version {
|
||||
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
|
||||
skip=1
|
||||
@ -14,7 +12,7 @@ function recipe_update {
|
||||
}
|
||||
|
||||
function recipe_build {
|
||||
./Configure no-shared no-dgram redox-x86_64 --prefix="/"
|
||||
./Configure no-shared no-dgram redox-$ARCH --prefix="/"
|
||||
make -j"$(nproc)"
|
||||
skip=1
|
||||
}
|
||||
|
||||
@ -1,9 +1,6 @@
|
||||
VERSION=3.6.1
|
||||
TAR=https://www.python.org/ftp/python/$VERSION/Python-$VERSION.tar.xz
|
||||
|
||||
ARCH=x86_64
|
||||
HOST=x86_64-elf-redox
|
||||
|
||||
export AR="${HOST}-ar"
|
||||
export AS="${HOST}-as"
|
||||
export CC="${HOST}-gcc"
|
||||
|
||||
@ -1,13 +1,11 @@
|
||||
GIT=https://github.com/ids1024/rust.git
|
||||
BRANCH=compile-redox
|
||||
|
||||
ARCH=x86_64
|
||||
HOST=x86_64-elf-redox
|
||||
RUST_HOST=x86_64-unknown-redox
|
||||
LLVM_PREFIX=$PWD/build/llvm-root
|
||||
SYSROOT=/usr/x86_64-elf-redox
|
||||
SYSROOT=/usr/$HOST
|
||||
unset AR AS CC CXX LD NM OBJCOPY OBJDUMP RANLIB READELF STRIP
|
||||
|
||||
|
||||
LLVM_CMAKE_ARGS=(-Wno-dev -DCMAKE_CROSSCOMPILING=True -DCMAKE_INSTALL_PREFIX="$LLVM_PREFIX" -DLLVM_DEFAULT_TARGET_TRIPLE=$HOST -DLLVM_TARGET_ARCH=$ARCH -DLLVM_TARGETS_TO_BUILD=X86 -DCMAKE_SYSTEM_NAME=Generic -DPYTHON_EXECUTABLE=/usr/bin/python2 -DUNIX=1 -DLLVM_ENABLE_THREADS=Off -DLLVM_INCLUDE_TESTS=OFF -target=$HOST -DLLVM_TABLEGEN=/usr/bin/llvm-tblgen -I"$SYSROOT/include" -DCMAKE_CXX_FLAGS='--std=gnu++11' -DLLVM_TOOL_LTO_BUILD=Off -DLLVM_TOOL_LLVM_PROFDATA_BUILD=Off -DLLVM_TOOL_LLI_BUILD=Off -DLLVM_TOOL_RDOBJ_BUILD=Off -DLLVM_TOOL_LLVM_COV_BUILD=Off -DLLVM_TOOL_LLVM_XRAY_BUILD=Off -DLLVM_TOOL_LLVM_LTO2_BUILD=Off -DLLVM_TOOL_LLVM_LTO_BUILD=Off -DLLVM_TOOL_LLVM_RTDYLD_BUILD=Off)
|
||||
|
||||
function recipe_version {
|
||||
|
||||
@ -1,8 +1,6 @@
|
||||
VERSION=4.4
|
||||
TAR=http://ftp.gnu.org/gnu/sed/sed-$VERSION.tar.xz
|
||||
|
||||
HOST=x86_64-elf-redox
|
||||
|
||||
function recipe_version {
|
||||
echo "$VERSION"
|
||||
skip=1
|
||||
|
||||
Loading…
Reference in New Issue
Block a user