Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff -ru OpenGD77.orig/firmware/Makefile OpenGD77/firmware/Makefile
- --- OpenGD77.orig/firmware/Makefile 2021-07-10 16:39:42.000000000 +0900
- +++ OpenGD77/firmware/Makefile 2022-03-06 19:14:29.061289991 +0900
- @@ -171,7 +171,7 @@
- ALL_SRC := $(SRC) $(OS_SRC) $(DEVICE_SRC) $(DRIVERS_SRC)
- CONFIGS := $(TARGET) -Wall -fno-common -g3 -ffunction-sections \
- -fdata-sections -ffreestanding -fno-builtin \
- - -fmerge-constants -fstack-usage
- +# -fmerge-constants -fstack-usage
- REDLIB := 0
- ifeq ($(REDLIB), 1)
- @@ -200,7 +200,7 @@
- OZERO_OBJECTS := $(addprefix $(BUILD_DIR)/, $(addsuffix .o, $(basename $(OZERO_SOURCES))))
- CFLAGS := $(ALL_INC) -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb $(CONFIGS) \
- - $(DEFINES) $(EXCEPT) -c
- + $(DEFINES) $(EXCEPT) -c --target=arm-none-eabi -I/usr/arm-none-eabi/include
- AFLAGS := -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb
- LFLAGS := -nostdlib -Xlinker -Map="firmware.map" -Xlinker --gc-sections -Xlinker \
- @@ -211,7 +211,7 @@
- LINK_LIBS := $(LIBS)
- -CC := arm-none-eabi-gcc
- +CC := clang
- AS := arm-none-eabi-as
- CP := arm-none-eabi-objcopy
- SZ := arm-none-eabi-size
- diff -ru OpenGD77.orig/firmware/include/dmr_codec/codec.h OpenGD77/firmware/include/dmr_codec/codec.h
- --- OpenGD77.orig/firmware/include/dmr_codec/codec.h 2021-07-10 16:39:42.000000000 +0900
- +++ OpenGD77/firmware/include/dmr_codec/codec.h 2022-03-06 19:21:26.236296961 +0900
- @@ -41,7 +41,7 @@
- #define AMBE_ENCODE_ECC 0x00054228;
- */
- -#define AMBE_DECODE 0x0005543D;
- +#define AMBE_DECODE 0x0005543C;
- #define AMBE_ENCODE 0x00054F94;
- #define AMBE_ENCODE_ECC 0x0005534C;
- diff -ru OpenGD77.orig/firmware/source/semihost_hardfault.c OpenGD77/firmware/source/semihost_hardfault.c
- --- OpenGD77.orig/firmware/source/semihost_hardfault.c 2021-07-10 16:39:42.000000000 +0900
- +++ OpenGD77/firmware/source/semihost_hardfault.c 2022-03-06 19:37:39.115313214 +0900
- @@ -102,7 +102,12 @@
- "STR R1,[ R0,#0 ] \n" // R0 is at location 0 on stack
- // Return from hard fault handler to application
- "BX LR \n"
- - ".syntax divided\n") ;
- +#if defined(__clang__)
- + // LLVM/Clang: unified syntax only
- +#else
- + ".syntax divided\n"
- +#endif
- + ) ;
- }
- #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement