blob: 9bd1eb73d7dba790c7789ad897320661f2b156a4 [file] [log] [blame]
Patrick Williamsb48b7b42016-08-17 15:04:38 -05001SUMMARY = "Simple program to read/write from/to any location in memory"
2LICENSE = "GPLv2+"
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 \
Armin Kuster066be202018-07-08 14:58:53 -07007 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 Williamsb48b7b42016-08-17 15:04:38 -050010S = "${WORKDIR}"
11
12CFLAGS += "-DFORCE_STRICT_ALIGNMENT"
13
Brad Bishop7f28bc52017-12-03 23:42:40 -050014python do_unpack_append() {
15 os.rename("devmem2-new.c", "devmem2.c")
16}
17
Patrick Williamsb48b7b42016-08-17 15:04:38 -050018do_compile() {
19 ${CC} -o devmem2 devmem2.c ${CFLAGS} ${LDFLAGS}
20}
21
22do_install() {
23 install -d ${D}${bindir}
24 install devmem2 ${D}${bindir}
25}
26
Brad Bishop7f28bc52017-12-03 23:42:40 -050027SRC_URI[md5sum] = "e23f236e94be4c429aa1ceac0f01544b"
28SRC_URI[sha256sum] = "3b15515693bae1ebd14d914e46d388edfec2175829ea1576a7a0c8606ebbe639"