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.
19 HOST_LAUNCH_XML2CFG = ./launch_xml2cfg.sh
21 CONF_DIR = $(SDKTARGETSYSROOT)/usr/agl/conf
22 CONF_THREAD_H = $(SDKTARGETSYSROOT)/usr/agl/include/agl_thread.h
24 LAUNCH_XMLFILES = $(shell cd $(CONF_DIR)/sm_launch; ls *.xml)
25 LAUNCH_CFGFILES = $(LAUNCH_XMLFILES:%.xml=%.cfg)
27 INST_CONFDIR = $(SDKTARGETSYSROOT)/usr/agl/conf/systemmanager
29 CLEAN_FILES = system_launcher_body.xml $(LAUNCH_CFGFILES)
31 VPATH = $(CONF_DIR)/sm_launch
33 install:install-pre install-cfg
36 install -d -m 775 $(DESTDIR)/usr/agl/conf;\
37 install -d -m 775 $(DESTDIR)/usr/agl/conf/sm_launch;\
38 install -d -m 775 $(DESTDIR)/usr/agl/conf/systemmanager;\
39 install -m 644 -t $(DESTDIR)/usr/agl/conf/sm_launch sm_launch_agl.xml
41 install-cfg:$(LAUNCH_CFGFILES)
43 install -d -m 775 $(INST_CONFDIR) ;\
44 for cfgfile in $(LAUNCH_CFGFILES);do \
45 install -m 644 -t $(INST_CONFDIR) $$cfgfile;\
49 # %.cfg:%.xml # defined in agl.mk
53 include ../../../../system_service.mk