]> git.karo-electronics.de Git - meta-kc-bsp.git/commitdiff
overlayfs-tools: new recipe
authorFlorian Boor <florian@kernelconcepts.de>
Fri, 12 Oct 2018 16:14:12 +0000 (18:14 +0200)
committerFlorian Boor <florian@kernelconcepts.de>
Fri, 12 Oct 2018 16:14:12 +0000 (18:14 +0200)
recipes-support/overlayfs-tools/overlayfs-tools/0001-Drop-hard-coded-compiler-stuff.patch [new file with mode: 0644]
recipes-support/overlayfs-tools/overlayfs-tools/0002-Fix-linking.patch [new file with mode: 0644]
recipes-support/overlayfs-tools/overlayfs-tools_git.bb [new file with mode: 0644]

diff --git a/recipes-support/overlayfs-tools/overlayfs-tools/0001-Drop-hard-coded-compiler-stuff.patch b/recipes-support/overlayfs-tools/overlayfs-tools/0001-Drop-hard-coded-compiler-stuff.patch
new file mode 100644 (file)
index 0000000..ad6e973
--- /dev/null
@@ -0,0 +1,24 @@
+From c37ad3c4e8b505effd860615785113abd75de659 Mon Sep 17 00:00:00 2001
+From: Florian Boor <florian@kernelconcepts.de>
+Date: Fri, 12 Oct 2018 17:38:19 +0200
+Subject: [PATCH 1/2] Drop hard coded compiler stuff
+
+---
+ makefile | 4 ----
+ 1 file changed, 4 deletions(-)
+
+diff --git a/makefile b/makefile
+index 8a77ecd..0af149a 100644
+--- a/makefile
++++ b/makefile
+@@ -1,7 +1,3 @@
+-CFLAGS = -Wall -std=c99
+-LFLAGS = -lm
+-CC = gcc
+-
+ all: overlay
+ overlay: main.o logic.o sh.o
+-- 
+2.11.0
+
diff --git a/recipes-support/overlayfs-tools/overlayfs-tools/0002-Fix-linking.patch b/recipes-support/overlayfs-tools/overlayfs-tools/0002-Fix-linking.patch
new file mode 100644 (file)
index 0000000..55f4667
--- /dev/null
@@ -0,0 +1,25 @@
+From 875cc2ec794b27bcf64fca81f4b278f269bcb540 Mon Sep 17 00:00:00 2001
+From: Florian Boor <florian@kernelconcepts.de>
+Date: Fri, 12 Oct 2018 18:10:22 +0200
+Subject: [PATCH 2/2] Fix linking
+
+---
+ makefile | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/makefile b/makefile
+index 0af149a..d745e2d 100644
+--- a/makefile
++++ b/makefile
+@@ -1,7 +1,7 @@
+ all: overlay
+ overlay: main.o logic.o sh.o
+-      $(CC) $(LFLAGS) main.o logic.o sh.o -o overlay
++      $(CCLD) $(LDFLAGS) main.o logic.o sh.o -o overlay
+ main.o: main.c logic.h
+       $(CC) $(CFLAGS) -c main.c
+-- 
+2.11.0
+
diff --git a/recipes-support/overlayfs-tools/overlayfs-tools_git.bb b/recipes-support/overlayfs-tools/overlayfs-tools_git.bb
new file mode 100644 (file)
index 0000000..e9376c4
--- /dev/null
@@ -0,0 +1,33 @@
+SUMMARY = "Utitlites fpr working with OverlayFS"
+HOMEPAGE = "https://github.com/kmxz/overlayfs-tools"
+SECTION = "Applications/System"
+LICENSE = "WTFPL"
+LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=f312a7c4d02230e8f2b537295d375c69"
+
+DEPENDS = "attr"
+
+SRCREV = "0d44989f1ab7f2e0f565e58f9aff7a9cffb32cd7"
+PV = "0.1+git${SRCPV}"
+
+S = "${WORKDIR}/git"
+B = "${S}"
+
+SRC_URI = "git://github.com/kmxz/overlayfs-tools \
+           file://0001-Drop-hard-coded-compiler-stuff.patch \
+           file://0002-Fix-linking.patch \
+           "
+
+inherit base
+
+do_configure () {
+}
+
+do_compile () {
+       oe_runmake overlay
+}
+
+do_install() {
+       install -d ${D}${bindir}
+       install -m 644 ${B}/overlay ${D}/${bindir}/overlay
+}
+