Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 1 | SUMMARY = "Simple program to read/write from/to any location in memory" |
| 2 | LICENSE = "GPLv2+" |
Brad Bishop | 7f28bc5 | 2017-12-03 23:42:40 -0500 | [diff] [blame] | 3 | LIC_FILES_CHKSUM = "file://devmem2.c;endline=38;md5=a9eb9f3890384519f435aedf986297cf" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 4 | PR = "r7" |
| 5 | |
Brad Bishop | 7f28bc5 | 2017-12-03 23:42:40 -0500 | [diff] [blame] | 6 | SRC_URI = "http://www.free-electrons.com/pub/mirror/devmem2.c;downloadfilename=devmem2-new.c \ |
Armin Kuster | 066be20 | 2018-07-08 14:58:53 -0700 | [diff] [blame] | 7 | file://devmem2-fixups-2.patch;apply=yes;striplevel=0 \ |
| 8 | file://0001-devmem.c-ensure-word-is-32-bit-and-add-support-for-6.patch" |
| 9 | |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 10 | S = "${WORKDIR}" |
| 11 | |
| 12 | CFLAGS += "-DFORCE_STRICT_ALIGNMENT" |
| 13 | |
Brad Bishop | 7f28bc5 | 2017-12-03 23:42:40 -0500 | [diff] [blame] | 14 | python do_unpack_append() { |
| 15 | os.rename("devmem2-new.c", "devmem2.c") |
| 16 | } |
| 17 | |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 18 | do_compile() { |
| 19 | ${CC} -o devmem2 devmem2.c ${CFLAGS} ${LDFLAGS} |
| 20 | } |
| 21 | |
| 22 | do_install() { |
| 23 | install -d ${D}${bindir} |
| 24 | install devmem2 ${D}${bindir} |
| 25 | } |
| 26 | |
Brad Bishop | 7f28bc5 | 2017-12-03 23:42:40 -0500 | [diff] [blame] | 27 | SRC_URI[md5sum] = "e23f236e94be4c429aa1ceac0f01544b" |
| 28 | SRC_URI[sha256sum] = "3b15515693bae1ebd14d914e46d388edfec2175829ea1576a7a0c8606ebbe639" |