Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Arm Trusted Firmware
Commits
47ee4087
Commit
47ee4087
authored
Aug 05, 2020
by
Alexei Fedorov
Committed by
TrustedFirmware Code Review
Aug 05, 2020
Browse files
Merge "Use abspath to dereference $BUILD_BASE" into integration
parents
95f9b1fb
29214e95
Changes
7
Show whitespace changes
Inline
Side-by-side
Makefile
View file @
47ee4087
...
...
@@ -451,8 +451,10 @@ include common/backtrace/backtrace.mk
include
${MAKE_HELPERS_DIRECTORY}plat_helpers.mk
BUILD_BASE
:=
./build
BUILD_PLAT
:=
${BUILD_BASE}
/
${PLAT}
/
${BUILD_TYPE}
ifeq
(${BUILD_BASE},)
BUILD_BASE
:=
./build
endif
BUILD_PLAT
:=
$(
abspath
${BUILD_BASE}
)
/
${PLAT}
/
${BUILD_TYPE}
SPDS
:=
$(
sort
$(
filter-out
none,
$(
patsubst
services/spd/%,%,
$(
wildcard
services/spd/
*
))))
...
...
docs/getting_started/build-options.rst
View file @
47ee4087
...
...
@@ -119,6 +119,8 @@ Common build options
- ``BUILD_STRING``: Input string for VERSION_STRING, which allows the TF-A
build to be uniquely identified. Defaults to the current git commit id.
- ``BUILD_BASE``: Output directory for the build. Defaults to ``./build``
- ``CFLAGS``: Extra user options appended on the compiler'
s
command
line
in
addition
to
the
options
set
by
the
build
system
.
...
...
lib/romlib/Makefile
View file @
47ee4087
...
...
@@ -10,14 +10,14 @@ LD = $(CROSS_COMPILE)ld
OC
=
$(CROSS_COMPILE)
objcopy
CPP
=
$(CROSS_COMPILE)
cpp
ROMLIB_GEN
=
./romlib_generator.py
BUILD_DIR
=
../../
$(BUILD_PLAT)
/romlib
LIB_DIR
=
../../
$(BUILD_PLAT)
/lib
WRAPPER_DIR
=
../../
$(BUILD_PLAT)
/libwrapper
BUILD_DIR
=
$(BUILD_PLAT)
/romlib
LIB_DIR
=
$(BUILD_PLAT)
/lib
WRAPPER_DIR
=
$(BUILD_PLAT)
/libwrapper
LIBS
=
-lmbedtls
-lfdt
-lc
INC
=
$
(
INCLUDES:-I%
=
-I
../../%
)
PPFLAGS
=
$(INC)
$(DEFINES)
-P
-x
assembler-with-cpp
-D__LINKER__
-MD
-MP
-MT
$(BUILD_DIR)
/romlib.ld
OBJS
=
$(BUILD_DIR)
/jmptbl.o
$(BUILD_DIR)
/init.o
MAPFILE
=
../../
$(BUILD_PLAT)
/romlib/romlib.map
MAPFILE
=
$(BUILD_PLAT)
/romlib/romlib.map
ifneq
($(PLAT_DIR),)
WRAPPER_SOURCES
=
$(
shell
$(ROMLIB_GEN)
genwrappers
-b
$(WRAPPER_DIR)
--list
../../
$(PLAT_DIR)
/jmptbl.i
)
...
...
plat/marvell/armada/a8k/common/ble/ble.mk
View file @
47ee4087
...
...
@@ -5,8 +5,8 @@
MV_DDR_PATH
?=
drivers/marvell/mv_ddr
MV_DDR_LIB
=
$(CURDIR)
/
$(BUILD_PLAT)
/ble/mv_ddr_lib.a
LIBC_LIB
=
$(CURDIR)
/
$(BUILD_PLAT)
/lib/libc.a
MV_DDR_LIB
=
$(BUILD_PLAT)
/ble/mv_ddr_lib.a
LIBC_LIB
=
$(BUILD_PLAT)
/lib/libc.a
BLE_LIBS
=
$(MV_DDR_LIB)
$(LIBC_LIB)
PLAT_MARVELL
=
plat/marvell/armada
...
...
@@ -29,4 +29,4 @@ BLE_LINKERFILE := $(BLE_PATH)/ble.ld.S
FORCE
:
$(MV_DDR_LIB)
:
FORCE
@
+make
-C
$(MV_DDR_PATH)
--no-print-directory
PLAT_INCLUDES
=
"
$(PLAT_INCLUDES)
"
PLATFORM
=
$(PLAT)
ARCH
=
AARCH64
OBJ_DIR
=
$(
CURDIR)
/
$(
BUILD_PLAT)
/ble
@
+make
-C
$(MV_DDR_PATH)
--no-print-directory
PLAT_INCLUDES
=
"
$(PLAT_INCLUDES)
"
PLATFORM
=
$(PLAT)
ARCH
=
AARCH64
OBJ_DIR
=
$(BUILD_PLAT)
/ble
plat/nvidia/tegra/platform.mk
View file @
47ee4087
...
...
@@ -62,7 +62,7 @@ $(eval $(call add_define,ENABLE_TEGRA_WDT_LEGACY_FIQ_HANDLING))
$(eval
$(call
add_define,RELOCATE_BL32_IMAGE))
# modify BUILD_PLAT to point to SoC specific build directory
BUILD_PLAT
:=
${BUILD_BASE}
/
${PLAT}
/
${TARGET_SOC}
/
${BUILD_TYPE}
BUILD_PLAT
:=
$(
abspath
${BUILD_BASE}
)
/
${PLAT}
/
${TARGET_SOC}
/
${BUILD_TYPE}
# platform cflags (enable signed comparisons, disable stdlib)
TF_CFLAGS
+=
-Wsign-compare
-nostdlib
...
...
plat/ti/k3/platform.mk
View file @
47ee4087
...
...
@@ -11,4 +11,4 @@ include ${PLAT_PATH}/common/plat_common.mk
include
${PLAT_PATH}/board/${TARGET_BOARD}/board.mk
# modify BUILD_PLAT to point to board specific build directory
BUILD_PLAT
:=
${BUILD_BASE}
/
${PLAT}
/
${TARGET_BOARD}
/
${BUILD_TYPE}
BUILD_PLAT
:=
$(
abspath
${BUILD_BASE}
)
/
${PLAT}
/
${TARGET_BOARD}
/
${BUILD_TYPE}
tools/sptool/sp_mk_generator.py
View file @
47ee4087
...
...
@@ -55,8 +55,8 @@ with open(sys.argv[2],'r') as in_file:
data
=
json
.
load
(
in_file
)
json_file
=
os
.
path
.
abspath
(
sys
.
argv
[
2
])
json_dir
=
os
.
path
.
dirname
(
json_file
)
gen_file
=
sys
.
argv
[
1
]
out_dir
=
sys
.
argv
[
3
]
[
2
:]
gen_file
=
os
.
path
.
abspath
(
sys
.
argv
[
1
]
)
out_dir
=
os
.
path
.
abspath
(
sys
.
argv
[
3
]
)
dtb_dir
=
out_dir
+
"/fdts/"
print
(
dtb_dir
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment