aboutsummaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-support/devmem2/devmem2.bb
diff options
context:
space:
mode:
authorDenys Dmytriyenko <denys@ti.com>2018-06-20 19:18:24 -0400
committerArmin Kuster <akuster808@gmail.com>2018-08-19 07:19:58 -0700
commit4504d2e78d544ef649dede6148675cef3ca500e3 (patch)
tree69b1ad732bb35b24fb4dcc66aa4aebbe88252bca /meta-oe/recipes-support/devmem2/devmem2.bb
parent3c978f910eee6f356eeced35f902461a86f2f2f4 (diff)
downloadmeta-openembedded-4504d2e78d544ef649dede6148675cef3ca500e3.tar.gz
meta-openembedded-4504d2e78d544ef649dede6148675cef3ca500e3.tar.bz2
meta-openembedded-4504d2e78d544ef649dede6148675cef3ca500e3.zip
devmem2: ensure word is 32-bit, add support for 64-bit long
Since sizeof(unsigned long) can be 8-byte on 64-bit architectures, use uint32_t instead for "word" access to always be 4-byte/32-bit long. Also introduce proper "long" 8-byte/64-bit access by using uint64_t. Signed-off-by: Denys Dmytriyenko <denys@ti.com> Signed-off-by: Khem Raj <raj.khem@gmail.com> (cherry picked from commit 1bcd15ed5b31bdec492af99f671718d7a6eb887b) Signed-off-by: Armin Kuster <akuster808@gmail.com>
Diffstat (limited to 'meta-oe/recipes-support/devmem2/devmem2.bb')
-rw-r--r--meta-oe/recipes-support/devmem2/devmem2.bb4
1 files changed, 3 insertions, 1 deletions
diff --git a/meta-oe/recipes-support/devmem2/devmem2.bb b/meta-oe/recipes-support/devmem2/devmem2.bb
index c86eb2e4b..9bd1eb73d 100644
--- a/meta-oe/recipes-support/devmem2/devmem2.bb
+++ b/meta-oe/recipes-support/devmem2/devmem2.bb
@@ -4,7 +4,9 @@ LIC_FILES_CHKSUM = "file://devmem2.c;endline=38;md5=a9eb9f3890384519f435aedf9862
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"
+ file://devmem2-fixups-2.patch;apply=yes;striplevel=0 \
+ file://0001-devmem.c-ensure-word-is-32-bit-and-add-support-for-6.patch"
+
S = "${WORKDIR}"
CFLAGS += "-DFORCE_STRICT_ALIGNMENT"