summaryrefslogtreecommitdiff
path: root/lib/efi_selftest
diff options
context:
space:
mode:
authorHeinrich Schuchardt <xypron.glpk@gmx.de>2019-03-11 22:04:51 +0100
committerHeinrich Schuchardt <xypron.glpk@gmx.de>2019-03-14 21:03:14 +0100
commite616100eab84464f09baa93b3fe5c15087a385c1 (patch)
tree8de7995d0936281661ee89cbb5c41969c478e929 /lib/efi_selftest
parent3eeb09b4c06fd6eb5c724b21cd2ac538fc015a31 (diff)
downloadu-boot-e616100eab84464f09baa93b3fe5c15087a385c1.tar.gz
u-boot-e616100eab84464f09baa93b3fe5c15087a385c1.tar.bz2
u-boot-e616100eab84464f09baa93b3fe5c15087a385c1.zip
efi_loader: fix build error for freestanding.o
Since commit f51a226436a87 ("efi_loader: provide freestanding library") in parallel builds errors lib/efi_selftest/../efi_loader/efi_freestanding.o: file not recognized: File truncated occur. Obviously make cannot correctly sequence parallel builds with a dependency like ../efi_loader/efi_freestanding.o. Fixes: f51a226436a87 ("efi_loader: provide freestanding library") Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Diffstat (limited to 'lib/efi_selftest')
-rw-r--r--lib/efi_selftest/efi_freestanding.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/efi_selftest/efi_freestanding.c b/lib/efi_selftest/efi_freestanding.c
new file mode 100644
index 0000000000..4b6c27e99f
--- /dev/null
+++ b/lib/efi_selftest/efi_freestanding.c
@@ -0,0 +1,11 @@
+// SPDX-License-Identifier: GPL-2.0+
+/*
+ * Library for freestanding binary
+ *
+ * Copyright 2019, Heinrich Schuchardt <xypron.glpk@gmx.de>
+ *
+ * GCC requires that freestanding programs provide memcpy(), memmove(),
+ * memset(), and memcmp().
+ */
+
+#include "../efi_loader/efi_freestanding.c"