2 # @copyright Copyright (c) 2016-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 # ==== Customization ================
18 #Directory path located XMLs for conversion
19 CONFXML_DIR_PATH ?= $(SDKTARGETSYSROOT)/usr/agl/conf/sm_last2order
22 ORDER_DEF_PATH ?= $(SDKTARGETSYSROOT)/usr/agl/include/agl_wakeup_order.h
24 #path to be installed CFO file
25 CONF_INSTALL_DIR ?= $(SDKTARGETSYSROOT)/usr/agl/conf/systemmanager
27 # ==================================
30 MKL_LAST2ORDER = mklast2ordertbl.pl
32 #path located last2order tools
35 VPATH = $(CONFXML_DIR_PATH) $(TOOLPATH)
37 XMLFILES = $(shell cd $(CONFXML_DIR_PATH); ls *.xml)
38 XMLTMPFILES = $(XMLFILES:%.xml=%.xml.pped)
39 CFOFILES = $(XMLFILES:%.xml=%.cfo)
43 install:install-pre install-cfo
46 install -d -m 775 $(DESTDIR)/usr/agl/conf/sm_last2order;\
47 install -m 644 -t $(DESTDIR)/usr/agl/conf/systemmanager sm_last2order.cfo
51 install -d -m 775 $(CONF_INSTALL_DIR) ;\
52 for cfofile in $(CFOFILES); do \
53 install -m 644 -t $(CONF_INSTALL_DIR) $$cfofile; \
56 %.cfo:%.xml.pped $(MKL_LAST2ORDER)
57 ln -fs $(TOOLPATH)/$(MKL_LAST2ORDER)
58 ./$(MKL_LAST2ORDER) $< $@
61 $(HOST_CPP) -P -include $(ORDER_DEF_PATH) $< > $@
67 rm -f *.cfo *.pped *.pl
69 .PHONY:install-cfo _all
71 include ../../../../system_service.mk