mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-06-17 15:34:18 +08:00
Move ARCH correction up
This commit is contained in:
parent
3f4359c68b
commit
aa92cb7d78
2
build.sh
2
build.sh
@ -81,7 +81,7 @@ if [ -z "$ARCH" ] && [ -n "$FILESYSTEM_CONFIG" ]; then
|
||||
aarch64) : ;;
|
||||
riscv64gc) : ;;
|
||||
i586) : ;;
|
||||
\?) ARCH=""; echo "Unknown Architecture, please specify x86_64, aarch64, risc64gc or i586";;
|
||||
\?) ARCH=""; echo "Unknown Architecture, please specify x86_64, aarch64, riscv64gc or i586";;
|
||||
esac
|
||||
fi
|
||||
|
||||
|
||||
@ -23,6 +23,10 @@ REPO_NONSTOP?=0
|
||||
REPO_OFFLINE?=0
|
||||
## Do not strip debug info for local build
|
||||
REPO_DEBUG?=0
|
||||
## Old config value that need to be corrected
|
||||
ifeq ($(ARCH),i686)
|
||||
ARCH=i586
|
||||
endif
|
||||
## Select filesystem config
|
||||
ifeq ($(BOARD),)
|
||||
FILESYSTEM_CONFIG?=config/$(ARCH)/$(CONFIG_NAME).toml
|
||||
@ -124,10 +128,6 @@ export RUST_COMPILER_RT_ROOT=$(ROOT)/rust/src/llvm-project/compiler-rt
|
||||
ifeq ($(ARCH),riscv64gc)
|
||||
export TARGET=riscv64gc-unknown-redox
|
||||
export GNU_TARGET=riscv64-unknown-redox
|
||||
else ifeq ($(ARCH),i686)
|
||||
ARCH=i586
|
||||
export TARGET=i586-unknown-redox
|
||||
export GNU_TARGET=i586-unknown-redox
|
||||
else
|
||||
export TARGET=$(ARCH)-unknown-redox
|
||||
export GNU_TARGET=$(ARCH)-unknown-redox
|
||||
|
||||
Loading…
Reference in New Issue
Block a user