blob: 92c05fe065d5afabec83d19ac617790b9abc3280 [file] [log] [blame]
Patrick Williamsb48b7b42016-08-17 15:04:38 -05001SUMMARY = "Simple program to read/write from/to any location in memory"
Andrew Geissler9aee5002022-03-30 16:27:02 +00002LICENSE = "GPL-2.0-or-later"
Brad Bishop7f28bc52017-12-03 23:42:40 -05003LIC_FILES_CHKSUM = "file://devmem2.c;endline=38;md5=a9eb9f3890384519f435aedf986297cf"
Patrick Williamsb48b7b42016-08-17 15:04:38 -05004PR = "r7"
5
Brad Bishop7f28bc52017-12-03 23:42:40 -05006SRC_URI = "http://www.free-electrons.com/pub/mirror/devmem2.c;downloadfilename=devmem2-new.c \
Andrew Geissler9aee5002022-03-30 16:27:02 +00007 "
Armin Kuster066be202018-07-08 14:58:53 -07008
Patrick Williamsb48b7b42016-08-17 15:04:38 -05009S = "${WORKDIR}"
10
11CFLAGS += "-DFORCE_STRICT_ALIGNMENT"
12
Patrick Williams213cb262021-08-07 19:21:33 -050013python do_unpack:append() {
Brad Bishop7f28bc52017-12-03 23:42:40 -050014 os.rename("devmem2-new.c", "devmem2.c")
15}
16
Patrick Williamsb48b7b42016-08-17 15:04:38 -050017do_compile() {
18 ${CC} -o devmem2 devmem2.c ${CFLAGS} ${LDFLAGS}
19}
20
21do_install() {
22 install -d ${D}${bindir}
23 install devmem2 ${D}${bindir}
24}
25
Brad Bishop7f28bc52017-12-03 23:42:40 -050026SRC_URI[md5sum] = "e23f236e94be4c429aa1ceac0f01544b"
27SRC_URI[sha256sum] = "3b15515693bae1ebd14d914e46d388edfec2175829ea1576a7a0c8606ebbe639"