2 # @copyright Copyright (c) 2017-2020 TOYOTA MOTOR CORPORATION.
4 # Licensed under the Apache License, Version 2.0 (the "License");
5 # you may not use this file except in compliance with the License.
6 # You may obtain a copy of the License at
8 # http://www.apache.org/licenses/LICENSE-2.0
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
17 ######### search paths #############
19 VPATH += ../include/$(COMPONENT_NAME)
22 ######### installed shared library(*.so) #############
23 INST_SHLIBS = libSS_RomAccessIf
25 ######### headers to be installed(*.h) #############
26 INST_HEADERS = rom_access_library.h ss_sm_boot_access.h ss_sm_ram_access.h ss_sm_rom_access.h
28 ######### compiled sources #############
29 libSS_RomAccessIf_SRCS += ss_sm_rom_access.cpp ss_sm_boot_access.cpp ss_sm_ram_access.cpp ss_sm_checksum.cpp
31 ######### add include path #############
32 CPPFLAGS += -I./../include
34 ######### frameworkunifiedlog options #############
36 CPPFLAGS += -DFRAMEWORKUNIFIEDLOGOPTIONS=0x08 -DFRAMEWORKUNIFIEDLOGAPPZONES=31,30,29,28,27,26,9,8,3
37 LDFLAGS += -Wl,--no-as-needed
38 LDFLAGS += -Wl,--no-undefined
40 ######### add compile option #############
41 LDFLAGS += -L./../nor/
43 LDFLAGS += -g -Wl,--gc-sections -shared
44 CPPFLAGS += -Werror=implicit-function-declaration
45 CPPFLAGS += -Werror=format-security
46 CPPFLAGS += -Wconversion
47 CPPFLAGS += -Wint-to-pointer-cast
48 CPPFLAGS += -Wpointer-arith
51 ######### linked library (dynamic) #############
52 LDLIBS += -Wl,-Bdynamic -lNS_FrameworkUnified
53 LDLIBS += -Wl,-Bdynamic -lcommon
54 LDLIBS += -Wl,-Bdynamic -lssaccess
55 LDLIBS += -Wl,-Bdynamic -lextension
57 CPPFLAGS_ss_sm_checksum.o += -fno-exceptions
58 CPPFLAGS_ss_sm_checksum.os += -fno-exceptions
59 CPPFLAGS_ss_sm_ram_access.o += -fno-exceptions
60 CPPFLAGS_ss_sm_ram_access.os += -fno-exceptions
62 include ../../../system_service.mk