-
Notifications
You must be signed in to change notification settings - Fork 106
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This adds `cryptsetup` and related utilities. We can use those to enable raw disk encryption or LUKS-based encryption. We could use the integrity modules as well if we need to. Signed-off-by: Andrey Smirnov <smirnov.andrey@gmail.com>
- Loading branch information
Showing
8 changed files
with
114 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: cryptsetup | ||
variant: scratch | ||
shell: /toolchain/bin/bash | ||
dependencies: | ||
- stage: base | ||
- stage: eudev # dependency for libdevmapper | ||
- stage: lvm2 # libdevmapper | ||
- stage: util-linux # libuuid | ||
- stage: libpopt | ||
- stage: libjson-c | ||
- stage: libressl | ||
steps: | ||
- sources: | ||
- url: https://www.kernel.org/pub/linux/utils/cryptsetup/v2.3/cryptsetup-2.3.3.tar.gz | ||
destination: cryptsetup.tar.gz | ||
sha256: 87159ec22130b0cb1b3fd5e7754b6d731294e27c124b99fe73bd6d072641ab58 | ||
sha512: 0dbcc68fa72caff19082eb00815a62498caf28f37d73bafa9212125500be9386ce322c2f63cc5ff1808de7c1ca983872c9122b7a12dfe360580a6d096dcbc1ed | ||
env: | ||
PKG_CONFIG_PATH: /usr/lib/pkgconfig | ||
prepare: | ||
- | | ||
tar -xzf cryptsetup.tar.gz --strip-components=1 | ||
./configure \ | ||
--prefix=/usr \ | ||
--enable-static-cryptsetup || (cat config.log; exit 1) | ||
build: | ||
- | | ||
make -j $(nproc) | ||
install: | ||
- | | ||
make install DESTDIR=/rootfs | ||
finalize: | ||
- from: /rootfs | ||
to: / |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: libjson-c | ||
variant: scratch | ||
shell: /toolchain/bin/bash | ||
dependencies: | ||
- stage: base | ||
steps: | ||
- sources: | ||
- url: https://s3.amazonaws.com/json-c_releases/releases/json-c-0.15.tar.gz | ||
destination: json-c.tar.gz | ||
sha256: b8d80a1ddb718b3ba7492916237bbf86609e9709fb007e7f7d4322f02341a4c6 | ||
sha512: dc01298bcc78f0f31a34f5fcfe45c0feebfd88518e97fb4f96f1a652f71ccdd303415a4c7bf5b573bdcbcca80428281f0dfccefc6545ea3a7f18dbb819332f34 | ||
prepare: | ||
- | | ||
tar -xzf json-c.tar.gz --strip-components=1 | ||
cmake -B build \ | ||
-DCMAKE_INSTALL_PREFIX=/usr \ | ||
-DCMAKE_INSTALL_LIBDIR=lib \ | ||
-DBUILD_SHARED_LIBS=True \ | ||
-DBUILD_STATIC_LIBS=True \ | ||
-DCMAKE_BUILD_TYPE=None \ | ||
. | ||
build: | ||
- | | ||
make -C build -j $(nproc) | ||
install: | ||
- | | ||
make -C build DESTDIR=/rootfs install | ||
finalize: | ||
- from: /rootfs | ||
to: / |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: libpopt | ||
variant: scratch | ||
shell: /toolchain/bin/bash | ||
dependencies: | ||
- stage: base | ||
steps: | ||
- sources: | ||
- url: http://ftp.rpm.org/popt/releases/popt-1.x/popt-1.18.tar.gz | ||
destination: popt.tar.gz | ||
sha256: 5159bc03a20b28ce363aa96765f37df99ea4d8850b1ece17d1e6ad5c24fdc5d1 | ||
sha512: 86422e8762adda3d02d46c20ac74ffe389d4f991d552b6fea729f007345b6426cbeb71160284e2deaa2ce44ce754a9e6cf6ccbd64bff9bc2253df40cdc2f79a5 | ||
prepare: | ||
- | | ||
tar -xzf popt.tar.gz --strip-components=1 | ||
./configure \ | ||
--prefix=/usr | ||
build: | ||
- | | ||
make -j $(nproc) | ||
install: | ||
- | | ||
make install DESTDIR=/rootfs | ||
finalize: | ||
- from: /rootfs | ||
to: / |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
diff --git a/tools/Makefile.in b/tools/Makefile.in | ||
index 2620daa17..3912f2d61 100644 | ||
--- a/tools/Makefile.in | ||
+++ b/tools/Makefile.in | ||
@@ -136,7 +136,7 @@ man-generator: man-generator.o | ||
|
||
lvm.static: $(OBJECTS) lvm-static.o $(LVMINTERNAL_LIBS) | ||
@echo " [CC] $@" | ||
- $(Q) $(CC) $(CFLAGS) $(LDFLAGS) -static -L$(interfacebuilddir) -o $@ $+ \ | ||
+ $(Q) $(CC) $(CFLAGS) $(LDFLAGS) -static -L$(top_builddir)/libdm/ioctl -o $@ $+ \ | ||
$(DMEVENT_LIBS) $(STATIC_LIBS) $(LVMLIBS) | ||
|
||
liblvm2cmd.a: $(top_builddir)/lib/liblvm-internal.a $(OBJECTS) lvmcmdlib.o lvm2cmd.o |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters