diff options
Diffstat (limited to 'recipes-support/sbsigntool/sbsigntool-native_git.bb')
-rw-r--r-- | recipes-support/sbsigntool/sbsigntool-native_git.bb | 84 |
1 files changed, 0 insertions, 84 deletions
diff --git a/recipes-support/sbsigntool/sbsigntool-native_git.bb b/recipes-support/sbsigntool/sbsigntool-native_git.bb deleted file mode 100644 index a45a3dea..00000000 --- a/recipes-support/sbsigntool/sbsigntool-native_git.bb +++ /dev/null | |||
@@ -1,84 +0,0 @@ | |||
1 | DESCRIPTION = "Utility for signing and verifying files for UEFI Secure Boot" | ||
2 | LICENSE = "GPL-3.0-only & LGPL-2.1-only & LGPL-3.0-only & MIT" | ||
3 | |||
4 | # sbsigntool statically links to libccan.a which is built with modules | ||
5 | # passed to "create-ccan-tree" (and their dependencies). Therefore, | ||
6 | # we also keep track of all the ccan module licenses. | ||
7 | LIC_FILES_CHKSUM = "file://LICENSE.GPLv3;md5=9eef91148a9b14ec7f9df333daebc746 \ | ||
8 | file://COPYING;md5=a7710ac18adec371b84a9594ed04fd20 \ | ||
9 | file://lib/ccan.git/ccan/endian/LICENSE;md5=2d5025d4aa3495befef8f17206a5b0a1 \ | ||
10 | file://lib/ccan.git/ccan/htable/LICENSE;md5=2d5025d4aa3495befef8f17206a5b0a1 \ | ||
11 | file://lib/ccan.git/ccan/list/LICENSE;md5=2d5025d4aa3495befef8f17206a5b0a1 \ | ||
12 | file://lib/ccan.git/ccan/read_write_all/LICENSE;md5=2d5025d4aa3495befef8f17206a5b0a1 \ | ||
13 | file://lib/ccan.git/ccan/talloc/LICENSE;md5=2d5025d4aa3495befef8f17206a5b0a1 \ | ||
14 | file://lib/ccan.git/ccan/typesafe_cb/LICENSE;md5=2d5025d4aa3495befef8f17206a5b0a1 \ | ||
15 | file://lib/ccan.git/ccan/failtest/LICENSE;md5=6a6a8e020838b23406c81b19c1d46df6 \ | ||
16 | file://lib/ccan.git/ccan/tlist/LICENSE;md5=6a6a8e020838b23406c81b19c1d46df6 \ | ||
17 | file://lib/ccan.git/ccan/time/LICENSE;md5=838c366f69b72c5df05c96dff79b35f2 \ | ||
18 | " | ||
19 | |||
20 | # The original upstream is git://kernel.ubuntu.com/jk/sbsigntool but it has | ||
21 | # not been maintained and many patches have been backported in this repo. | ||
22 | SRC_URI = "git://git.kernel.org/pub/scm/linux/kernel/git/jejb/sbsigntools.git;protocol=https;name=sbsigntools;branch=master \ | ||
23 | git://github.com/rustyrussell/ccan.git;protocol=https;destsuffix=git/lib/ccan.git;name=ccan;branch=master \ | ||
24 | file://0001-configure-Fixup-build-dependencies-for-cross-compili.patch \ | ||
25 | file://0002-fix-openssl-3-0.patch \ | ||
26 | " | ||
27 | |||
28 | SRCREV_sbsigntools ?= "f12484869c9590682ac3253d583bf59b890bb826" | ||
29 | SRCREV_ccan ?= "b1f28e17227f2320d07fe052a8a48942fe17caa5" | ||
30 | SRCREV_FORMAT = "sbsigntools_ccan" | ||
31 | |||
32 | DEPENDS = "binutils-native gnu-efi-native help2man-native openssl-native util-linux-native" | ||
33 | |||
34 | PV = "0.9.4-git${SRCPV}" | ||
35 | |||
36 | S = "${WORKDIR}/git" | ||
37 | |||
38 | inherit autotools pkgconfig | ||
39 | inherit native | ||
40 | |||
41 | do_configure:prepend() { | ||
42 | cd ${S} | ||
43 | |||
44 | sed -i s#RECIPE_SYSROOT#${RECIPE_SYSROOT_NATIVE}#g configure.ac | ||
45 | |||
46 | if [ ! -e lib/ccan ]; then | ||
47 | |||
48 | # Use empty SCOREDIR because 'make scores' is not run. | ||
49 | # The default setting depends on (non-whitelisted) host tools. | ||
50 | sed -i -e 's#^\(SCOREDIR=\).*#\1#' lib/ccan.git/Makefile | ||
51 | |||
52 | lib/ccan.git/tools/create-ccan-tree \ | ||
53 | --build-type=automake lib/ccan \ | ||
54 | talloc read_write_all build_assert array_size endian | ||
55 | fi | ||
56 | |||
57 | # Create generatable docs from git | ||
58 | ( | ||
59 | echo "Authors of sbsigntool:" | ||
60 | echo | ||
61 | git log --format='%an' | sort -u | sed 's,^,\t,' | ||
62 | ) > AUTHORS | ||
63 | |||
64 | # Generate simple ChangeLog | ||
65 | git log --date=short --format='%ad %t %an <%ae>%n%n * %s%n' > ChangeLog | ||
66 | |||
67 | cd ${B} | ||
68 | } | ||
69 | |||
70 | def efi_arch(d): | ||
71 | import re | ||
72 | harch = d.getVar("HOST_ARCH") | ||
73 | if re.match("i[3456789]86", harch): | ||
74 | return "ia32" | ||
75 | return harch | ||
76 | |||
77 | EXTRA_OEMAKE = "\ | ||
78 | INCLUDES+='-I${S}/lib/ccan.git/ \ | ||
79 | -I${STAGING_INCDIR_NATIVE}/efi \ | ||
80 | -I${STAGING_INCDIR_NATIVE} \ | ||
81 | -I${STAGING_INCDIR_NATIVE}/efi/${@efi_arch(d)}' \ | ||
82 | " | ||
83 | |||
84 | CFLAGS:append = " -Wno-error" | ||