aboutsummaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-support/devmem2/devmem2.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta-oe/recipes-support/devmem2/devmem2.bb')
-rw-r--r--meta-oe/recipes-support/devmem2/devmem2.bb6
1 files changed, 5 insertions, 1 deletions
diff --git a/meta-oe/recipes-support/devmem2/devmem2.bb b/meta-oe/recipes-support/devmem2/devmem2.bb
index c42eb5e0b..c86eb2e4b 100644
--- a/meta-oe/recipes-support/devmem2/devmem2.bb
+++ b/meta-oe/recipes-support/devmem2/devmem2.bb
@@ -3,12 +3,16 @@ LICENSE = "GPLv2+"
LIC_FILES_CHKSUM = "file://devmem2.c;endline=38;md5=a9eb9f3890384519f435aedf986297cf"
PR = "r7"
-SRC_URI = "http://www.free-electrons.com/pub/mirror/devmem2.c \
+SRC_URI = "http://www.free-electrons.com/pub/mirror/devmem2.c;downloadfilename=devmem2-new.c \
file://devmem2-fixups-2.patch;apply=yes;striplevel=0"
S = "${WORKDIR}"
CFLAGS += "-DFORCE_STRICT_ALIGNMENT"
+python do_unpack_append() {
+ os.rename("devmem2-new.c", "devmem2.c")
+}
+
do_compile() {
${CC} -o devmem2 devmem2.c ${CFLAGS} ${LDFLAGS}
}