diff options
Diffstat (limited to 'meta-openembedded/meta-oe/recipes-support/devmem2/devmem2.bb')
-rw-r--r-- | meta-openembedded/meta-oe/recipes-support/devmem2/devmem2.bb | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/meta-openembedded/meta-oe/recipes-support/devmem2/devmem2.bb b/meta-openembedded/meta-oe/recipes-support/devmem2/devmem2.bb new file mode 100644 index 000000000..c86eb2e4b --- /dev/null +++ b/meta-openembedded/meta-oe/recipes-support/devmem2/devmem2.bb @@ -0,0 +1,26 @@ +SUMMARY = "Simple program to read/write from/to any location in memory" +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;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} +} + +do_install() { + install -d ${D}${bindir} + install devmem2 ${D}${bindir} +} + +SRC_URI[md5sum] = "e23f236e94be4c429aa1ceac0f01544b" +SRC_URI[sha256sum] = "3b15515693bae1ebd14d914e46d388edfec2175829ea1576a7a0c8606ebbe639" |