From 91a23d808c17c7e49603bf456eba526409b9b67d Mon Sep 17 00:00:00 2001 From: Sean Cross Date: Sat, 6 Apr 2019 10:51:08 +0800 Subject: [PATCH] sw: Makefile: fix third_party and package naming With these changes, litex mode should now work. Signed-off-by: Sean Cross --- sw/Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sw/Makefile b/sw/Makefile index f9816f5..f11615b 100644 --- a/sw/Makefile +++ b/sw/Makefile @@ -1,5 +1,3 @@ -PACKAGE := foboot - GIT_VERSION := $(shell git describe --tags) TRGT ?= riscv64-unknown-elf- CC := $(TRGT)gcc @@ -22,17 +20,19 @@ LDSCRIPT := $(BASE_DIR)/ld/linker.ld LD_DIR := ../include/generated ADD_CFLAGS := -I../include -I$(BASE_DIR)/include -D__vexriscv__ -march=rv32im -mabi=ilp32 ADD_LFLAGS := +PACKAGE := bios else BASE_DIR := . LD_DIR := $(BASE_DIR)/ld LDSCRIPT := $(BASE_DIR)/ld/linker.ld ADD_CFLAGS := -I$(BASE_DIR)/include -D__vexriscv__ -march=rv32im -mabi=ilp32 ADD_LFLAGS := +PACKAGE := foboot endif LDSCRIPTS := $(LDSCRIPT) $(LD_DIR)/output_format.ld $(LD_DIR)/regions.ld SRC_DIR := $(BASE_DIR)/src -THIRD_PARTY := $(BASE_DIR)third_party +THIRD_PARTY := $(BASE_DIR)/third_party DBG_CFLAGS := -ggdb -g -DDEBUG -Wall DBG_LFLAGS := -ggdb -g -Wall CFLAGS := $(ADD_CFLAGS) \