diff options
author | Marek Vasut <marex@denx.de> | 2016-03-17 13:31:34 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-03-20 23:12:28 +0000 |
commit | 797ffc85a89f68ad321743977015ebd3552184e5 (patch) | |
tree | 30673fa04c5a2331caeba40a4f575d08d5c63368 /meta/recipes-support | |
parent | 238e2c191b753f31f180fc20f4317df328c6061f (diff) | |
download | poky-797ffc85a89f68ad321743977015ebd3552184e5.tar.gz |
bdgwc: Backport nios2 support
Backport patch from bdwgc mainline which adds initial
support for nios2 architecture.
(From OE-Core rev: e93885ef51c14921aefe2e56cf990058a5903f17)
Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Ley Foon Tan <lftan@altera.com>
Cc: Richard Purdie <richard.purdie@linuxfoundation.org>
Cc: Ross Burton <ross.burton@intel.com>
Cc: Thomas Chou <thomas@wytron.com.tw>
Cc: Walter Goossens <waltergoossens@home.nl>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-support')
-rw-r--r-- | meta/recipes-support/bdwgc/bdwgc/0002-Altera-NIOS2-support.patch | 71 | ||||
-rw-r--r-- | meta/recipes-support/bdwgc/bdwgc_7.4.2.bb | 1 |
2 files changed, 72 insertions, 0 deletions
diff --git a/meta/recipes-support/bdwgc/bdwgc/0002-Altera-NIOS2-support.patch b/meta/recipes-support/bdwgc/bdwgc/0002-Altera-NIOS2-support.patch new file mode 100644 index 0000000000..c73c5400cf --- /dev/null +++ b/meta/recipes-support/bdwgc/bdwgc/0002-Altera-NIOS2-support.patch | |||
@@ -0,0 +1,71 @@ | |||
1 | From 2571df0e30b4976d7a12dbc6fbec4f1c4027924d Mon Sep 17 00:00:00 2001 | ||
2 | From: Marek Vasut <marex@denx.de> | ||
3 | Date: Thu, 28 Jan 2016 04:13:13 +0100 | ||
4 | Subject: [PATCH] Altera NIOS2 support | ||
5 | |||
6 | Add simple nios2 configuration support. | ||
7 | |||
8 | * include/private/gcconfig.h (NIOS2): New macro. | ||
9 | * include/private/gcconfig.h (mach_type_known, CPP_WORDSZ, MACH_TYPE, | ||
10 | OS_TYPE, DYNAMIC_LOADING, _end, __data_start, DATASTART, DATAEND, | ||
11 | ALIGNMENT, HBLKSIZE, HBLKSIZE, LINUX_STACKBOTTOM, NO_GETCONTEXT): | ||
12 | Define for NIOS2. | ||
13 | |||
14 | Signed-off-by: Marek Vasut <marex@denx.de> | ||
15 | Upstream-Status: Backport [ https://github.com/ivmai/bdwgc.git 2571df0e30b4976d7a12dbc6fbec4f1c4027924d ] | ||
16 | --- | ||
17 | include/private/gcconfig.h | 24 +++++++++++++++++++++++- | ||
18 | 1 file changed, 23 insertions(+), 1 deletion(-) | ||
19 | |||
20 | diff --git a/include/private/gcconfig.h b/include/private/gcconfig.h | ||
21 | index c467c26..92d4727 100644 | ||
22 | --- a/include/private/gcconfig.h | ||
23 | +++ b/include/private/gcconfig.h | ||
24 | @@ -181,6 +181,10 @@ | ||
25 | # endif | ||
26 | # define mach_type_known | ||
27 | # endif | ||
28 | +# if defined(__NIOS2__) || defined(__NIOS2) || defined(__nios2__) | ||
29 | +# define NIOS2 /* Altera NIOS2 */ | ||
30 | +# define mach_type_known | ||
31 | +# endif | ||
32 | # if defined(DGUX) && (defined(i386) || defined(__i386__)) | ||
33 | # define I386 | ||
34 | # ifndef _USING_DGUX | ||
35 | @@ -1658,6 +1662,24 @@ | ||
36 | # endif | ||
37 | # endif | ||
38 | |||
39 | +# ifdef NIOS2 | ||
40 | +# define CPP_WORDSZ 32 | ||
41 | +# define MACH_TYPE "NIOS2" | ||
42 | +# ifdef LINUX | ||
43 | +# define OS_TYPE "LINUX" | ||
44 | +# define DYNAMIC_LOADING | ||
45 | + extern int _end[]; | ||
46 | + extern int __data_start[]; | ||
47 | +# define DATASTART ((ptr_t)(__data_start)) | ||
48 | +# define DATAEND ((ptr_t)(_end)) | ||
49 | +# define ALIGNMENT 4 | ||
50 | +# ifndef HBLKSIZE | ||
51 | +# define HBLKSIZE 4096 | ||
52 | +# endif | ||
53 | +# define LINUX_STACKBOTTOM | ||
54 | +# endif /* Linux */ | ||
55 | +# endif | ||
56 | + | ||
57 | # ifdef HP_PA | ||
58 | # define MACH_TYPE "HP_PA" | ||
59 | # ifdef __LP64__ | ||
60 | @@ -2622,6 +2644,7 @@ | ||
61 | #if ((defined(UNIX_LIKE) && (defined(DARWIN) || defined(HURD) \ | ||
62 | || defined(OPENBSD) || defined(ARM32) \ | ||
63 | - || defined(MIPS) || defined(AVR32))) \ | ||
64 | + || defined(MIPS) || defined(AVR32) \ | ||
65 | + || defined(NIOS2))) \ | ||
66 | || (defined(LINUX) && (defined(SPARC) || defined(M68K))) \ | ||
67 | || ((defined(RTEMS) || defined(PLATFORM_ANDROID)) && defined(I386))) \ | ||
68 | && !defined(NO_GETCONTEXT) | ||
69 | -- | ||
70 | 2.7.0 | ||
71 | |||
diff --git a/meta/recipes-support/bdwgc/bdwgc_7.4.2.bb b/meta/recipes-support/bdwgc/bdwgc_7.4.2.bb index 209f533b14..2e6ccf2db0 100644 --- a/meta/recipes-support/bdwgc/bdwgc_7.4.2.bb +++ b/meta/recipes-support/bdwgc/bdwgc_7.4.2.bb | |||
@@ -24,6 +24,7 @@ LIC_FILES_CHKSUM = "file://README.QUICK;md5=55f5088f90a982fed7af9a4897047ef7" | |||
24 | SRC_URI = "http://www.hboehm.info/gc/gc_source/gc-${PV}.tar.gz \ | 24 | SRC_URI = "http://www.hboehm.info/gc/gc_source/gc-${PV}.tar.gz \ |
25 | file://0001-fix-build-with-musl.patch \ | 25 | file://0001-fix-build-with-musl.patch \ |
26 | file://0001-configure.ac-add-check-for-NO_GETCONTEXT-definition.patch \ | 26 | file://0001-configure.ac-add-check-for-NO_GETCONTEXT-definition.patch \ |
27 | file://0002-Altera-NIOS2-support.patch \ | ||
27 | " | 28 | " |
28 | 29 | ||
29 | SRC_URI[md5sum] = "12c05fd2811d989341d8c6d81f66af87" | 30 | SRC_URI[md5sum] = "12c05fd2811d989341d8c6d81f66af87" |