From 1b72adaf437916a442a4568b0576a878af4d75d5 Mon Sep 17 00:00:00 2001 From: Florian Boor Date: Fri, 12 Oct 2018 18:14:12 +0200 Subject: [PATCH] overlayfs-tools: new recipe --- .../0001-Drop-hard-coded-compiler-stuff.patch | 24 ++++++++++++++ .../overlayfs-tools/0002-Fix-linking.patch | 25 ++++++++++++++ .../overlayfs-tools/overlayfs-tools_git.bb | 33 +++++++++++++++++++ 3 files changed, 82 insertions(+) create mode 100644 recipes-support/overlayfs-tools/overlayfs-tools/0001-Drop-hard-coded-compiler-stuff.patch create mode 100644 recipes-support/overlayfs-tools/overlayfs-tools/0002-Fix-linking.patch create mode 100644 recipes-support/overlayfs-tools/overlayfs-tools_git.bb 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 index 0000000..ad6e973 --- /dev/null +++ b/recipes-support/overlayfs-tools/overlayfs-tools/0001-Drop-hard-coded-compiler-stuff.patch @@ -0,0 +1,24 @@ +From c37ad3c4e8b505effd860615785113abd75de659 Mon Sep 17 00:00:00 2001 +From: Florian Boor +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 index 0000000..55f4667 --- /dev/null +++ b/recipes-support/overlayfs-tools/overlayfs-tools/0002-Fix-linking.patch @@ -0,0 +1,25 @@ +From 875cc2ec794b27bcf64fca81f4b278f269bcb540 Mon Sep 17 00:00:00 2001 +From: Florian Boor +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 index 0000000..e9376c4 --- /dev/null +++ b/recipes-support/overlayfs-tools/overlayfs-tools_git.bb @@ -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 +} + -- 2.39.2