From 53135eb7bcfe8789ae3ebbfe9fb7c244cbf0b2aa Mon Sep 17 00:00:00 2001 From: Michal Sieron Date: Wed, 4 Aug 2021 16:33:08 +0200 Subject: [PATCH] Add missing definitions if target is microwatt Picolibc compilation for powerpc was missing some defines. This adds them to gcc parameters --- litex/soc/software/libc/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/litex/soc/software/libc/Makefile b/litex/soc/software/libc/Makefile index dd516df1e..4d1caf625 100644 --- a/litex/soc/software/libc/Makefile +++ b/litex/soc/software/libc/Makefile @@ -13,6 +13,7 @@ else ifeq ($(CPU), mor1kx) CPUFAMILY = or1k else ifeq ($(CPU), microwatt) CPUFAMILY = powerpc + CFLAGS += -DLONG_LONG_MIN=LLONG_MIN -DLONG_LONG_MAX=LLONG_MAX -DLONG_LONG_MIN=LLONG_MIN -DULONG_LONG_MAX=ULLONG_MAX else ifeq ($(CPU), zynq7000) CPUFAMILY = arm else