diff options
| author | Jia Zhang <zhang.jia@linux.alibaba.com> | 2018-06-16 04:57:42 -0400 |
|---|---|---|
| committer | Jia Zhang <zhang.jia@linux.alibaba.com> | 2018-06-16 05:12:46 -0400 |
| commit | 0bb383b60a8f61df2c4e078d34294e5ef996445b (patch) | |
| tree | 843cf50e15483da26c2d88b464daf06e56569f61 | |
| parent | 60be51b4eebe847d169b39dfdd7c41c9ed1d32f1 (diff) | |
| download | meta-secure-core-0bb383b60a8f61df2c4e078d34294e5ef996445b.tar.gz | |
tpm2-abrmd: move tpm2-abrmd.default to tpm2-abrmd.inc
Use separate directories to store tpm2-abrmd.default for stable
and git version.
Signed-off-by: Jia Zhang <zhang.jia@linux.alibaba.com>
| -rw-r--r-- | meta-tpm2/recipes-tpm/tpm2-abrmd/tpm2-abrmd-1.3.1/tpm2-abrmd.default (renamed from meta-tpm2/recipes-tpm/tpm2-abrmd/files/tpm2-abrmd.default) | 0 | ||||
| -rw-r--r-- | meta-tpm2/recipes-tpm/tpm2-abrmd/tpm2-abrmd-git/tpm2-abrmd.default (renamed from meta-tpm2/recipes-tpm/tpm2-abrmd/files/tpm2-abrmd_git.default) | 0 | ||||
| -rw-r--r-- | meta-tpm2/recipes-tpm/tpm2-abrmd/tpm2-abrmd.inc | 9 | ||||
| -rw-r--r-- | meta-tpm2/recipes-tpm/tpm2-abrmd/tpm2-abrmd_1.3.1.bb | 9 | ||||
| -rw-r--r-- | meta-tpm2/recipes-tpm/tpm2-abrmd/tpm2-abrmd_git.bb | 9 |
5 files changed, 9 insertions, 18 deletions
diff --git a/meta-tpm2/recipes-tpm/tpm2-abrmd/files/tpm2-abrmd.default b/meta-tpm2/recipes-tpm/tpm2-abrmd/tpm2-abrmd-1.3.1/tpm2-abrmd.default index 987978a..987978a 100644 --- a/meta-tpm2/recipes-tpm/tpm2-abrmd/files/tpm2-abrmd.default +++ b/meta-tpm2/recipes-tpm/tpm2-abrmd/tpm2-abrmd-1.3.1/tpm2-abrmd.default | |||
diff --git a/meta-tpm2/recipes-tpm/tpm2-abrmd/files/tpm2-abrmd_git.default b/meta-tpm2/recipes-tpm/tpm2-abrmd/tpm2-abrmd-git/tpm2-abrmd.default index 08dd111..08dd111 100644 --- a/meta-tpm2/recipes-tpm/tpm2-abrmd/files/tpm2-abrmd_git.default +++ b/meta-tpm2/recipes-tpm/tpm2-abrmd/tpm2-abrmd-git/tpm2-abrmd.default | |||
diff --git a/meta-tpm2/recipes-tpm/tpm2-abrmd/tpm2-abrmd.inc b/meta-tpm2/recipes-tpm/tpm2-abrmd/tpm2-abrmd.inc index 037151e..5ce5cf3 100644 --- a/meta-tpm2/recipes-tpm/tpm2-abrmd/tpm2-abrmd.inc +++ b/meta-tpm2/recipes-tpm/tpm2-abrmd/tpm2-abrmd.inc | |||
| @@ -11,6 +11,7 @@ DEPENDS += "autoconf-archive-native dbus glib-2.0 glib-2.0-native" | |||
| 11 | 11 | ||
| 12 | SRC_URI = "\ | 12 | SRC_URI = "\ |
| 13 | file://tpm2-abrmd-init.sh \ | 13 | file://tpm2-abrmd-init.sh \ |
| 14 | file://tpm2-abrmd.default \ | ||
| 14 | " | 15 | " |
| 15 | 16 | ||
| 16 | inherit autotools pkgconfig systemd update-rc.d useradd | 17 | inherit autotools pkgconfig systemd update-rc.d useradd |
| @@ -36,3 +37,11 @@ FILES_${PN} += "\ | |||
| 36 | ${systemd_unitdir}/system-preset \ | 37 | ${systemd_unitdir}/system-preset \ |
| 37 | ${datadir}/dbus-1/system-services/com.intel.tss2.Tabrmd.service \ | 38 | ${datadir}/dbus-1/system-services/com.intel.tss2.Tabrmd.service \ |
| 38 | " | 39 | " |
| 40 | |||
| 41 | do_install_append() { | ||
| 42 | install -d "${D}${sysconfdir}/init.d" | ||
| 43 | install -m 0755 "${WORKDIR}/tpm2-abrmd-init.sh" "${D}${sysconfdir}/init.d/tpm2-abrmd" | ||
| 44 | |||
| 45 | install -d "${D}${sysconfdir}/default" | ||
| 46 | install -m 0644 "${WORKDIR}/tpm2-abrmd.default" "${D}${sysconfdir}/default/tpm2-abrmd" | ||
| 47 | } | ||
diff --git a/meta-tpm2/recipes-tpm/tpm2-abrmd/tpm2-abrmd_1.3.1.bb b/meta-tpm2/recipes-tpm/tpm2-abrmd/tpm2-abrmd_1.3.1.bb index 6cdf373..4c5f727 100644 --- a/meta-tpm2/recipes-tpm/tpm2-abrmd/tpm2-abrmd_1.3.1.bb +++ b/meta-tpm2/recipes-tpm/tpm2-abrmd/tpm2-abrmd_1.3.1.bb | |||
| @@ -4,15 +4,6 @@ DEPENDS += "libtctidevice libtctisocket libtss2" | |||
| 4 | 4 | ||
| 5 | SRC_URI += " \ | 5 | SRC_URI += " \ |
| 6 | https://github.com/tpm2-software/${BPN}/releases/download/${PV}/${BPN}-${PV}.tar.gz \ | 6 | https://github.com/tpm2-software/${BPN}/releases/download/${PV}/${BPN}-${PV}.tar.gz \ |
| 7 | file://tpm2-abrmd.default \ | ||
| 8 | " | 7 | " |
| 9 | SRC_URI[md5sum] = "3f5f2461fd98aca0add1187e4705c0de" | 8 | SRC_URI[md5sum] = "3f5f2461fd98aca0add1187e4705c0de" |
| 10 | SRC_URI[sha256sum] = "859d777a0d2c5d78309c4a2f06879a1e914b41324ea8258920a778a1ad7e38ea" | 9 | SRC_URI[sha256sum] = "859d777a0d2c5d78309c4a2f06879a1e914b41324ea8258920a778a1ad7e38ea" |
| 11 | |||
| 12 | do_install_append() { | ||
| 13 | install -d "${D}${sysconfdir}/init.d" | ||
| 14 | install -m 0755 "${WORKDIR}/tpm2-abrmd-init.sh" "${D}${sysconfdir}/init.d/tpm2-abrmd" | ||
| 15 | |||
| 16 | install -d "${D}${sysconfdir}/default" | ||
| 17 | install -m 0644 "${WORKDIR}/tpm2-abrmd.default" "${D}${sysconfdir}/default/tpm2-abrmd" | ||
| 18 | } | ||
diff --git a/meta-tpm2/recipes-tpm/tpm2-abrmd/tpm2-abrmd_git.bb b/meta-tpm2/recipes-tpm/tpm2-abrmd/tpm2-abrmd_git.bb index 22d1d45..bcac1a1 100644 --- a/meta-tpm2/recipes-tpm/tpm2-abrmd/tpm2-abrmd_git.bb +++ b/meta-tpm2/recipes-tpm/tpm2-abrmd/tpm2-abrmd_git.bb | |||
| @@ -9,7 +9,6 @@ PV = "${PVBASE}.${SRCPV}" | |||
| 9 | 9 | ||
| 10 | SRC_URI += " \ | 10 | SRC_URI += " \ |
| 11 | git://github.com/01org/${BPN}.git;protocol=git;branch=master;name=${BPN};destsuffix=${BPN} \ | 11 | git://github.com/01org/${BPN}.git;protocol=git;branch=master;name=${BPN};destsuffix=${BPN} \ |
| 12 | file://tpm2-abrmd_git.default \ | ||
| 13 | " | 12 | " |
| 14 | 13 | ||
| 15 | SRCREV = "${AUTOREV}" | 14 | SRCREV = "${AUTOREV}" |
| @@ -24,12 +23,4 @@ do_configure_prepend () { | |||
| 24 | cd "${currentdir}" | 23 | cd "${currentdir}" |
| 25 | } | 24 | } |
| 26 | 25 | ||
| 27 | do_install_append() { | ||
| 28 | install -d "${D}${sysconfdir}/init.d" | ||
| 29 | install -m 0755 "${WORKDIR}/tpm2-abrmd-init.sh" "${D}${sysconfdir}/init.d/tpm2-abrmd" | ||
| 30 | |||
| 31 | install -d "${D}${sysconfdir}/default" | ||
| 32 | install -m 0644 "${WORKDIR}/tpm2-abrmd_git.default" "${D}${sysconfdir}/default/tpm2-abrmd" | ||
| 33 | } | ||
| 34 | |||
| 35 | RDEPENDS_${PN} += "tpm2-tss" | 26 | RDEPENDS_${PN} += "tpm2-tss" |
