xref: /DragonStub/env.mk (revision 2604d7835e66d1fccc0973634b0121c7925e25f6)
1export ARCH?=riscv64
2
3ifeq ($(ARCH),riscv64)
4export CROSS_COMPILE?=riscv64-linux-gnu-
5else ifeq ($(ARCH),arm64)
6export CROSS_COMPILE?=aarch64-linux-gnu-
7else ifeq ($(ARCH),arm)
8export CROSS_COMPILE?=arm-linux-gnueabihf-
9else ifeq ($(ARCH),x86)
10export CROSS_COMPILE?=
11else
12	$(error "Unsupported ARCH: $(ARCH)")
13endif
14
15
16export TARGET_SYSROOT?=output/sysroot