Potin Lai | a63391b | 2022-10-21 17:03:24 +0800 | [diff] [blame] | 1 | FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:" |
| 2 | |
Potin Lai | 19eb357 | 2022-11-09 16:42:34 +0800 | [diff] [blame] | 3 | SRC_URI:append = " \ |
| 4 | file://bletchley-host-acpi-power-state.yaml \ |
| 5 | file://bletchley-frontpanel.yaml \ |
| 6 | " |
Potin Lai | a63391b | 2022-10-21 17:03:24 +0800 | [diff] [blame] | 7 | SETTINGS_HOST_TEMPLATES:append = " bletchley-host-acpi-power-state.yaml" |
Potin Lai | 19eb357 | 2022-11-09 16:42:34 +0800 | [diff] [blame] | 8 | SETTINGS_CHASSIS_TEMPLATES_ZERO_ONLY:append = " bletchley-frontpanel.yaml" |
| 9 | |
| 10 | OBMC_CHASSIS_ZERO_ONLY="0" |
| 11 | |
| 12 | do_install:append() { |
| 13 | DEST=${D}${settings_datadir} |
| 14 | |
| 15 | for i in ${OBMC_CHASSIS_ZERO_ONLY}; |
| 16 | do |
| 17 | for f in ${SETTINGS_CHASSIS_TEMPLATES_ZERO_ONLY}; |
| 18 | do |
| 19 | sed "s/{}/${i}/g" ${f} >> ${DEST}/defaults.yaml |
| 20 | done |
| 21 | done |
| 22 | } |