115a8b0e3SAdriana KobylakSUMMARY = "Miscellaneous OpenBMC functions" 215a8b0e3SAdriana KobylakHOMEPAGE = "https://github.com/openbmc/phosphor-misc" 315a8b0e3SAdriana KobylakLICENSE = "Apache-2.0" 415a8b0e3SAdriana KobylakLIC_FILES_CHKSUM = "file://LICENSE;md5=e3fc50a88d0a364313df4b21ef20c29e" 59936f86dSEd TanousDEPENDS = "systemd" 6*506953c0SAndrew GeisslerSRCREV = "abc613ef4df43e8eef9d9be1b3a01ddf64586d13" 79936f86dSEd TanousPACKAGECONFIG ??= " \ 89936f86dSEd Tanous first-boot-set-hostname \ 99936f86dSEd Tanous first-boot-set-mac \ 109936f86dSEd Tanous http-redirect-awk \ 119936f86dSEd Tanous usb-ctrl \ 129936f86dSEd Tanous " 139936f86dSEd TanousPACKAGECONFIG[first-boot-set-hostname] = "-Dfirst-boot-set-hostname=enabled, -Dfirst-boot-set-hostname=disabled" 149936f86dSEd TanousPACKAGECONFIG[first-boot-set-mac] = "-Dfirst-boot-set-mac=enabled, -Dfirst-boot-set-mac=disabled" 159936f86dSEd TanousPACKAGECONFIG[http-redirect-awk] = "-Dhttp-redirect=enabled, -Dhttp-redirect=disabled" 169936f86dSEd TanousPACKAGECONFIG[usb-ctrl] = "-Dusb-ctrl=enabled, -Dusb-ctrl=disabled" 1715a8b0e3SAdriana KobylakPV = "1.0+git${SRCPV}" 189936f86dSEd TanousPR = "r1" 1915a8b0e3SAdriana Kobylak 20bb99d22eSPatrick WilliamsSRC_URI = "git://github.com/openbmc/phosphor-misc;branch=master;protocol=https" 2115a8b0e3SAdriana Kobylak 2215a8b0e3SAdriana KobylakS = "${WORKDIR}/git" 239936f86dSEd TanousSYSTEMD_PACKAGES = "${PHOSPHOR_MISC_PACKAGES}" 249936f86dSEd TanousSYSTEMD_SERVICE:${PN}-first-boot-set-hostname = "first-boot-set-hostname.service" 259936f86dSEd TanousSYSTEMD_SERVICE:${PN}-first-boot-set-mac = "first-boot-set-mac@.service" 269936f86dSEd TanousSYSTEMD_SERVICE:${PN}-http-redirect-awk = " \ 279936f86dSEd Tanous http-redirect@.service \ 289936f86dSEd Tanous http-redirect.socket \ 299936f86dSEd Tanous " 3015a8b0e3SAdriana Kobylak 3115a8b0e3SAdriana Kobylakinherit meson 3215a8b0e3SAdriana Kobylakinherit pkgconfig 3315a8b0e3SAdriana Kobylakinherit systemd 3415a8b0e3SAdriana Kobylak 359936f86dSEd TanousPACKAGES = "${PHOSPHOR_MISC_PACKAGES}" 369936f86dSEd Tanous 379936f86dSEd TanousRDEPENDS:${PN}-http-redirect-awk = "${VIRTUAL-RUNTIME_base-utils}" 38c9883302SXie NingRDEPENDS:${PN}-first-boot-set-hostname += "bash" 39c9883302SXie NingRDEPENDS:${PN}-first-boot-set-mac += "bash" 40c9883302SXie NingRDEPENDS:${PN}-usb-ctrl += "bash" 419936f86dSEd Tanous 429936f86dSEd Tanous# first-boot-set-hostname 439936f86dSEd TanousFILES:${PN}-first-boot-set-hostname = "${bindir}/first-boot-set-hostname.sh" 449936f86dSEd Tanous# first-boot-set-mac 459936f86dSEd TanousFILES:${PN}-first-boot-set-mac = "${bindir}/first-boot-set-mac.sh" 469936f86dSEd Tanous# http-redirect-awk 479936f86dSEd TanousFILES:${PN}-http-redirect-awk = "${bindir}/http-redirect.awk" 489936f86dSEd Tanous# usb-ctrl 499936f86dSEd TanousFILES:${PN}-usb-ctrl = "${bindir}/usb-ctrl" 5015a8b0e3SAdriana Kobylak 5115a8b0e3SAdriana KobylakPHOSPHOR_MISC_PACKAGES = " \ 5215a8b0e3SAdriana Kobylak ${@bb.utils.contains('PACKAGECONFIG', 'first-boot-set-hostname', '${PN}-first-boot-set-hostname', '', d)} \ 5315a8b0e3SAdriana Kobylak ${@bb.utils.contains('PACKAGECONFIG', 'first-boot-set-mac', '${PN}-first-boot-set-mac', '', d)} \ 5415a8b0e3SAdriana Kobylak ${@bb.utils.contains('PACKAGECONFIG', 'http-redirect-awk', '${PN}-http-redirect-awk', '', d)} \ 5515a8b0e3SAdriana Kobylak ${@bb.utils.contains('PACKAGECONFIG', 'usb-ctrl', '${PN}-usb-ctrl', '', d)} \ 5615a8b0e3SAdriana Kobylak " 5715a8b0e3SAdriana KobylakPACKAGE_BEFORE_PN += "${PHOSPHOR_MISC_PACKAGES}" 58