diff options
Diffstat (limited to 'recipes-test/demo-config/secondary-config.bb')
| -rw-r--r-- | recipes-test/demo-config/secondary-config.bb | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/recipes-test/demo-config/secondary-config.bb b/recipes-test/demo-config/secondary-config.bb index 5b213d1..9411646 100644 --- a/recipes-test/demo-config/secondary-config.bb +++ b/recipes-test/demo-config/secondary-config.bb | |||
| @@ -9,33 +9,33 @@ SOTA_HARDWARE_ID ?= "${MACHINE}-sndry" | |||
| 9 | SECONDARY_HARDWARE_ID ?= "${SOTA_HARDWARE_ID}" | 9 | SECONDARY_HARDWARE_ID ?= "${SOTA_HARDWARE_ID}" |
| 10 | 10 | ||
| 11 | SRC_URI = "\ | 11 | SRC_URI = "\ |
| 12 | file://30-fake_pacman.toml \ | 12 | file://30-fake-pacman.toml \ |
| 13 | file://35-network_config.toml \ | 13 | file://35-network-config.toml \ |
| 14 | file://45-id_config.toml \ | 14 | file://45-id-config.toml \ |
| 15 | " | 15 | " |
| 16 | 16 | ||
| 17 | do_install () { | 17 | do_install () { |
| 18 | install -m 0700 -d ${D}${libdir}/sota/conf.d | 18 | install -m 0700 -d ${D}${libdir}/sota/conf.d |
| 19 | install -m 0644 ${WORKDIR}/30-fake_pacman.toml ${D}/${libdir}/sota/conf.d/30-fake_pacman.toml | 19 | install -m 0644 ${WORKDIR}/30-fake-pacman.toml ${D}/${libdir}/sota/conf.d/30-fake-pacman.toml |
| 20 | 20 | ||
| 21 | install -m 0644 ${WORKDIR}/35-network_config.toml ${D}/${libdir}/sota/conf.d/35-network_config.toml | 21 | install -m 0644 ${WORKDIR}/35-network-config.toml ${D}/${libdir}/sota/conf.d/35-network-config.toml |
| 22 | sed -i -e 's|@PORT@|${SECONDARY_PORT}|g' \ | 22 | sed -i -e 's|@PORT@|${SECONDARY_PORT}|g' \ |
| 23 | -e 's|@PRIMARY_IP@|${PRIMARY_IP}|g' \ | 23 | -e 's|@PRIMARY_IP@|${PRIMARY_IP}|g' \ |
| 24 | -e 's|@PRIMARY_PORT@|${PRIMARY_PORT}|g' \ | 24 | -e 's|@PRIMARY_PORT@|${PRIMARY_PORT}|g' \ |
| 25 | ${D}/${libdir}/sota/conf.d/35-network_config.toml | 25 | ${D}/${libdir}/sota/conf.d/35-network-config.toml |
| 26 | 26 | ||
| 27 | install -m 0644 ${WORKDIR}/45-id_config.toml ${D}/${libdir}/sota/conf.d/45-id_config.toml | 27 | install -m 0644 ${WORKDIR}/45-id-config.toml ${D}/${libdir}/sota/conf.d/45-id-config.toml |
| 28 | sed -i -e 's|@SERIAL@|${SECONDARY_SERIAL_ID}|g' \ | 28 | sed -i -e 's|@SERIAL@|${SECONDARY_SERIAL_ID}|g' \ |
| 29 | -e 's|@HWID@|${SECONDARY_HARDWARE_ID}|g' \ | 29 | -e 's|@HWID@|${SECONDARY_HARDWARE_ID}|g' \ |
| 30 | ${D}/${libdir}/sota/conf.d/45-id_config.toml | 30 | ${D}/${libdir}/sota/conf.d/45-id-config.toml |
| 31 | 31 | ||
| 32 | } | 32 | } |
| 33 | 33 | ||
| 34 | FILES_${PN} = " \ | 34 | FILES_${PN} = " \ |
| 35 | ${libdir}/sota/conf.d \ | 35 | ${libdir}/sota/conf.d \ |
| 36 | ${libdir}/sota/conf.d/30-fake_pacman.toml \ | 36 | ${libdir}/sota/conf.d/30-fake-pacman.toml \ |
| 37 | ${libdir}/sota/conf.d/35-network_config.toml \ | 37 | ${libdir}/sota/conf.d/35-network-config.toml \ |
| 38 | ${libdir}/sota/conf.d/45-id_config.toml \ | 38 | ${libdir}/sota/conf.d/45-id-config.toml \ |
| 39 | " | 39 | " |
| 40 | 40 | ||
| 41 | # vim:set ts=4 sw=4 sts=4 expandtab: | 41 | # vim:set ts=4 sw=4 sts=4 expandtab: |
