devmem2: enable strict alignment
authorChris Larson <chris_larson@mentor.com>
Tue, 18 Jan 2011 15:23:33 +0000 (08:23 -0700)
committerChris Larson <chris_larson@mentor.com>
Tue, 18 Jan 2011 15:23:33 +0000 (08:23 -0700)
Signed-off-by: Chris Larson <chris_larson@mentor.com>
recipes/devmem2/devmem2.bb

index 0baa7f0..2d1e67b 100644 (file)
@@ -1,11 +1,13 @@
 DESCRIPTION = "Simple program to read/write from/to any location in memory."
 LICENSE = "GPLv2"
-PR = "r6"
+PR = "r7"
 
 SRC_URI = "http://www.lartmaker.nl/lartware/port/devmem2.c \
            file://devmem2-fixups-2.patch;apply=yes;striplevel=0"
 S = "${WORKDIR}"
 
+CFLAGS += "-DFORCE_STRICT_ALIGNMENT"
+
 do_compile() {
        ${CC} -o devmem2 devmem2.c ${CFLAGS} ${LDFLAGS}
 }