diff options
author | Lans Zhang <jia.zhang@windriver.com> | 2017-07-05 10:52:10 +0800 |
---|---|---|
committer | Lans Zhang <jia.zhang@windriver.com> | 2017-07-05 10:52:10 +0800 |
commit | 7c83acd8618225324953d152714cc81d141b0c12 (patch) | |
tree | be81c0566da6a61c5f764ec31c15e3a7732b4598 | |
parent | 487c89348d3179e32e9e7442fab472a8fa1ae4e6 (diff) | |
download | meta-secure-core-7c83acd8618225324953d152714cc81d141b0c12.tar.gz |
Clean up RDEPENDS
Signed-off-by: Lans Zhang <jia.zhang@windriver.com>
5 files changed, 64 insertions, 32 deletions
diff --git a/meta-encrypted-storage/recipes-base/packagegroups/packagegroup-encrypted-storage-initramfs.bb b/meta-encrypted-storage/recipes-base/packagegroups/packagegroup-encrypted-storage-initramfs.bb index 88e8f7f..91c16fd 100644 --- a/meta-encrypted-storage/recipes-base/packagegroups/packagegroup-encrypted-storage-initramfs.bb +++ b/meta-encrypted-storage/recipes-base/packagegroups/packagegroup-encrypted-storage-initramfs.bb | |||
@@ -1,8 +1,8 @@ | |||
1 | include packagegroup-encrypted-storage.inc | ||
2 | |||
3 | DESCRIPTION = "The packages used for encrypted storage in initramfs." | 1 | DESCRIPTION = "The packages used for encrypted storage in initramfs." |
4 | 2 | ||
5 | RDEPENDS_${PN} += " \ | 3 | require packagegroup-encrypted-storage.inc |
4 | |||
5 | RDEPENDS_${PN} += "\ | ||
6 | cryptfs-tpm2-initramfs \ | 6 | cryptfs-tpm2-initramfs \ |
7 | packagegroup-tpm2-initramfs \ | 7 | packagegroup-tpm2-initramfs \ |
8 | " | 8 | " |
diff --git a/meta-encrypted-storage/recipes-base/packagegroups/packagegroup-encrypted-storage.bb b/meta-encrypted-storage/recipes-base/packagegroups/packagegroup-encrypted-storage.bb index 225eb6a..46ed2a8 100644 --- a/meta-encrypted-storage/recipes-base/packagegroups/packagegroup-encrypted-storage.bb +++ b/meta-encrypted-storage/recipes-base/packagegroups/packagegroup-encrypted-storage.bb | |||
@@ -1,13 +1,12 @@ | |||
1 | include packagegroup-encrypted-storage.inc | ||
2 | |||
3 | DESCRIPTION = "The packages used for encrypted storage." | 1 | DESCRIPTION = "The packages used for encrypted storage." |
4 | 2 | ||
3 | require packagegroup-encrypted-storage.inc | ||
4 | |||
5 | # Install the minimal stuffs only for the linux rootfs. | 5 | # Install the minimal stuffs only for the linux rootfs. |
6 | # The common packages shared between initramfs and rootfs | 6 | # The common packages shared between initramfs and rootfs |
7 | # are listed in the .inc. | 7 | # are listed in the .inc. |
8 | # @util-linux: fdisk | 8 | |
9 | # @parted: parted | 9 | RDEPENDS_${PN} += "\ |
10 | RDEPENDS_${PN} += " \ | ||
11 | util-linux-fdisk \ | 10 | util-linux-fdisk \ |
12 | parted \ | 11 | parted \ |
13 | packagegroup-tpm2 \ | 12 | packagegroup-tpm2 \ |
diff --git a/meta-encrypted-storage/recipes-base/packagegroups/packagegroup-encrypted-storage.inc b/meta-encrypted-storage/recipes-base/packagegroups/packagegroup-encrypted-storage.inc index ab4b778..ba041d3 100644 --- a/meta-encrypted-storage/recipes-base/packagegroups/packagegroup-encrypted-storage.inc +++ b/meta-encrypted-storage/recipes-base/packagegroups/packagegroup-encrypted-storage.inc | |||
@@ -1,25 +1,8 @@ | |||
1 | LICENSE = "MIT" | 1 | LICENSE = "MIT" |
2 | LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=4d92cd373abda3937c2bc47fbc49d690 \ | 2 | LIC_FILES_CHKSUM = "\ |
3 | file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420" | 3 | file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420 \ |
4 | " | ||
4 | 5 | ||
5 | ALLOW_EMPTY_${PN} = "1" | 6 | ALLOW_EMPTY_${PN} = "1" |
6 | 7 | ||
7 | S = "${WORKDIR}" | 8 | S = "${WORKDIR}" |
8 | |||
9 | # Install the minimal stuffs for the common uses between initramfs | ||
10 | # and linux rootfs. | ||
11 | # @util-linux: mount, umount | ||
12 | # @cryptsetup: cryptsetup | ||
13 | # @cryptfs-tpm: tpm_gen_dmcrypt_key, tpm_unwrap_dmcrypt_key | ||
14 | # @kmod: modprobe | ||
15 | # @coreutils: cat, mkdir, mknod, cp, rm | ||
16 | # @trousers: tcsd | ||
17 | RDEPENDS_${PN} = " \ | ||
18 | util-linux-mount \ | ||
19 | util-linux-umount \ | ||
20 | cryptsetup \ | ||
21 | kmod \ | ||
22 | coreutils \ | ||
23 | cryptfs-tpm2 \ | ||
24 | procps \ | ||
25 | " | ||
diff --git a/meta-encrypted-storage/recipes-tpm/cryptfs-tpm2/cryptfs-tpm2_git.bb b/meta-encrypted-storage/recipes-tpm/cryptfs-tpm2/cryptfs-tpm2_git.bb index cdbaddd..0f8a422 100644 --- a/meta-encrypted-storage/recipes-tpm/cryptfs-tpm2/cryptfs-tpm2_git.bb +++ b/meta-encrypted-storage/recipes-tpm/cryptfs-tpm2/cryptfs-tpm2_git.bb | |||
@@ -19,7 +19,7 @@ PV = "0.6.0+git${SRCPV}" | |||
19 | SRC_URI = "\ | 19 | SRC_URI = "\ |
20 | git://github.com/WindRiver-OpenSourceLabs/cryptfs-tpm2.git \ | 20 | git://github.com/WindRiver-OpenSourceLabs/cryptfs-tpm2.git \ |
21 | " | 21 | " |
22 | SRCREV = "55ffac41a08c49c0d202bd82bd8afe27d5b0f2ba" | 22 | SRCREV = "4f6a7a34cb7b0c0afd6c5f96c3de5b677a256cc5" |
23 | 23 | ||
24 | S = "${WORKDIR}/git" | 24 | S = "${WORKDIR}/git" |
25 | 25 | ||
@@ -41,8 +41,8 @@ PARALLEL_MAKE = "" | |||
41 | do_install() { | 41 | do_install() { |
42 | oe_runmake install DESTDIR="${D}" | 42 | oe_runmake install DESTDIR="${D}" |
43 | 43 | ||
44 | if [ x"${@bb.utils.contains('DISTRO_FEATURES', 'encrypted-storage', '1', '0', d)}" = x"1" ]; then | 44 | if [ "${@bb.utils.contains('DISTRO_FEATURES', 'encrypted-storage', '1', '0', d)}" = "1" ]; then |
45 | install -m 0500 ${S}/script/init.cryptfs ${D} | 45 | install -m 0500 "${S}/scripts/init.cryptfs" "${D}" |
46 | fi | 46 | fi |
47 | } | 47 | } |
48 | 48 | ||
@@ -54,8 +54,59 @@ FILES_${PN}-initramfs = "\ | |||
54 | /init.cryptfs \ | 54 | /init.cryptfs \ |
55 | " | 55 | " |
56 | 56 | ||
57 | # Install the minimal stuffs only, and don't care how the external | ||
58 | # environment is configured. | ||
59 | |||
60 | # For luks-setup.sh | ||
61 | # @bash: bash | ||
62 | # @coreutils: echo, printf, cat, rm | ||
63 | # @grep: grep | ||
64 | # @procps: pkill, pgrep | ||
65 | # @cryptsetup: cryptsetup | ||
66 | # @tpm2.0-tools: tpm2_* | ||
67 | # @tpm2-abrmd: optional | ||
57 | RDEPENDS_${PN} += "\ | 68 | RDEPENDS_${PN} += "\ |
58 | libtss2 \ | 69 | libtss2 \ |
59 | libtctidevice \ | 70 | libtctidevice \ |
60 | libtctisocket \ | 71 | libtctisocket \ |
72 | bash \ | ||
73 | coreutils \ | ||
74 | grep \ | ||
75 | procps \ | ||
76 | cryptsetup \ | ||
77 | " | ||
78 | |||
79 | RDEPENDS_${PN} = "\ | ||
80 | tpm2.0-tools \ | ||
81 | " | ||
82 | |||
83 | # For init.cryptfs | ||
84 | # @bash: bash | ||
85 | # @coreutils: echo, printf, cat, sleep, mkdir, seq, rm, rmdir, mknod, cut | ||
86 | # @grep: grep | ||
87 | # @gawk: awk | ||
88 | # @sed: sed | ||
89 | # @kmod: depmod, modprobe | ||
90 | # @cryptsetup: cryptsetup | ||
91 | # @cryptfs-tpm2: cryptfs-tpm2 | ||
92 | # @net-tools: ifconfig | ||
93 | # @util-linux: mount, umount, blkid | ||
94 | RDEPENDS_${PN}-initramfs = "\ | ||
95 | bash \ | ||
96 | coreutils \ | ||
97 | grep \ | ||
98 | gawk \ | ||
99 | sed \ | ||
100 | kmod \ | ||
101 | cryptsetup \ | ||
102 | cryptfs-tpm2 \ | ||
103 | net-tools \ | ||
104 | util-linux-mount \ | ||
105 | util-linux-umount \ | ||
106 | util-linux-blkid \ | ||
107 | " | ||
108 | |||
109 | RRECOMMENDS_${PN}-initramfs = "\ | ||
110 | kernel-module-tpm-crb \ | ||
111 | kernel-module-tpm-tis \ | ||
61 | " | 112 | " |
diff --git a/meta-integrity/recipes-core/initrdscripts/initrdscripts-ima.bb b/meta-integrity/recipes-core/initrdscripts/initrdscripts-ima.bb index 8e40392..737d8b7 100644 --- a/meta-integrity/recipes-core/initrdscripts/initrdscripts-ima.bb +++ b/meta-integrity/recipes-core/initrdscripts/initrdscripts-ima.bb | |||
@@ -23,7 +23,6 @@ FILES_${PN} += "\ | |||
23 | # Install the minimal stuffs only, and don't care how the external | 23 | # Install the minimal stuffs only, and don't care how the external |
24 | # environment is configured. | 24 | # environment is configured. |
25 | 25 | ||
26 | # @bash: sh | ||
27 | # @coreutils: echo, printf | 26 | # @coreutils: echo, printf |
28 | # @grep: grep | 27 | # @grep: grep |
29 | # @gawk: awk | 28 | # @gawk: awk |