Rakefile: provide musl system library
This commit is contained in:
parent
2c8e872d89
commit
1f2a9f5861
4
Rakefile
4
Rakefile
|
@ -21,7 +21,7 @@ BOARD = ENV["BOARD"] || "CORE_BOARD"
|
|||
LIBOPENCM3_DIR = "libopencm3"
|
||||
LIBOPENCM3_INC = LIBOPENCM3_DIR+"/include"
|
||||
LIBOPENCM3_LIB = LIBOPENCM3_DIR+"/lib"
|
||||
# STM32F1 library use for this project provided libtm
|
||||
# STM32F1 library used for this project provided by libopencm3
|
||||
STM32F1_LIB = "opencm3_stm32f1"
|
||||
|
||||
# source code used by the firmware
|
||||
|
@ -55,6 +55,8 @@ cflags << "-fshort-enums"
|
|||
cflags << "-ffreestanding"
|
||||
# don't use the standard library (only if you provide an alternative libc library)
|
||||
#cflags << "-nostdlib -nostdinc"
|
||||
# standard C library (use musl libc)
|
||||
cflags << "-I /usr/lib/musl/include/"
|
||||
# include own libraries
|
||||
cflags += SRC_DIRS.collect {|srd_dir| "-I #{srd_dir}"}
|
||||
# include libopencm3 library
|
||||
|
|
Loading…
Reference in New Issue