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