mcbin

mcbin.git
git clone git://git.lenczewski.org/mcbin.git
Log | Files | Refs | README

mv-ddr-clang-got.patch (971B)


      1 diff --git a/Makefile b/Makefile
      2 index 045284c..4733ba4 100644
      3 --- a/Makefile
      4 +++ b/Makefile
      5 @@ -313,8 +313,8 @@ else
      6  CROSS    = $(CROSS_COMPILE)
      7  
      8  LD       = $(CROSS)ld
      9 -CC       = $(CROSS)gcc
     10 -AS       = $(CROSS)gcc
     11 +CC       = $(CROSS)cc
     12 +AS       = $(CROSS)cc
     13  AR       = $(CROSS)ar
     14  OBJCOPY  = $(CROSS)objcopy
     15  OBJDUMP  = $(CROSS)objdump
     16 @@ -337,6 +337,14 @@ CFLAGS += -Wall -Werror -Os -ffreestanding -mlittle-endian -g -gdwarf-2 -nostdin
     17  CFLAGS += -march=armv8-a -fpie
     18  CFLAGS += $(call cc_option, --param=min-pagesize=0)
     19  
     20 +# clang fixes to compile cleanly on clang-20
     21 +CFLAGS += -target aarch64-arm-none-elf
     22 +CFLAGS += -Wno-unused-command-line-argument -Wno-unused-but-set-variable \
     23 +	  -Wno-enum-conversion -Wno-self-assign -Wno-shift-negative-value
     24 +
     25 +# clang fixes to stop .got blowing up
     26 +CFLAGS += -fno-pic -fno-pie -fvisibility=hidden
     27 +
     28  # PLATFORM is set in ble/ble.mk
     29  ifneq ($(findstring a80x0,$(PLATFORM)),)
     30  ifneq ($(findstring ocp,$(PLATFORM)),)