2 ## Copyright (C) 2019 Wind River Systems, Inc.
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.
18 platform-kickstarts-pxeboot \
19 platform-kickstarts-extracfgs \
22 feed_dir = "/www/pages/feed/rel-${STX_REL}"
24 DEPENDS += "perl-native"
28 do_compile_prepend () {
30 ./centos-ks-gen.pl --release ${STX_REL}
33 do_install_prepend () {
35 install -d -m 0755 ${D}${feed_dir}
36 install -m 0444 generated/* ${D}${feed_dir}/
38 install -d -m 0755 ${D}/pxeboot
39 install -D -m 0444 pxeboot/* ${D}/pxeboot
41 install -d -m 0755 ${D}/extra_cfgs
42 install -D -m 0444 extra_cfgs/* ${D}/extra_cfgs
46 mkdir -p ${DEPLOYDIR}/stx-kickstarts
47 cp -f ${S}/bsp-files/generated/* ${DEPLOYDIR}/stx-kickstarts
50 addtask do_deploy after do_compile before do_build
52 FILES_platform-kickstarts = "${feed_dir}"
53 FILES_platform-kickstarts-pxeboot = "/pxeboot"
54 FILES_platform-kickstarts-extracfgs = "/extra_cfgs"