diff options
-rw-r--r-- | recipes/nandlogical/nandlogical-static_1.0.0.bb | 4 | ||||
-rw-r--r-- | recipes/nandlogical/nandlogical_1.0.0.bb | 8 |
2 files changed, 7 insertions, 5 deletions
diff --git a/recipes/nandlogical/nandlogical-static_1.0.0.bb b/recipes/nandlogical/nandlogical-static_1.0.0.bb index e2eaf4e1f5..ceeba555c3 100644 --- a/recipes/nandlogical/nandlogical-static_1.0.0.bb +++ b/recipes/nandlogical/nandlogical-static_1.0.0.bb @@ -1,5 +1,7 @@ +PR = "r2" + require nandlogical_${PV}.bb do_compile () { - ${CC} -o nandlogical ${WORKDIR}/nandlogical.c -static + ${CC} nandlogical.c -o nandlogical ${CFLAGS} ${LDFLAGS} } diff --git a/recipes/nandlogical/nandlogical_1.0.0.bb b/recipes/nandlogical/nandlogical_1.0.0.bb index ba851bf513..d567b48a3c 100644 --- a/recipes/nandlogical/nandlogical_1.0.0.bb +++ b/recipes/nandlogical/nandlogical_1.0.0.bb @@ -2,17 +2,17 @@ DESCRIPTION = "Nandlogical for Sharp mtd1" LICENSE = "GPL" DEPENDS = "mtd-utils" COMPATIBLE_MACHINE = "(poodle|c7x0|akita|spitz|tosa)" -PR = "r1" +PR = "r2" SRC_URI = "file://nandlogical.c" -S = "${WORKDIR}/${P}" +S = "${WORKDIR}" do_compile () { - ${CC} -o nandlogical ${WORKDIR}/nandlogical.c + ${CC} nandlogical.c -o nandlogical ${CFLAGS} ${LDFLAGS} } do_install () { install -d ${D}${bindir}/ - install -m 0755 ${WORKDIR}/${P}/nandlogical ${D}${bindir}/ + install -m 0755 nandlogical ${D}${bindir}/ } |