Update kernel makefiles.
This commit is contained in:
@@ -3,19 +3,19 @@
|
|||||||
#
|
#
|
||||||
# DEBUG is set to -g by kconfig if debugging is requested (kconfig -g).
|
# DEBUG is set to -g by kconfig if debugging is requested (kconfig -g).
|
||||||
#
|
#
|
||||||
include ../gcc-config.mk
|
include ../clang-config.mk
|
||||||
|
|
||||||
AS = $(LLVMBIN)/clang -target mipsel -mcpu=mips32r2 ${DEBUG}
|
AS = $(LLVMBIN)clang -target mipsel -mcpu=mips32r2 ${DEBUG}
|
||||||
CC = -mabi=o32 -mfloat-abi=soft \
|
CC = -mabi=o32 -mfloat-abi=soft \
|
||||||
-nostdinc -fshort-double -fomit-frame-pointer -finline-hint-functions -I$(TOPSRC)/include
|
-nostdinc -fshort-double -fomit-frame-pointer -finline-hint-functions -I$(TOPSRC)/include
|
||||||
CC = $(LLVMBIN)/clang -target mipsel -mcpu=mips32r2 -mabi=o32 -mfloat-abi=soft \
|
CC = $(LLVMBIN)clang -target mipsel -mcpu=mips32r2 -mabi=o32 -mfloat-abi=soft \
|
||||||
${DEBUG} -nostdinc -fno-builtin -Werror -Wall
|
${DEBUG} -nostdinc -fno-builtin -Werror -Wall
|
||||||
CPP = $(LLVMBIN)/clang-cpp
|
CPP = $(LLVMBIN)clang-cpp
|
||||||
LD = /usr/lib/llvm-12/bin/ld.lld -m elf32ltsmip
|
LD = /usr/lib/llvm-12/bin/ld.lld -m elf32ltsmip
|
||||||
LDFLAGS = -nostdlib -T ../${LDSCRIPT} -Wl,-Map=$(basename $@).map
|
LDFLAGS = -nostdlib -T ../${LDSCRIPT} -Wl,-Map=$(basename $@).map
|
||||||
SIZE = $(LLVMBIN)/llvm-size
|
SIZE = $(LLVMBIN)llvm-size
|
||||||
OBJCOPY = $(LLVMBIN)/llvm-objcopy
|
OBJCOPY = $(LLVMBIN)llvm-objcopy
|
||||||
OBJDUMP = $(LLVMBIN)/llvm-objdump
|
OBJDUMP = $(LLVMBIN)llvm-objdump
|
||||||
|
|
||||||
# sources are located via $S relative to the compilation directory
|
# sources are located via $S relative to the compilation directory
|
||||||
S = ../..
|
S = ../..
|
||||||
|
|||||||
@@ -18,20 +18,19 @@ LDSCRIPT = "baremetal/script.ld"
|
|||||||
#
|
#
|
||||||
# DEBUG is set to -g by kconfig if debugging is requested (kconfig -g).
|
# DEBUG is set to -g by kconfig if debugging is requested (kconfig -g).
|
||||||
#
|
#
|
||||||
include ../gcc-config.mk
|
include ../clang-config.mk
|
||||||
|
|
||||||
AS = ${MIPS_GCC_PREFIX}as ${DEBUG} -mips32r2 -EL
|
AS = $(LLVMBIN)clang -target mipsel -mcpu=mips32r2 ${DEBUG}
|
||||||
CC = ${MIPS_GCC_PREFIX}gcc ${DEBUG} -mips32r2 -EL -nostdinc -fno-builtin -Werror -Wall
|
CC = -mabi=o32 -mfloat-abi=soft \
|
||||||
CPP = ${MIPS_GCC_PREFIX}cpp
|
-nostdinc -fshort-double -fomit-frame-pointer -finline-hint-functions -I$(TOPSRC)/include
|
||||||
LD = ${MIPS_GCC_PREFIX}gcc -mips32r2 -EL
|
CC = $(LLVMBIN)clang -target mipsel -mcpu=mips32r2 -mabi=o32 -mfloat-abi=soft \
|
||||||
|
${DEBUG} -nostdinc -fno-builtin -Werror -Wall
|
||||||
|
CPP = $(LLVMBIN)clang-cpp
|
||||||
|
LD = /usr/lib/llvm-12/bin/ld.lld -m elf32ltsmip
|
||||||
LDFLAGS = -nostdlib -T ../${LDSCRIPT} -Wl,-Map=$(basename $@).map
|
LDFLAGS = -nostdlib -T ../${LDSCRIPT} -Wl,-Map=$(basename $@).map
|
||||||
SIZE = ${MIPS_GCC_PREFIX}size
|
SIZE = $(LLVMBIN)llvm-size
|
||||||
OBJCOPY = ${MIPS_GCC_PREFIX}objcopy
|
OBJCOPY = $(LLVMBIN)llvm-objcopy
|
||||||
OBJDUMP = ${MIPS_GCC_PREFIX}objdump
|
OBJDUMP = $(LLVMBIN)llvm-objdump
|
||||||
|
|
||||||
ifneq (${MIPS_GCC_FORMAT},)
|
|
||||||
LDFLAGS += -Wl,--oformat=${MIPS_GCC_FORMAT}
|
|
||||||
endif
|
|
||||||
|
|
||||||
# sources are located via $S relative to the compilation directory
|
# sources are located via $S relative to the compilation directory
|
||||||
S = ../..
|
S = ../..
|
||||||
|
|||||||
@@ -27,20 +27,19 @@ LDSCRIPT = "maximite/bootloader.ld"
|
|||||||
#
|
#
|
||||||
# DEBUG is set to -g by kconfig if debugging is requested (kconfig -g).
|
# DEBUG is set to -g by kconfig if debugging is requested (kconfig -g).
|
||||||
#
|
#
|
||||||
include ../gcc-config.mk
|
include ../clang-config.mk
|
||||||
|
|
||||||
AS = ${MIPS_GCC_PREFIX}as ${DEBUG} -mips32r2 -EL
|
AS = $(LLVMBIN)clang -target mipsel -mcpu=mips32r2 ${DEBUG}
|
||||||
CC = ${MIPS_GCC_PREFIX}gcc ${DEBUG} -mips32r2 -EL -nostdinc -fno-builtin -Werror -Wall
|
CC = -mabi=o32 -mfloat-abi=soft \
|
||||||
CPP = ${MIPS_GCC_PREFIX}cpp
|
-nostdinc -fshort-double -fomit-frame-pointer -finline-hint-functions -I$(TOPSRC)/include
|
||||||
LD = ${MIPS_GCC_PREFIX}gcc -mips32r2 -EL
|
CC = $(LLVMBIN)clang -target mipsel -mcpu=mips32r2 -mabi=o32 -mfloat-abi=soft \
|
||||||
|
${DEBUG} -nostdinc -fno-builtin -Werror -Wall
|
||||||
|
CPP = $(LLVMBIN)clang-cpp
|
||||||
|
LD = /usr/lib/llvm-12/bin/ld.lld -m elf32ltsmip
|
||||||
LDFLAGS = -nostdlib -T ../${LDSCRIPT} -Wl,-Map=$(basename $@).map
|
LDFLAGS = -nostdlib -T ../${LDSCRIPT} -Wl,-Map=$(basename $@).map
|
||||||
SIZE = ${MIPS_GCC_PREFIX}size
|
SIZE = $(LLVMBIN)llvm-size
|
||||||
OBJCOPY = ${MIPS_GCC_PREFIX}objcopy
|
OBJCOPY = $(LLVMBIN)llvm-objcopy
|
||||||
OBJDUMP = ${MIPS_GCC_PREFIX}objdump
|
OBJDUMP = $(LLVMBIN)llvm-objdump
|
||||||
|
|
||||||
ifneq (${MIPS_GCC_FORMAT},)
|
|
||||||
LDFLAGS += -Wl,--oformat=${MIPS_GCC_FORMAT}
|
|
||||||
endif
|
|
||||||
|
|
||||||
# sources are located via $S relative to the compilation directory
|
# sources are located via $S relative to the compilation directory
|
||||||
S = ../..
|
S = ../..
|
||||||
|
|||||||
@@ -40,20 +40,19 @@ LDSCRIPT = "maximite/bootloader.ld"
|
|||||||
#
|
#
|
||||||
# DEBUG is set to -g by kconfig if debugging is requested (kconfig -g).
|
# DEBUG is set to -g by kconfig if debugging is requested (kconfig -g).
|
||||||
#
|
#
|
||||||
include ../gcc-config.mk
|
include ../clang-config.mk
|
||||||
|
|
||||||
AS = ${MIPS_GCC_PREFIX}as ${DEBUG} -mips32r2 -EL
|
AS = $(LLVMBIN)clang -target mipsel -mcpu=mips32r2 ${DEBUG}
|
||||||
CC = ${MIPS_GCC_PREFIX}gcc ${DEBUG} -mips32r2 -EL -nostdinc -fno-builtin -Werror -Wall
|
CC = -mabi=o32 -mfloat-abi=soft \
|
||||||
CPP = ${MIPS_GCC_PREFIX}cpp
|
-nostdinc -fshort-double -fomit-frame-pointer -finline-hint-functions -I$(TOPSRC)/include
|
||||||
LD = ${MIPS_GCC_PREFIX}gcc -mips32r2 -EL
|
CC = $(LLVMBIN)clang -target mipsel -mcpu=mips32r2 -mabi=o32 -mfloat-abi=soft \
|
||||||
|
${DEBUG} -nostdinc -fno-builtin -Werror -Wall
|
||||||
|
CPP = $(LLVMBIN)clang-cpp
|
||||||
|
LD = /usr/lib/llvm-12/bin/ld.lld -m elf32ltsmip
|
||||||
LDFLAGS = -nostdlib -T ../${LDSCRIPT} -Wl,-Map=$(basename $@).map
|
LDFLAGS = -nostdlib -T ../${LDSCRIPT} -Wl,-Map=$(basename $@).map
|
||||||
SIZE = ${MIPS_GCC_PREFIX}size
|
SIZE = $(LLVMBIN)llvm-size
|
||||||
OBJCOPY = ${MIPS_GCC_PREFIX}objcopy
|
OBJCOPY = $(LLVMBIN)llvm-objcopy
|
||||||
OBJDUMP = ${MIPS_GCC_PREFIX}objdump
|
OBJDUMP = $(LLVMBIN)llvm-objdump
|
||||||
|
|
||||||
ifneq (${MIPS_GCC_FORMAT},)
|
|
||||||
LDFLAGS += -Wl,--oformat=${MIPS_GCC_FORMAT}
|
|
||||||
endif
|
|
||||||
|
|
||||||
# sources are located via $S relative to the compilation directory
|
# sources are located via $S relative to the compilation directory
|
||||||
S = ../..
|
S = ../..
|
||||||
|
|||||||
@@ -28,20 +28,19 @@ LDSCRIPT = "baremetal/script.ld"
|
|||||||
#
|
#
|
||||||
# DEBUG is set to -g by kconfig if debugging is requested (kconfig -g).
|
# DEBUG is set to -g by kconfig if debugging is requested (kconfig -g).
|
||||||
#
|
#
|
||||||
include ../gcc-config.mk
|
include ../clang-config.mk
|
||||||
|
|
||||||
AS = ${MIPS_GCC_PREFIX}as ${DEBUG} -mips32r2 -EL
|
AS = $(LLVMBIN)clang -target mipsel -mcpu=mips32r2 ${DEBUG}
|
||||||
CC = ${MIPS_GCC_PREFIX}gcc ${DEBUG} -mips32r2 -EL -nostdinc -fno-builtin -Werror -Wall
|
CC = -mabi=o32 -mfloat-abi=soft \
|
||||||
CPP = ${MIPS_GCC_PREFIX}cpp
|
-nostdinc -fshort-double -fomit-frame-pointer -finline-hint-functions -I$(TOPSRC)/include
|
||||||
LD = ${MIPS_GCC_PREFIX}gcc -mips32r2 -EL
|
CC = $(LLVMBIN)clang -target mipsel -mcpu=mips32r2 -mabi=o32 -mfloat-abi=soft \
|
||||||
|
${DEBUG} -nostdinc -fno-builtin -Werror -Wall
|
||||||
|
CPP = $(LLVMBIN)clang-cpp
|
||||||
|
LD = /usr/lib/llvm-12/bin/ld.lld -m elf32ltsmip
|
||||||
LDFLAGS = -nostdlib -T ../${LDSCRIPT} -Wl,-Map=$(basename $@).map
|
LDFLAGS = -nostdlib -T ../${LDSCRIPT} -Wl,-Map=$(basename $@).map
|
||||||
SIZE = ${MIPS_GCC_PREFIX}size
|
SIZE = $(LLVMBIN)llvm-size
|
||||||
OBJCOPY = ${MIPS_GCC_PREFIX}objcopy
|
OBJCOPY = $(LLVMBIN)llvm-objcopy
|
||||||
OBJDUMP = ${MIPS_GCC_PREFIX}objdump
|
OBJDUMP = $(LLVMBIN)llvm-objdump
|
||||||
|
|
||||||
ifneq (${MIPS_GCC_FORMAT},)
|
|
||||||
LDFLAGS += -Wl,--oformat=${MIPS_GCC_FORMAT}
|
|
||||||
endif
|
|
||||||
|
|
||||||
# sources are located via $S relative to the compilation directory
|
# sources are located via $S relative to the compilation directory
|
||||||
S = ../..
|
S = ../..
|
||||||
|
|||||||
@@ -27,20 +27,19 @@ LDSCRIPT = "max32/bootloader.ld"
|
|||||||
#
|
#
|
||||||
# DEBUG is set to -g by kconfig if debugging is requested (kconfig -g).
|
# DEBUG is set to -g by kconfig if debugging is requested (kconfig -g).
|
||||||
#
|
#
|
||||||
include ../gcc-config.mk
|
include ../clang-config.mk
|
||||||
|
|
||||||
AS = ${MIPS_GCC_PREFIX}as ${DEBUG} -mips32r2 -EL
|
AS = $(LLVMBIN)clang -target mipsel -mcpu=mips32r2 ${DEBUG}
|
||||||
CC = ${MIPS_GCC_PREFIX}gcc ${DEBUG} -mips32r2 -EL -nostdinc -fno-builtin -Werror -Wall
|
CC = -mabi=o32 -mfloat-abi=soft \
|
||||||
CPP = ${MIPS_GCC_PREFIX}cpp
|
-nostdinc -fshort-double -fomit-frame-pointer -finline-hint-functions -I$(TOPSRC)/include
|
||||||
LD = ${MIPS_GCC_PREFIX}gcc -mips32r2 -EL
|
CC = $(LLVMBIN)clang -target mipsel -mcpu=mips32r2 -mabi=o32 -mfloat-abi=soft \
|
||||||
|
${DEBUG} -nostdinc -fno-builtin -Werror -Wall
|
||||||
|
CPP = $(LLVMBIN)clang-cpp
|
||||||
|
LD = /usr/lib/llvm-12/bin/ld.lld -m elf32ltsmip
|
||||||
LDFLAGS = -nostdlib -T ../${LDSCRIPT} -Wl,-Map=$(basename $@).map
|
LDFLAGS = -nostdlib -T ../${LDSCRIPT} -Wl,-Map=$(basename $@).map
|
||||||
SIZE = ${MIPS_GCC_PREFIX}size
|
SIZE = $(LLVMBIN)llvm-size
|
||||||
OBJCOPY = ${MIPS_GCC_PREFIX}objcopy
|
OBJCOPY = $(LLVMBIN)llvm-objcopy
|
||||||
OBJDUMP = ${MIPS_GCC_PREFIX}objdump
|
OBJDUMP = $(LLVMBIN)llvm-objdump
|
||||||
|
|
||||||
ifneq (${MIPS_GCC_FORMAT},)
|
|
||||||
LDFLAGS += -Wl,--oformat=${MIPS_GCC_FORMAT}
|
|
||||||
endif
|
|
||||||
|
|
||||||
# sources are located via $S relative to the compilation directory
|
# sources are located via $S relative to the compilation directory
|
||||||
S = ../..
|
S = ../..
|
||||||
|
|||||||
@@ -27,20 +27,19 @@ LDSCRIPT = "max32/bootloader.ld"
|
|||||||
#
|
#
|
||||||
# DEBUG is set to -g by kconfig if debugging is requested (kconfig -g).
|
# DEBUG is set to -g by kconfig if debugging is requested (kconfig -g).
|
||||||
#
|
#
|
||||||
include ../gcc-config.mk
|
include ../clang-config.mk
|
||||||
|
|
||||||
AS = ${MIPS_GCC_PREFIX}as ${DEBUG} -mips32r2 -EL
|
AS = $(LLVMBIN)clang -target mipsel -mcpu=mips32r2 ${DEBUG}
|
||||||
CC = ${MIPS_GCC_PREFIX}gcc ${DEBUG} -mips32r2 -EL -nostdinc -fno-builtin -Werror -Wall
|
CC = -mabi=o32 -mfloat-abi=soft \
|
||||||
CPP = ${MIPS_GCC_PREFIX}cpp
|
-nostdinc -fshort-double -fomit-frame-pointer -finline-hint-functions -I$(TOPSRC)/include
|
||||||
LD = ${MIPS_GCC_PREFIX}gcc -mips32r2 -EL
|
CC = $(LLVMBIN)clang -target mipsel -mcpu=mips32r2 -mabi=o32 -mfloat-abi=soft \
|
||||||
|
${DEBUG} -nostdinc -fno-builtin -Werror -Wall
|
||||||
|
CPP = $(LLVMBIN)clang-cpp
|
||||||
|
LD = /usr/lib/llvm-12/bin/ld.lld -m elf32ltsmip
|
||||||
LDFLAGS = -nostdlib -T ../${LDSCRIPT} -Wl,-Map=$(basename $@).map
|
LDFLAGS = -nostdlib -T ../${LDSCRIPT} -Wl,-Map=$(basename $@).map
|
||||||
SIZE = ${MIPS_GCC_PREFIX}size
|
SIZE = $(LLVMBIN)llvm-size
|
||||||
OBJCOPY = ${MIPS_GCC_PREFIX}objcopy
|
OBJCOPY = $(LLVMBIN)llvm-objcopy
|
||||||
OBJDUMP = ${MIPS_GCC_PREFIX}objdump
|
OBJDUMP = $(LLVMBIN)llvm-objdump
|
||||||
|
|
||||||
ifneq (${MIPS_GCC_FORMAT},)
|
|
||||||
LDFLAGS += -Wl,--oformat=${MIPS_GCC_FORMAT}
|
|
||||||
endif
|
|
||||||
|
|
||||||
# sources are located via $S relative to the compilation directory
|
# sources are located via $S relative to the compilation directory
|
||||||
S = ../..
|
S = ../..
|
||||||
|
|||||||
@@ -26,20 +26,19 @@ LDSCRIPT = "maximite-color/bootloader.ld"
|
|||||||
#
|
#
|
||||||
# DEBUG is set to -g by kconfig if debugging is requested (kconfig -g).
|
# DEBUG is set to -g by kconfig if debugging is requested (kconfig -g).
|
||||||
#
|
#
|
||||||
include ../gcc-config.mk
|
include ../clang-config.mk
|
||||||
|
|
||||||
AS = ${MIPS_GCC_PREFIX}as ${DEBUG} -mips32r2 -EL
|
AS = $(LLVMBIN)clang -target mipsel -mcpu=mips32r2 ${DEBUG}
|
||||||
CC = ${MIPS_GCC_PREFIX}gcc ${DEBUG} -mips32r2 -EL -nostdinc -fno-builtin -Werror -Wall
|
CC = -mabi=o32 -mfloat-abi=soft \
|
||||||
CPP = ${MIPS_GCC_PREFIX}cpp
|
-nostdinc -fshort-double -fomit-frame-pointer -finline-hint-functions -I$(TOPSRC)/include
|
||||||
LD = ${MIPS_GCC_PREFIX}gcc -mips32r2 -EL
|
CC = $(LLVMBIN)clang -target mipsel -mcpu=mips32r2 -mabi=o32 -mfloat-abi=soft \
|
||||||
|
${DEBUG} -nostdinc -fno-builtin -Werror -Wall
|
||||||
|
CPP = $(LLVMBIN)clang-cpp
|
||||||
|
LD = /usr/lib/llvm-12/bin/ld.lld -m elf32ltsmip
|
||||||
LDFLAGS = -nostdlib -T ../${LDSCRIPT} -Wl,-Map=$(basename $@).map
|
LDFLAGS = -nostdlib -T ../${LDSCRIPT} -Wl,-Map=$(basename $@).map
|
||||||
SIZE = ${MIPS_GCC_PREFIX}size
|
SIZE = $(LLVMBIN)llvm-size
|
||||||
OBJCOPY = ${MIPS_GCC_PREFIX}objcopy
|
OBJCOPY = $(LLVMBIN)llvm-objcopy
|
||||||
OBJDUMP = ${MIPS_GCC_PREFIX}objdump
|
OBJDUMP = $(LLVMBIN)llvm-objdump
|
||||||
|
|
||||||
ifneq (${MIPS_GCC_FORMAT},)
|
|
||||||
LDFLAGS += -Wl,--oformat=${MIPS_GCC_FORMAT}
|
|
||||||
endif
|
|
||||||
|
|
||||||
# sources are located via $S relative to the compilation directory
|
# sources are located via $S relative to the compilation directory
|
||||||
S = ../..
|
S = ../..
|
||||||
|
|||||||
@@ -26,20 +26,19 @@ LDSCRIPT = "maximite/bootloader.ld"
|
|||||||
#
|
#
|
||||||
# DEBUG is set to -g by kconfig if debugging is requested (kconfig -g).
|
# DEBUG is set to -g by kconfig if debugging is requested (kconfig -g).
|
||||||
#
|
#
|
||||||
include ../gcc-config.mk
|
include ../clang-config.mk
|
||||||
|
|
||||||
AS = ${MIPS_GCC_PREFIX}as ${DEBUG} -mips32r2 -EL
|
AS = $(LLVMBIN)clang -target mipsel -mcpu=mips32r2 ${DEBUG}
|
||||||
CC = ${MIPS_GCC_PREFIX}gcc ${DEBUG} -mips32r2 -EL -nostdinc -fno-builtin -Werror -Wall
|
CC = -mabi=o32 -mfloat-abi=soft \
|
||||||
CPP = ${MIPS_GCC_PREFIX}cpp
|
-nostdinc -fshort-double -fomit-frame-pointer -finline-hint-functions -I$(TOPSRC)/include
|
||||||
LD = ${MIPS_GCC_PREFIX}gcc -mips32r2 -EL
|
CC = $(LLVMBIN)clang -target mipsel -mcpu=mips32r2 -mabi=o32 -mfloat-abi=soft \
|
||||||
|
${DEBUG} -nostdinc -fno-builtin -Werror -Wall
|
||||||
|
CPP = $(LLVMBIN)clang-cpp
|
||||||
|
LD = /usr/lib/llvm-12/bin/ld.lld -m elf32ltsmip
|
||||||
LDFLAGS = -nostdlib -T ../${LDSCRIPT} -Wl,-Map=$(basename $@).map
|
LDFLAGS = -nostdlib -T ../${LDSCRIPT} -Wl,-Map=$(basename $@).map
|
||||||
SIZE = ${MIPS_GCC_PREFIX}size
|
SIZE = $(LLVMBIN)llvm-size
|
||||||
OBJCOPY = ${MIPS_GCC_PREFIX}objcopy
|
OBJCOPY = $(LLVMBIN)llvm-objcopy
|
||||||
OBJDUMP = ${MIPS_GCC_PREFIX}objdump
|
OBJDUMP = $(LLVMBIN)llvm-objdump
|
||||||
|
|
||||||
ifneq (${MIPS_GCC_FORMAT},)
|
|
||||||
LDFLAGS += -Wl,--oformat=${MIPS_GCC_FORMAT}
|
|
||||||
endif
|
|
||||||
|
|
||||||
# sources are located via $S relative to the compilation directory
|
# sources are located via $S relative to the compilation directory
|
||||||
S = ../..
|
S = ../..
|
||||||
|
|||||||
@@ -30,20 +30,19 @@ LDSCRIPT = "mmb-mx7/bootloader.ld"
|
|||||||
#
|
#
|
||||||
# DEBUG is set to -g by kconfig if debugging is requested (kconfig -g).
|
# DEBUG is set to -g by kconfig if debugging is requested (kconfig -g).
|
||||||
#
|
#
|
||||||
include ../gcc-config.mk
|
include ../clang-config.mk
|
||||||
|
|
||||||
AS = ${MIPS_GCC_PREFIX}as ${DEBUG} -mips32r2 -EL
|
AS = $(LLVMBIN)clang -target mipsel -mcpu=mips32r2 ${DEBUG}
|
||||||
CC = ${MIPS_GCC_PREFIX}gcc ${DEBUG} -mips32r2 -EL -nostdinc -fno-builtin -Werror -Wall
|
CC = -mabi=o32 -mfloat-abi=soft \
|
||||||
CPP = ${MIPS_GCC_PREFIX}cpp
|
-nostdinc -fshort-double -fomit-frame-pointer -finline-hint-functions -I$(TOPSRC)/include
|
||||||
LD = ${MIPS_GCC_PREFIX}gcc -mips32r2 -EL
|
CC = $(LLVMBIN)clang -target mipsel -mcpu=mips32r2 -mabi=o32 -mfloat-abi=soft \
|
||||||
|
${DEBUG} -nostdinc -fno-builtin -Werror -Wall
|
||||||
|
CPP = $(LLVMBIN)clang-cpp
|
||||||
|
LD = /usr/lib/llvm-12/bin/ld.lld -m elf32ltsmip
|
||||||
LDFLAGS = -nostdlib -T ../${LDSCRIPT} -Wl,-Map=$(basename $@).map
|
LDFLAGS = -nostdlib -T ../${LDSCRIPT} -Wl,-Map=$(basename $@).map
|
||||||
SIZE = ${MIPS_GCC_PREFIX}size
|
SIZE = $(LLVMBIN)llvm-size
|
||||||
OBJCOPY = ${MIPS_GCC_PREFIX}objcopy
|
OBJCOPY = $(LLVMBIN)llvm-objcopy
|
||||||
OBJDUMP = ${MIPS_GCC_PREFIX}objdump
|
OBJDUMP = $(LLVMBIN)llvm-objdump
|
||||||
|
|
||||||
ifneq (${MIPS_GCC_FORMAT},)
|
|
||||||
LDFLAGS += -Wl,--oformat=${MIPS_GCC_FORMAT}
|
|
||||||
endif
|
|
||||||
|
|
||||||
# sources are located via $S relative to the compilation directory
|
# sources are located via $S relative to the compilation directory
|
||||||
S = ../..
|
S = ../..
|
||||||
|
|||||||
@@ -26,20 +26,19 @@ LDSCRIPT = "max32/bootloader.ld"
|
|||||||
#
|
#
|
||||||
# DEBUG is set to -g by kconfig if debugging is requested (kconfig -g).
|
# DEBUG is set to -g by kconfig if debugging is requested (kconfig -g).
|
||||||
#
|
#
|
||||||
include ../gcc-config.mk
|
include ../clang-config.mk
|
||||||
|
|
||||||
AS = ${MIPS_GCC_PREFIX}as ${DEBUG} -mips32r2 -EL
|
AS = $(LLVMBIN)clang -target mipsel -mcpu=mips32r2 ${DEBUG}
|
||||||
CC = ${MIPS_GCC_PREFIX}gcc ${DEBUG} -mips32r2 -EL -nostdinc -fno-builtin -Werror -Wall
|
CC = -mabi=o32 -mfloat-abi=soft \
|
||||||
CPP = ${MIPS_GCC_PREFIX}cpp
|
-nostdinc -fshort-double -fomit-frame-pointer -finline-hint-functions -I$(TOPSRC)/include
|
||||||
LD = ${MIPS_GCC_PREFIX}gcc -mips32r2 -EL
|
CC = $(LLVMBIN)clang -target mipsel -mcpu=mips32r2 -mabi=o32 -mfloat-abi=soft \
|
||||||
|
${DEBUG} -nostdinc -fno-builtin -Werror -Wall
|
||||||
|
CPP = $(LLVMBIN)clang-cpp
|
||||||
|
LD = /usr/lib/llvm-12/bin/ld.lld -m elf32ltsmip
|
||||||
LDFLAGS = -nostdlib -T ../${LDSCRIPT} -Wl,-Map=$(basename $@).map
|
LDFLAGS = -nostdlib -T ../${LDSCRIPT} -Wl,-Map=$(basename $@).map
|
||||||
SIZE = ${MIPS_GCC_PREFIX}size
|
SIZE = $(LLVMBIN)llvm-size
|
||||||
OBJCOPY = ${MIPS_GCC_PREFIX}objcopy
|
OBJCOPY = $(LLVMBIN)llvm-objcopy
|
||||||
OBJDUMP = ${MIPS_GCC_PREFIX}objdump
|
OBJDUMP = $(LLVMBIN)llvm-objdump
|
||||||
|
|
||||||
ifneq (${MIPS_GCC_FORMAT},)
|
|
||||||
LDFLAGS += -Wl,--oformat=${MIPS_GCC_FORMAT}
|
|
||||||
endif
|
|
||||||
|
|
||||||
# sources are located via $S relative to the compilation directory
|
# sources are located via $S relative to the compilation directory
|
||||||
S = ../..
|
S = ../..
|
||||||
|
|||||||
@@ -26,20 +26,19 @@ LDSCRIPT = "maximite/bootloader.ld"
|
|||||||
#
|
#
|
||||||
# DEBUG is set to -g by kconfig if debugging is requested (kconfig -g).
|
# DEBUG is set to -g by kconfig if debugging is requested (kconfig -g).
|
||||||
#
|
#
|
||||||
include ../gcc-config.mk
|
include ../clang-config.mk
|
||||||
|
|
||||||
AS = ${MIPS_GCC_PREFIX}as ${DEBUG} -mips32r2 -EL
|
AS = $(LLVMBIN)clang -target mipsel -mcpu=mips32r2 ${DEBUG}
|
||||||
CC = ${MIPS_GCC_PREFIX}gcc ${DEBUG} -mips32r2 -EL -nostdinc -fno-builtin -Werror -Wall
|
CC = -mabi=o32 -mfloat-abi=soft \
|
||||||
CPP = ${MIPS_GCC_PREFIX}cpp
|
-nostdinc -fshort-double -fomit-frame-pointer -finline-hint-functions -I$(TOPSRC)/include
|
||||||
LD = ${MIPS_GCC_PREFIX}gcc -mips32r2 -EL
|
CC = $(LLVMBIN)clang -target mipsel -mcpu=mips32r2 -mabi=o32 -mfloat-abi=soft \
|
||||||
|
${DEBUG} -nostdinc -fno-builtin -Werror -Wall
|
||||||
|
CPP = $(LLVMBIN)clang-cpp
|
||||||
|
LD = /usr/lib/llvm-12/bin/ld.lld -m elf32ltsmip
|
||||||
LDFLAGS = -nostdlib -T ../${LDSCRIPT} -Wl,-Map=$(basename $@).map
|
LDFLAGS = -nostdlib -T ../${LDSCRIPT} -Wl,-Map=$(basename $@).map
|
||||||
SIZE = ${MIPS_GCC_PREFIX}size
|
SIZE = $(LLVMBIN)llvm-size
|
||||||
OBJCOPY = ${MIPS_GCC_PREFIX}objcopy
|
OBJCOPY = $(LLVMBIN)llvm-objcopy
|
||||||
OBJDUMP = ${MIPS_GCC_PREFIX}objdump
|
OBJDUMP = $(LLVMBIN)llvm-objdump
|
||||||
|
|
||||||
ifneq (${MIPS_GCC_FORMAT},)
|
|
||||||
LDFLAGS += -Wl,--oformat=${MIPS_GCC_FORMAT}
|
|
||||||
endif
|
|
||||||
|
|
||||||
# sources are located via $S relative to the compilation directory
|
# sources are located via $S relative to the compilation directory
|
||||||
S = ../..
|
S = ../..
|
||||||
|
|||||||
@@ -26,20 +26,19 @@ LDSCRIPT = "max32/bootloader.ld"
|
|||||||
#
|
#
|
||||||
# DEBUG is set to -g by kconfig if debugging is requested (kconfig -g).
|
# DEBUG is set to -g by kconfig if debugging is requested (kconfig -g).
|
||||||
#
|
#
|
||||||
include ../gcc-config.mk
|
include ../clang-config.mk
|
||||||
|
|
||||||
AS = ${MIPS_GCC_PREFIX}as ${DEBUG} -mips32r2 -EL
|
AS = $(LLVMBIN)clang -target mipsel -mcpu=mips32r2 ${DEBUG}
|
||||||
CC = ${MIPS_GCC_PREFIX}gcc ${DEBUG} -mips32r2 -EL -nostdinc -fno-builtin -Werror -Wall
|
CC = -mabi=o32 -mfloat-abi=soft \
|
||||||
CPP = ${MIPS_GCC_PREFIX}cpp
|
-nostdinc -fshort-double -fomit-frame-pointer -finline-hint-functions -I$(TOPSRC)/include
|
||||||
LD = ${MIPS_GCC_PREFIX}gcc -mips32r2 -EL
|
CC = $(LLVMBIN)clang -target mipsel -mcpu=mips32r2 -mabi=o32 -mfloat-abi=soft \
|
||||||
|
${DEBUG} -nostdinc -fno-builtin -Werror -Wall
|
||||||
|
CPP = $(LLVMBIN)clang-cpp
|
||||||
|
LD = /usr/lib/llvm-12/bin/ld.lld -m elf32ltsmip
|
||||||
LDFLAGS = -nostdlib -T ../${LDSCRIPT} -Wl,-Map=$(basename $@).map
|
LDFLAGS = -nostdlib -T ../${LDSCRIPT} -Wl,-Map=$(basename $@).map
|
||||||
SIZE = ${MIPS_GCC_PREFIX}size
|
SIZE = $(LLVMBIN)llvm-size
|
||||||
OBJCOPY = ${MIPS_GCC_PREFIX}objcopy
|
OBJCOPY = $(LLVMBIN)llvm-objcopy
|
||||||
OBJDUMP = ${MIPS_GCC_PREFIX}objdump
|
OBJDUMP = $(LLVMBIN)llvm-objdump
|
||||||
|
|
||||||
ifneq (${MIPS_GCC_FORMAT},)
|
|
||||||
LDFLAGS += -Wl,--oformat=${MIPS_GCC_FORMAT}
|
|
||||||
endif
|
|
||||||
|
|
||||||
# sources are located via $S relative to the compilation directory
|
# sources are located via $S relative to the compilation directory
|
||||||
S = ../..
|
S = ../..
|
||||||
|
|||||||
@@ -26,20 +26,19 @@ LDSCRIPT = "maximite/bootloader.ld"
|
|||||||
#
|
#
|
||||||
# DEBUG is set to -g by kconfig if debugging is requested (kconfig -g).
|
# DEBUG is set to -g by kconfig if debugging is requested (kconfig -g).
|
||||||
#
|
#
|
||||||
include ../gcc-config.mk
|
include ../clang-config.mk
|
||||||
|
|
||||||
AS = ${MIPS_GCC_PREFIX}as ${DEBUG} -mips32r2 -EL
|
AS = $(LLVMBIN)clang -target mipsel -mcpu=mips32r2 ${DEBUG}
|
||||||
CC = ${MIPS_GCC_PREFIX}gcc ${DEBUG} -mips32r2 -EL -nostdinc -fno-builtin -Werror -Wall
|
CC = -mabi=o32 -mfloat-abi=soft \
|
||||||
CPP = ${MIPS_GCC_PREFIX}cpp
|
-nostdinc -fshort-double -fomit-frame-pointer -finline-hint-functions -I$(TOPSRC)/include
|
||||||
LD = ${MIPS_GCC_PREFIX}gcc -mips32r2 -EL
|
CC = $(LLVMBIN)clang -target mipsel -mcpu=mips32r2 -mabi=o32 -mfloat-abi=soft \
|
||||||
|
${DEBUG} -nostdinc -fno-builtin -Werror -Wall
|
||||||
|
CPP = $(LLVMBIN)clang-cpp
|
||||||
|
LD = /usr/lib/llvm-12/bin/ld.lld -m elf32ltsmip
|
||||||
LDFLAGS = -nostdlib -T ../${LDSCRIPT} -Wl,-Map=$(basename $@).map
|
LDFLAGS = -nostdlib -T ../${LDSCRIPT} -Wl,-Map=$(basename $@).map
|
||||||
SIZE = ${MIPS_GCC_PREFIX}size
|
SIZE = $(LLVMBIN)llvm-size
|
||||||
OBJCOPY = ${MIPS_GCC_PREFIX}objcopy
|
OBJCOPY = $(LLVMBIN)llvm-objcopy
|
||||||
OBJDUMP = ${MIPS_GCC_PREFIX}objdump
|
OBJDUMP = $(LLVMBIN)llvm-objdump
|
||||||
|
|
||||||
ifneq (${MIPS_GCC_FORMAT},)
|
|
||||||
LDFLAGS += -Wl,--oformat=${MIPS_GCC_FORMAT}
|
|
||||||
endif
|
|
||||||
|
|
||||||
# sources are located via $S relative to the compilation directory
|
# sources are located via $S relative to the compilation directory
|
||||||
S = ../..
|
S = ../..
|
||||||
|
|||||||
@@ -26,20 +26,19 @@ LDSCRIPT = "baremetal/script.ld"
|
|||||||
#
|
#
|
||||||
# DEBUG is set to -g by kconfig if debugging is requested (kconfig -g).
|
# DEBUG is set to -g by kconfig if debugging is requested (kconfig -g).
|
||||||
#
|
#
|
||||||
include ../gcc-config.mk
|
include ../clang-config.mk
|
||||||
|
|
||||||
AS = ${MIPS_GCC_PREFIX}as ${DEBUG} -mips32r2 -EL
|
AS = $(LLVMBIN)clang -target mipsel -mcpu=mips32r2 ${DEBUG}
|
||||||
CC = ${MIPS_GCC_PREFIX}gcc ${DEBUG} -mips32r2 -EL -nostdinc -fno-builtin -Werror -Wall
|
CC = -mabi=o32 -mfloat-abi=soft \
|
||||||
CPP = ${MIPS_GCC_PREFIX}cpp
|
-nostdinc -fshort-double -fomit-frame-pointer -finline-hint-functions -I$(TOPSRC)/include
|
||||||
LD = ${MIPS_GCC_PREFIX}gcc -mips32r2 -EL
|
CC = $(LLVMBIN)clang -target mipsel -mcpu=mips32r2 -mabi=o32 -mfloat-abi=soft \
|
||||||
|
${DEBUG} -nostdinc -fno-builtin -Werror -Wall
|
||||||
|
CPP = $(LLVMBIN)clang-cpp
|
||||||
|
LD = /usr/lib/llvm-12/bin/ld.lld -m elf32ltsmip
|
||||||
LDFLAGS = -nostdlib -T ../${LDSCRIPT} -Wl,-Map=$(basename $@).map
|
LDFLAGS = -nostdlib -T ../${LDSCRIPT} -Wl,-Map=$(basename $@).map
|
||||||
SIZE = ${MIPS_GCC_PREFIX}size
|
SIZE = $(LLVMBIN)llvm-size
|
||||||
OBJCOPY = ${MIPS_GCC_PREFIX}objcopy
|
OBJCOPY = $(LLVMBIN)llvm-objcopy
|
||||||
OBJDUMP = ${MIPS_GCC_PREFIX}objdump
|
OBJDUMP = $(LLVMBIN)llvm-objdump
|
||||||
|
|
||||||
ifneq (${MIPS_GCC_FORMAT},)
|
|
||||||
LDFLAGS += -Wl,--oformat=${MIPS_GCC_FORMAT}
|
|
||||||
endif
|
|
||||||
|
|
||||||
# sources are located via $S relative to the compilation directory
|
# sources are located via $S relative to the compilation directory
|
||||||
S = ../..
|
S = ../..
|
||||||
|
|||||||
@@ -29,20 +29,19 @@ LDSCRIPT = "ubw32/bootloader.ld"
|
|||||||
#
|
#
|
||||||
# DEBUG is set to -g by kconfig if debugging is requested (kconfig -g).
|
# DEBUG is set to -g by kconfig if debugging is requested (kconfig -g).
|
||||||
#
|
#
|
||||||
include ../gcc-config.mk
|
include ../clang-config.mk
|
||||||
|
|
||||||
AS = ${MIPS_GCC_PREFIX}as ${DEBUG} -mips32r2 -EL
|
AS = $(LLVMBIN)clang -target mipsel -mcpu=mips32r2 ${DEBUG}
|
||||||
CC = ${MIPS_GCC_PREFIX}gcc ${DEBUG} -mips32r2 -EL -nostdinc -fno-builtin -Werror -Wall
|
CC = -mabi=o32 -mfloat-abi=soft \
|
||||||
CPP = ${MIPS_GCC_PREFIX}cpp
|
-nostdinc -fshort-double -fomit-frame-pointer -finline-hint-functions -I$(TOPSRC)/include
|
||||||
LD = ${MIPS_GCC_PREFIX}gcc -mips32r2 -EL
|
CC = $(LLVMBIN)clang -target mipsel -mcpu=mips32r2 -mabi=o32 -mfloat-abi=soft \
|
||||||
|
${DEBUG} -nostdinc -fno-builtin -Werror -Wall
|
||||||
|
CPP = $(LLVMBIN)clang-cpp
|
||||||
|
LD = /usr/lib/llvm-12/bin/ld.lld -m elf32ltsmip
|
||||||
LDFLAGS = -nostdlib -T ../${LDSCRIPT} -Wl,-Map=$(basename $@).map
|
LDFLAGS = -nostdlib -T ../${LDSCRIPT} -Wl,-Map=$(basename $@).map
|
||||||
SIZE = ${MIPS_GCC_PREFIX}size
|
SIZE = $(LLVMBIN)llvm-size
|
||||||
OBJCOPY = ${MIPS_GCC_PREFIX}objcopy
|
OBJCOPY = $(LLVMBIN)llvm-objcopy
|
||||||
OBJDUMP = ${MIPS_GCC_PREFIX}objdump
|
OBJDUMP = $(LLVMBIN)llvm-objdump
|
||||||
|
|
||||||
ifneq (${MIPS_GCC_FORMAT},)
|
|
||||||
LDFLAGS += -Wl,--oformat=${MIPS_GCC_FORMAT}
|
|
||||||
endif
|
|
||||||
|
|
||||||
# sources are located via $S relative to the compilation directory
|
# sources are located via $S relative to the compilation directory
|
||||||
S = ../..
|
S = ../..
|
||||||
|
|||||||
@@ -40,20 +40,19 @@ LDSCRIPT = "max32/bootloader.ld"
|
|||||||
#
|
#
|
||||||
# DEBUG is set to -g by kconfig if debugging is requested (kconfig -g).
|
# DEBUG is set to -g by kconfig if debugging is requested (kconfig -g).
|
||||||
#
|
#
|
||||||
include ../gcc-config.mk
|
include ../clang-config.mk
|
||||||
|
|
||||||
AS = ${MIPS_GCC_PREFIX}as ${DEBUG} -mips32r2 -EL
|
AS = $(LLVMBIN)clang -target mipsel -mcpu=mips32r2 ${DEBUG}
|
||||||
CC = ${MIPS_GCC_PREFIX}gcc ${DEBUG} -mips32r2 -EL -nostdinc -fno-builtin -Werror -Wall
|
CC = -mabi=o32 -mfloat-abi=soft \
|
||||||
CPP = ${MIPS_GCC_PREFIX}cpp
|
-nostdinc -fshort-double -fomit-frame-pointer -finline-hint-functions -I$(TOPSRC)/include
|
||||||
LD = ${MIPS_GCC_PREFIX}gcc -mips32r2 -EL
|
CC = $(LLVMBIN)clang -target mipsel -mcpu=mips32r2 -mabi=o32 -mfloat-abi=soft \
|
||||||
|
${DEBUG} -nostdinc -fno-builtin -Werror -Wall
|
||||||
|
CPP = $(LLVMBIN)clang-cpp
|
||||||
|
LD = /usr/lib/llvm-12/bin/ld.lld -m elf32ltsmip
|
||||||
LDFLAGS = -nostdlib -T ../${LDSCRIPT} -Wl,-Map=$(basename $@).map
|
LDFLAGS = -nostdlib -T ../${LDSCRIPT} -Wl,-Map=$(basename $@).map
|
||||||
SIZE = ${MIPS_GCC_PREFIX}size
|
SIZE = $(LLVMBIN)llvm-size
|
||||||
OBJCOPY = ${MIPS_GCC_PREFIX}objcopy
|
OBJCOPY = $(LLVMBIN)llvm-objcopy
|
||||||
OBJDUMP = ${MIPS_GCC_PREFIX}objdump
|
OBJDUMP = $(LLVMBIN)llvm-objdump
|
||||||
|
|
||||||
ifneq (${MIPS_GCC_FORMAT},)
|
|
||||||
LDFLAGS += -Wl,--oformat=${MIPS_GCC_FORMAT}
|
|
||||||
endif
|
|
||||||
|
|
||||||
# sources are located via $S relative to the compilation directory
|
# sources are located via $S relative to the compilation directory
|
||||||
S = ../..
|
S = ../..
|
||||||
|
|||||||
Reference in New Issue
Block a user