All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 2/4] recipes-extended/psmisc: Don't exclude autopoint for RISCV
@ 2018-06-14 19:45 Alistair Francis
  2018-06-14 19:45 ` [PATCH 3/4] recipes-support/nspr: Add RISC-V support Alistair Francis
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Alistair Francis @ 2018-06-14 19:45 UTC (permalink / raw)
  To: openembedded-core

Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
---
 meta/recipes-extended/psmisc/psmisc.inc | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/meta/recipes-extended/psmisc/psmisc.inc b/meta/recipes-extended/psmisc/psmisc.inc
index 82ef947709..73b4c56f69 100644
--- a/meta/recipes-extended/psmisc/psmisc.inc
+++ b/meta/recipes-extended/psmisc/psmisc.inc
@@ -19,7 +19,9 @@ inherit autotools gettext
 # Upstream has a custom autogen.sh which invokes po/update-potfiles as they 
 # don't ship a po/POTFILES.in (which is silly).  Without that file gettext 
 # doesn't believe po/ is a gettext directory and won't generate po/Makefile.
-EXTRA_AUTORECONF_remove = "--exclude=autopoint"
+AUTORECONF_REMOVE_ARGS = "--exclude=autopoint"
+AUTORECONF_REMOVE_ARGS_riscv64 = ""
+EXTRA_AUTORECONF_remove = "${AUTORECONF_REMOVE_ARGS}"
 do_configure_prepend() {
     ( cd ${S} && po/update-potfiles )
 }
-- 
2.17.1



^ permalink raw reply related	[flat|nested] 9+ messages in thread

* [PATCH 3/4] recipes-support/nspr: Add RISC-V support
  2018-06-14 19:45 [PATCH 2/4] recipes-extended/psmisc: Don't exclude autopoint for RISCV Alistair Francis
@ 2018-06-14 19:45 ` Alistair Francis
  2018-06-14 20:15   ` Alexander Kanavin
  2018-06-14 19:45 ` [PATCH 4/4] recipes-kernel/linux: " Alistair Francis
  2018-06-14 20:15 ` [PATCH 2/4] recipes-extended/psmisc: Don't exclude autopoint for RISCV Alexander Kanavin
  2 siblings, 1 reply; 9+ messages in thread
From: Alistair Francis @ 2018-06-14 19:45 UTC (permalink / raw)
  To: openembedded-core

Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
---
 .../0003-Add-riscv-architecture-support.patch | 103 ++++++++++++++++++
 meta/recipes-support/nspr/nspr_4.19.bb        |   1 +
 2 files changed, 104 insertions(+)
 create mode 100644 meta/recipes-support/nspr/nspr/0003-Add-riscv-architecture-support.patch

diff --git a/meta/recipes-support/nspr/nspr/0003-Add-riscv-architecture-support.patch b/meta/recipes-support/nspr/nspr/0003-Add-riscv-architecture-support.patch
new file mode 100644
index 0000000000..14911440bd
--- /dev/null
+++ b/meta/recipes-support/nspr/nspr/0003-Add-riscv-architecture-support.patch
@@ -0,0 +1,103 @@
+From ff3d77742bd3b0272c48ff7472a45e9c537709f2 Mon Sep 17 00:00:00 2001
+From: Khem Raj <raj.khem@gmail.com>
+Date: Wed, 4 Oct 2017 11:55:10 -0700
+Subject: [PATCH] Add riscv architecture support
+
+Signed-off-by: Khem Raj <raj.khem@gmail.com>
+---
+ pr/include/md/_linux.cfg | 46 ++++++++++++++++++++++++++++++++++++++++++++++
+ pr/include/md/_linux.h   | 14 ++++++++++++++
+ 2 files changed, 60 insertions(+)
+
+diff --git a/pr/include/md/_linux.cfg b/pr/include/md/_linux.cfg
+index 31296a8..d0dde57 100644
+--- a/pr/include/md/_linux.cfg
++++ b/pr/include/md/_linux.cfg
+@@ -360,6 +360,52 @@
+ #define PR_BYTES_PER_WORD_LOG2   2
+ #define PR_BYTES_PER_DWORD_LOG2  3
+ 
++#elif defined(__riscv) && __riscv_xlen == 64
++
++#undef	IS_BIG_ENDIAN
++#define	IS_LITTLE_ENDIAN 1
++#define IS_64
++
++#define PR_BYTES_PER_BYTE   1
++#define PR_BYTES_PER_SHORT  2
++#define PR_BYTES_PER_INT    4
++#define PR_BYTES_PER_INT64  8
++#define PR_BYTES_PER_LONG   8
++#define PR_BYTES_PER_FLOAT  4
++#define PR_BYTES_PER_DOUBLE 8
++#define PR_BYTES_PER_WORD   8
++#define PR_BYTES_PER_DWORD  8
++
++#define PR_BITS_PER_BYTE    8
++#define PR_BITS_PER_SHORT   16
++#define PR_BITS_PER_INT     32
++#define PR_BITS_PER_INT64   64
++#define PR_BITS_PER_LONG    64
++#define PR_BITS_PER_FLOAT   32
++#define PR_BITS_PER_DOUBLE  64
++#define PR_BITS_PER_WORD    64
++
++#define PR_BITS_PER_BYTE_LOG2   3
++#define PR_BITS_PER_SHORT_LOG2  4
++#define PR_BITS_PER_INT_LOG2    5
++#define PR_BITS_PER_INT64_LOG2  6
++#define PR_BITS_PER_LONG_LOG2   6
++#define PR_BITS_PER_FLOAT_LOG2  5
++#define PR_BITS_PER_DOUBLE_LOG2 6
++#define PR_BITS_PER_WORD_LOG2   6
++
++#define PR_ALIGN_OF_SHORT   2
++#define PR_ALIGN_OF_INT     4
++#define PR_ALIGN_OF_INT64   8
++#define PR_ALIGN_OF_LONG    8
++#define PR_ALIGN_OF_FLOAT   4
++#define PR_ALIGN_OF_DOUBLE  8
++#define PR_ALIGN_OF_POINTER 8
++#define PR_ALIGN_OF_WORD    8
++
++#define PR_BYTES_PER_WORD_LOG2   3
++#define PR_BYTES_PER_DWORD_LOG2  3
++
+ #elif defined(__sparc__) && defined (__arch64__)
+ 
+ #undef	IS_LITTLE_ENDIAN
+diff --git a/pr/include/md/_linux.h b/pr/include/md/_linux.h
+index 551918f..3a3cc2e 100644
+--- a/pr/include/md/_linux.h
++++ b/pr/include/md/_linux.h
+@@ -31,6 +31,8 @@
+ #define _PR_SI_ARCHITECTURE "x86-64"
+ #elif defined(__mc68000__)
+ #define _PR_SI_ARCHITECTURE "m68k"
++#elif defined(__riscv) && __riscv_xlen == 64
++#define _PR_SI_ARCHITECTURE "rv64"
+ #elif defined(__sparc__) && defined(__arch64__)
+ #define _PR_SI_ARCHITECTURE "sparc64"
+ #elif defined(__sparc__)
+@@ -151,6 +153,18 @@ extern PRInt32 _PR_x86_64_AtomicSet(PRInt32 *val, PRInt32 newval);
+ #endif
+ #endif
+ 
++#if defined(__riscv)
++#if defined(__GNUC__)
++/* Use GCC built-in functions */
++#define _PR_HAVE_ATOMIC_OPS
++#define _MD_INIT_ATOMIC()
++#define _MD_ATOMIC_INCREMENT(ptr) __sync_add_and_fetch(ptr, 1)
++#define _MD_ATOMIC_DECREMENT(ptr) __sync_sub_and_fetch(ptr, 1)
++#define _MD_ATOMIC_ADD(ptr, i) __sync_add_and_fetch(ptr, i)
++#define _MD_ATOMIC_SET(ptr, nv) __sync_lock_test_and_set(ptr, nv)
++#endif
++#endif
++
+ #if defined(__powerpc__) && !defined(__powerpc64__)
+ #define _PR_HAVE_ATOMIC_OPS
+ #define _MD_INIT_ATOMIC()
+-- 
+2.14.2
+
diff --git a/meta/recipes-support/nspr/nspr_4.19.bb b/meta/recipes-support/nspr/nspr_4.19.bb
index de2c87131f..5c37509b1b 100644
--- a/meta/recipes-support/nspr/nspr_4.19.bb
+++ b/meta/recipes-support/nspr/nspr_4.19.bb
@@ -11,6 +11,7 @@ SRC_URI = "http://ftp.mozilla.org/pub/nspr/releases/v${PV}/src/nspr-${PV}.tar.gz
            file://remove-srcdir-from-configure-in.patch \
            file://0002-Add-nios2-support.patch \
            file://0001-md-Fix-build-with-musl.patch \
+           file://0003-Add-riscv-architecture-support.patch \
            file://nspr.pc.in \
 "
 
-- 
2.17.1



^ permalink raw reply related	[flat|nested] 9+ messages in thread

* [PATCH 4/4] recipes-kernel/linux: Add RISC-V support
  2018-06-14 19:45 [PATCH 2/4] recipes-extended/psmisc: Don't exclude autopoint for RISCV Alistair Francis
  2018-06-14 19:45 ` [PATCH 3/4] recipes-support/nspr: Add RISC-V support Alistair Francis
@ 2018-06-14 19:45 ` Alistair Francis
  2018-06-14 22:12   ` Bruce Ashfield
  2018-06-14 20:15 ` [PATCH 2/4] recipes-extended/psmisc: Don't exclude autopoint for RISCV Alexander Kanavin
  2 siblings, 1 reply; 9+ messages in thread
From: Alistair Francis @ 2018-06-14 19:45 UTC (permalink / raw)
  To: openembedded-core

Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
---
 meta/recipes-kernel/linux/linux-yocto.inc     | 4 ++++
 meta/recipes-kernel/linux/linux-yocto_4.15.bb | 5 ++++-
 2 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/meta/recipes-kernel/linux/linux-yocto.inc b/meta/recipes-kernel/linux/linux-yocto.inc
index 95ec2a2b41..70a13cdd1e 100644
--- a/meta/recipes-kernel/linux/linux-yocto.inc
+++ b/meta/recipes-kernel/linux/linux-yocto.inc
@@ -26,6 +26,10 @@ DEPENDS_append_nios2 = " libgcc"
 KERNEL_CC_append_nios2 = " ${TOOLCHAIN_OPTIONS}"
 KERNEL_LD_append_nios2 = " ${TOOLCHAIN_OPTIONS}"
 
+DEPENDS_append_riscv64 = " libgcc"
+KERNEL_CC_append_riscv64 = " ${TOOLCHAIN_OPTIONS} ${SECURITY_NOPIE_CFLAGS}"
+KERNEL_LD_append_riscv64 = " -no-pie"
+
 KERNEL_FEATURES_append_qemuall=" features/debug/printk.scc"
 
 # A KMACHINE is the mapping of a yocto $MACHINE to what is built
diff --git a/meta/recipes-kernel/linux/linux-yocto_4.15.bb b/meta/recipes-kernel/linux/linux-yocto_4.15.bb
index 693670c613..4ea368a011 100644
--- a/meta/recipes-kernel/linux/linux-yocto_4.15.bb
+++ b/meta/recipes-kernel/linux/linux-yocto_4.15.bb
@@ -36,7 +36,10 @@ KCONF_BSP_AUDIT_LEVEL = "2"
 
 KERNEL_DEVICETREE_qemuarm = "versatile-pb.dtb"
 
-COMPATIBLE_MACHINE = "qemuarm|qemuarm64|qemux86|qemuppc|qemumips|qemumips64|qemux86-64"
+KBUILD_DEFCONFIG_qemuriscv64 = "defconfig"
+KCONFIG_MODE_qemuriscv64 = "--alldefconfig"
+
+COMPATIBLE_MACHINE = "qemuarm|qemuarm64|qemux86|qemuppc|qemumips|qemumips64|qemux86-64|qemurisc532|qemuriscv64"
 
 # Functionality flags
 KERNEL_EXTRA_FEATURES ?= "features/netfilter/netfilter.scc"
-- 
2.17.1



^ permalink raw reply related	[flat|nested] 9+ messages in thread

* Re: [PATCH 2/4] recipes-extended/psmisc: Don't exclude autopoint for RISCV
  2018-06-14 19:45 [PATCH 2/4] recipes-extended/psmisc: Don't exclude autopoint for RISCV Alistair Francis
  2018-06-14 19:45 ` [PATCH 3/4] recipes-support/nspr: Add RISC-V support Alistair Francis
  2018-06-14 19:45 ` [PATCH 4/4] recipes-kernel/linux: " Alistair Francis
@ 2018-06-14 20:15 ` Alexander Kanavin
  2018-06-21 21:02   ` Alistair Francis
  2 siblings, 1 reply; 9+ messages in thread
From: Alexander Kanavin @ 2018-06-14 20:15 UTC (permalink / raw)
  To: Alistair Francis; +Cc: OE-core

Don't exclude why? Needs to be in recipe comment.

Alex

2018-06-14 22:45 GMT+03:00 Alistair Francis <alistair.francis@wdc.com>:
> Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
> ---
>  meta/recipes-extended/psmisc/psmisc.inc | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/meta/recipes-extended/psmisc/psmisc.inc b/meta/recipes-extended/psmisc/psmisc.inc
> index 82ef947709..73b4c56f69 100644
> --- a/meta/recipes-extended/psmisc/psmisc.inc
> +++ b/meta/recipes-extended/psmisc/psmisc.inc
> @@ -19,7 +19,9 @@ inherit autotools gettext
>  # Upstream has a custom autogen.sh which invokes po/update-potfiles as they
>  # don't ship a po/POTFILES.in (which is silly).  Without that file gettext
>  # doesn't believe po/ is a gettext directory and won't generate po/Makefile.
> -EXTRA_AUTORECONF_remove = "--exclude=autopoint"
> +AUTORECONF_REMOVE_ARGS = "--exclude=autopoint"
> +AUTORECONF_REMOVE_ARGS_riscv64 = ""
> +EXTRA_AUTORECONF_remove = "${AUTORECONF_REMOVE_ARGS}"
>  do_configure_prepend() {
>      ( cd ${S} && po/update-potfiles )
>  }
> --
> 2.17.1
>
> --
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH 3/4] recipes-support/nspr: Add RISC-V support
  2018-06-14 19:45 ` [PATCH 3/4] recipes-support/nspr: Add RISC-V support Alistair Francis
@ 2018-06-14 20:15   ` Alexander Kanavin
  0 siblings, 0 replies; 9+ messages in thread
From: Alexander Kanavin @ 2018-06-14 20:15 UTC (permalink / raw)
  To: Alistair Francis; +Cc: OE-core

The patch file needs Upstream-Status in addition to SOB.

(also why is patchtest not reacting to patches anymore?)

Alex

2018-06-14 22:45 GMT+03:00 Alistair Francis <alistair.francis@wdc.com>:
> Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
> ---
>  .../0003-Add-riscv-architecture-support.patch | 103 ++++++++++++++++++
>  meta/recipes-support/nspr/nspr_4.19.bb        |   1 +
>  2 files changed, 104 insertions(+)
>  create mode 100644 meta/recipes-support/nspr/nspr/0003-Add-riscv-architecture-support.patch
>
> diff --git a/meta/recipes-support/nspr/nspr/0003-Add-riscv-architecture-support.patch b/meta/recipes-support/nspr/nspr/0003-Add-riscv-architecture-support.patch
> new file mode 100644
> index 0000000000..14911440bd
> --- /dev/null
> +++ b/meta/recipes-support/nspr/nspr/0003-Add-riscv-architecture-support.patch
> @@ -0,0 +1,103 @@
> +From ff3d77742bd3b0272c48ff7472a45e9c537709f2 Mon Sep 17 00:00:00 2001
> +From: Khem Raj <raj.khem@gmail.com>
> +Date: Wed, 4 Oct 2017 11:55:10 -0700
> +Subject: [PATCH] Add riscv architecture support
> +
> +Signed-off-by: Khem Raj <raj.khem@gmail.com>
> +---
> + pr/include/md/_linux.cfg | 46 ++++++++++++++++++++++++++++++++++++++++++++++
> + pr/include/md/_linux.h   | 14 ++++++++++++++
> + 2 files changed, 60 insertions(+)
> +
> +diff --git a/pr/include/md/_linux.cfg b/pr/include/md/_linux.cfg
> +index 31296a8..d0dde57 100644
> +--- a/pr/include/md/_linux.cfg
> ++++ b/pr/include/md/_linux.cfg
> +@@ -360,6 +360,52 @@
> + #define PR_BYTES_PER_WORD_LOG2   2
> + #define PR_BYTES_PER_DWORD_LOG2  3
> +
> ++#elif defined(__riscv) && __riscv_xlen == 64
> ++
> ++#undef        IS_BIG_ENDIAN
> ++#define       IS_LITTLE_ENDIAN 1
> ++#define IS_64
> ++
> ++#define PR_BYTES_PER_BYTE   1
> ++#define PR_BYTES_PER_SHORT  2
> ++#define PR_BYTES_PER_INT    4
> ++#define PR_BYTES_PER_INT64  8
> ++#define PR_BYTES_PER_LONG   8
> ++#define PR_BYTES_PER_FLOAT  4
> ++#define PR_BYTES_PER_DOUBLE 8
> ++#define PR_BYTES_PER_WORD   8
> ++#define PR_BYTES_PER_DWORD  8
> ++
> ++#define PR_BITS_PER_BYTE    8
> ++#define PR_BITS_PER_SHORT   16
> ++#define PR_BITS_PER_INT     32
> ++#define PR_BITS_PER_INT64   64
> ++#define PR_BITS_PER_LONG    64
> ++#define PR_BITS_PER_FLOAT   32
> ++#define PR_BITS_PER_DOUBLE  64
> ++#define PR_BITS_PER_WORD    64
> ++
> ++#define PR_BITS_PER_BYTE_LOG2   3
> ++#define PR_BITS_PER_SHORT_LOG2  4
> ++#define PR_BITS_PER_INT_LOG2    5
> ++#define PR_BITS_PER_INT64_LOG2  6
> ++#define PR_BITS_PER_LONG_LOG2   6
> ++#define PR_BITS_PER_FLOAT_LOG2  5
> ++#define PR_BITS_PER_DOUBLE_LOG2 6
> ++#define PR_BITS_PER_WORD_LOG2   6
> ++
> ++#define PR_ALIGN_OF_SHORT   2
> ++#define PR_ALIGN_OF_INT     4
> ++#define PR_ALIGN_OF_INT64   8
> ++#define PR_ALIGN_OF_LONG    8
> ++#define PR_ALIGN_OF_FLOAT   4
> ++#define PR_ALIGN_OF_DOUBLE  8
> ++#define PR_ALIGN_OF_POINTER 8
> ++#define PR_ALIGN_OF_WORD    8
> ++
> ++#define PR_BYTES_PER_WORD_LOG2   3
> ++#define PR_BYTES_PER_DWORD_LOG2  3
> ++
> + #elif defined(__sparc__) && defined (__arch64__)
> +
> + #undef        IS_LITTLE_ENDIAN
> +diff --git a/pr/include/md/_linux.h b/pr/include/md/_linux.h
> +index 551918f..3a3cc2e 100644
> +--- a/pr/include/md/_linux.h
> ++++ b/pr/include/md/_linux.h
> +@@ -31,6 +31,8 @@
> + #define _PR_SI_ARCHITECTURE "x86-64"
> + #elif defined(__mc68000__)
> + #define _PR_SI_ARCHITECTURE "m68k"
> ++#elif defined(__riscv) && __riscv_xlen == 64
> ++#define _PR_SI_ARCHITECTURE "rv64"
> + #elif defined(__sparc__) && defined(__arch64__)
> + #define _PR_SI_ARCHITECTURE "sparc64"
> + #elif defined(__sparc__)
> +@@ -151,6 +153,18 @@ extern PRInt32 _PR_x86_64_AtomicSet(PRInt32 *val, PRInt32 newval);
> + #endif
> + #endif
> +
> ++#if defined(__riscv)
> ++#if defined(__GNUC__)
> ++/* Use GCC built-in functions */
> ++#define _PR_HAVE_ATOMIC_OPS
> ++#define _MD_INIT_ATOMIC()
> ++#define _MD_ATOMIC_INCREMENT(ptr) __sync_add_and_fetch(ptr, 1)
> ++#define _MD_ATOMIC_DECREMENT(ptr) __sync_sub_and_fetch(ptr, 1)
> ++#define _MD_ATOMIC_ADD(ptr, i) __sync_add_and_fetch(ptr, i)
> ++#define _MD_ATOMIC_SET(ptr, nv) __sync_lock_test_and_set(ptr, nv)
> ++#endif
> ++#endif
> ++
> + #if defined(__powerpc__) && !defined(__powerpc64__)
> + #define _PR_HAVE_ATOMIC_OPS
> + #define _MD_INIT_ATOMIC()
> +--
> +2.14.2
> +
> diff --git a/meta/recipes-support/nspr/nspr_4.19.bb b/meta/recipes-support/nspr/nspr_4.19.bb
> index de2c87131f..5c37509b1b 100644
> --- a/meta/recipes-support/nspr/nspr_4.19.bb
> +++ b/meta/recipes-support/nspr/nspr_4.19.bb
> @@ -11,6 +11,7 @@ SRC_URI = "http://ftp.mozilla.org/pub/nspr/releases/v${PV}/src/nspr-${PV}.tar.gz
>             file://remove-srcdir-from-configure-in.patch \
>             file://0002-Add-nios2-support.patch \
>             file://0001-md-Fix-build-with-musl.patch \
> +           file://0003-Add-riscv-architecture-support.patch \
>             file://nspr.pc.in \
>  "
>
> --
> 2.17.1
>
> --
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH 4/4] recipes-kernel/linux: Add RISC-V support
  2018-06-14 19:45 ` [PATCH 4/4] recipes-kernel/linux: " Alistair Francis
@ 2018-06-14 22:12   ` Bruce Ashfield
  2019-01-04  0:15     ` Alistair Francis
  0 siblings, 1 reply; 9+ messages in thread
From: Bruce Ashfield @ 2018-06-14 22:12 UTC (permalink / raw)
  To: Alistair Francis; +Cc: Patches and discussions about the oe-core layer

[-- Attachment #1: Type: text/plain, Size: 2426 bytes --]

On Thu, Jun 14, 2018 at 3:45 PM, Alistair Francis <alistair.francis@wdc.com>
wrote:

> Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
> ---
>  meta/recipes-kernel/linux/linux-yocto.inc     | 4 ++++
>  meta/recipes-kernel/linux/linux-yocto_4.15.bb | 5 ++++-
>  2 files changed, 8 insertions(+), 1 deletion(-)
>
> diff --git a/meta/recipes-kernel/linux/linux-yocto.inc
> b/meta/recipes-kernel/linux/linux-yocto.inc
> index 95ec2a2b41..70a13cdd1e 100644
> --- a/meta/recipes-kernel/linux/linux-yocto.inc
> +++ b/meta/recipes-kernel/linux/linux-yocto.inc
> @@ -26,6 +26,10 @@ DEPENDS_append_nios2 = " libgcc"
>  KERNEL_CC_append_nios2 = " ${TOOLCHAIN_OPTIONS}"
>  KERNEL_LD_append_nios2 = " ${TOOLCHAIN_OPTIONS}"
>
> +DEPENDS_append_riscv64 = " libgcc"
> +KERNEL_CC_append_riscv64 = " ${TOOLCHAIN_OPTIONS}
> ${SECURITY_NOPIE_CFLAGS}"
> +KERNEL_LD_append_riscv64 = " -no-pie"
> +
>  KERNEL_FEATURES_append_qemuall=" features/debug/printk.scc"
>
>  # A KMACHINE is the mapping of a yocto $MACHINE to what is built
> diff --git a/meta/recipes-kernel/linux/linux-yocto_4.15.bb
> b/meta/recipes-kernel/linux/linux-yocto_4.15.bb
> index 693670c613..4ea368a011 100644
> --- a/meta/recipes-kernel/linux/linux-yocto_4.15.bb
> +++ b/meta/recipes-kernel/linux/linux-yocto_4.15.bb
> @@ -36,7 +36,10 @@ KCONF_BSP_AUDIT_LEVEL = "2"
>
>  KERNEL_DEVICETREE_qemuarm = "versatile-pb.dtb"
>
> -COMPATIBLE_MACHINE = "qemuarm|qemuarm64|qemux86|
> qemuppc|qemumips|qemumips64|qemux86-64"
> +KBUILD_DEFCONFIG_qemuriscv64 = "defconfig"
> +KCONFIG_MODE_qemuriscv64 = "--alldefconfig"
>

This doesn't belong in linux-yocto.

We use defined BSP and configuration fraagments, not in-tree defconfigs

I'm happy to add a BSP definition to the kernel-cache, but this isn't the
way to add configuration support for the linux-yocto trees

Cheers,

Bruce


> +
> +COMPATIBLE_MACHINE = "qemuarm|qemuarm64|qemux86|
> qemuppc|qemumips|qemumips64|qemux86-64|qemurisc532|qemuriscv64"
>
>  # Functionality flags
>  KERNEL_EXTRA_FEATURES ?= "features/netfilter/netfilter.scc"
> --
> 2.17.1
>
> --
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core
>



-- 
"Thou shalt not follow the NULL pointer, for chaos and madness await thee
at its end"

[-- Attachment #2: Type: text/html, Size: 4064 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH 2/4] recipes-extended/psmisc: Don't exclude autopoint for RISCV
  2018-06-14 20:15 ` [PATCH 2/4] recipes-extended/psmisc: Don't exclude autopoint for RISCV Alexander Kanavin
@ 2018-06-21 21:02   ` Alistair Francis
  0 siblings, 0 replies; 9+ messages in thread
From: Alistair Francis @ 2018-06-21 21:02 UTC (permalink / raw)
  To: Alexander Kanavin; +Cc: OE-core

On Thu, Jun 14, 2018 at 1:15 PM, Alexander Kanavin
<alex.kanavin@gmail.com> wrote:
> Don't exclude why? Needs to be in recipe comment.

Apparently this is no longer required. I'll remove it.

Alistair

>
> Alex
>
> 2018-06-14 22:45 GMT+03:00 Alistair Francis <alistair.francis@wdc.com>:
>> Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
>> ---
>>  meta/recipes-extended/psmisc/psmisc.inc | 4 +++-
>>  1 file changed, 3 insertions(+), 1 deletion(-)
>>
>> diff --git a/meta/recipes-extended/psmisc/psmisc.inc b/meta/recipes-extended/psmisc/psmisc.inc
>> index 82ef947709..73b4c56f69 100644
>> --- a/meta/recipes-extended/psmisc/psmisc.inc
>> +++ b/meta/recipes-extended/psmisc/psmisc.inc
>> @@ -19,7 +19,9 @@ inherit autotools gettext
>>  # Upstream has a custom autogen.sh which invokes po/update-potfiles as they
>>  # don't ship a po/POTFILES.in (which is silly).  Without that file gettext
>>  # doesn't believe po/ is a gettext directory and won't generate po/Makefile.
>> -EXTRA_AUTORECONF_remove = "--exclude=autopoint"
>> +AUTORECONF_REMOVE_ARGS = "--exclude=autopoint"
>> +AUTORECONF_REMOVE_ARGS_riscv64 = ""
>> +EXTRA_AUTORECONF_remove = "${AUTORECONF_REMOVE_ARGS}"
>>  do_configure_prepend() {
>>      ( cd ${S} && po/update-potfiles )
>>  }
>> --
>> 2.17.1
>>
>> --
>> _______________________________________________
>> Openembedded-core mailing list
>> Openembedded-core@lists.openembedded.org
>> http://lists.openembedded.org/mailman/listinfo/openembedded-core
> --
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH 4/4] recipes-kernel/linux: Add RISC-V support
  2018-06-14 22:12   ` Bruce Ashfield
@ 2019-01-04  0:15     ` Alistair Francis
  2019-01-04  1:05       ` Bruce Ashfield
  0 siblings, 1 reply; 9+ messages in thread
From: Alistair Francis @ 2019-01-04  0:15 UTC (permalink / raw)
  To: Bruce Ashfield; +Cc: Patches and discussions about the oe-core layer

On Thu, Jun 14, 2018 at 3:12 PM Bruce Ashfield <bruce.ashfield@gmail.com> wrote:
>
>
>
> On Thu, Jun 14, 2018 at 3:45 PM, Alistair Francis <alistair.francis@wdc.com> wrote:
>>
>> Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
>> ---
>>  meta/recipes-kernel/linux/linux-yocto.inc     | 4 ++++
>>  meta/recipes-kernel/linux/linux-yocto_4.15.bb | 5 ++++-
>>  2 files changed, 8 insertions(+), 1 deletion(-)
>>
>> diff --git a/meta/recipes-kernel/linux/linux-yocto.inc b/meta/recipes-kernel/linux/linux-yocto.inc
>> index 95ec2a2b41..70a13cdd1e 100644
>> --- a/meta/recipes-kernel/linux/linux-yocto.inc
>> +++ b/meta/recipes-kernel/linux/linux-yocto.inc
>> @@ -26,6 +26,10 @@ DEPENDS_append_nios2 = " libgcc"
>>  KERNEL_CC_append_nios2 = " ${TOOLCHAIN_OPTIONS}"
>>  KERNEL_LD_append_nios2 = " ${TOOLCHAIN_OPTIONS}"
>>
>> +DEPENDS_append_riscv64 = " libgcc"
>> +KERNEL_CC_append_riscv64 = " ${TOOLCHAIN_OPTIONS} ${SECURITY_NOPIE_CFLAGS}"
>> +KERNEL_LD_append_riscv64 = " -no-pie"
>> +
>>  KERNEL_FEATURES_append_qemuall=" features/debug/printk.scc"
>>
>>  # A KMACHINE is the mapping of a yocto $MACHINE to what is built
>> diff --git a/meta/recipes-kernel/linux/linux-yocto_4.15.bb b/meta/recipes-kernel/linux/linux-yocto_4.15.bb
>> index 693670c613..4ea368a011 100644
>> --- a/meta/recipes-kernel/linux/linux-yocto_4.15.bb
>> +++ b/meta/recipes-kernel/linux/linux-yocto_4.15.bb
>> @@ -36,7 +36,10 @@ KCONF_BSP_AUDIT_LEVEL = "2"
>>
>>  KERNEL_DEVICETREE_qemuarm = "versatile-pb.dtb"
>>
>> -COMPATIBLE_MACHINE = "qemuarm|qemuarm64|qemux86|qemuppc|qemumips|qemumips64|qemux86-64"
>> +KBUILD_DEFCONFIG_qemuriscv64 = "defconfig"
>> +KCONFIG_MODE_qemuriscv64 = "--alldefconfig"
>
>
> This doesn't belong in linux-yocto.
>
> We use defined BSP and configuration fraagments, not in-tree defconfigs
>
> I'm happy to add a BSP definition to the kernel-cache, but this isn't the way to add configuration support for the linux-yocto trees

Hey Bruce,

I'm looking at this again as the 4.19 kernel now has full working
RISC-V support.

How can I add a BSP definition to the kernel-cache?

Also, what is the reason for not using the in-tree defconfigs?

Alistair

>
> Cheers,
>
> Bruce
>
>>
>> +
>> +COMPATIBLE_MACHINE = "qemuarm|qemuarm64|qemux86|qemuppc|qemumips|qemumips64|qemux86-64|qemurisc532|qemuriscv64"
>>
>>  # Functionality flags
>>  KERNEL_EXTRA_FEATURES ?= "features/netfilter/netfilter.scc"
>> --
>> 2.17.1
>>
>> --
>> _______________________________________________
>> Openembedded-core mailing list
>> Openembedded-core@lists.openembedded.org
>> http://lists.openembedded.org/mailman/listinfo/openembedded-core
>
>
>
>
> --
> "Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end"
> --
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH 4/4] recipes-kernel/linux: Add RISC-V support
  2019-01-04  0:15     ` Alistair Francis
@ 2019-01-04  1:05       ` Bruce Ashfield
  0 siblings, 0 replies; 9+ messages in thread
From: Bruce Ashfield @ 2019-01-04  1:05 UTC (permalink / raw)
  To: Alistair Francis; +Cc: Patches and discussions about the oe-core layer

On Thu, Jan 3, 2019 at 7:15 PM Alistair Francis <alistair23@gmail.com> wrote:
>
> On Thu, Jun 14, 2018 at 3:12 PM Bruce Ashfield <bruce.ashfield@gmail.com> wrote:
> >
> >
> >
> > On Thu, Jun 14, 2018 at 3:45 PM, Alistair Francis <alistair.francis@wdc.com> wrote:
> >>
> >> Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
> >> ---
> >>  meta/recipes-kernel/linux/linux-yocto.inc     | 4 ++++
> >>  meta/recipes-kernel/linux/linux-yocto_4.15.bb | 5 ++++-
> >>  2 files changed, 8 insertions(+), 1 deletion(-)
> >>
> >> diff --git a/meta/recipes-kernel/linux/linux-yocto.inc b/meta/recipes-kernel/linux/linux-yocto.inc
> >> index 95ec2a2b41..70a13cdd1e 100644
> >> --- a/meta/recipes-kernel/linux/linux-yocto.inc
> >> +++ b/meta/recipes-kernel/linux/linux-yocto.inc
> >> @@ -26,6 +26,10 @@ DEPENDS_append_nios2 = " libgcc"
> >>  KERNEL_CC_append_nios2 = " ${TOOLCHAIN_OPTIONS}"
> >>  KERNEL_LD_append_nios2 = " ${TOOLCHAIN_OPTIONS}"
> >>
> >> +DEPENDS_append_riscv64 = " libgcc"
> >> +KERNEL_CC_append_riscv64 = " ${TOOLCHAIN_OPTIONS} ${SECURITY_NOPIE_CFLAGS}"
> >> +KERNEL_LD_append_riscv64 = " -no-pie"
> >> +
> >>  KERNEL_FEATURES_append_qemuall=" features/debug/printk.scc"
> >>
> >>  # A KMACHINE is the mapping of a yocto $MACHINE to what is built
> >> diff --git a/meta/recipes-kernel/linux/linux-yocto_4.15.bb b/meta/recipes-kernel/linux/linux-yocto_4.15.bb
> >> index 693670c613..4ea368a011 100644
> >> --- a/meta/recipes-kernel/linux/linux-yocto_4.15.bb
> >> +++ b/meta/recipes-kernel/linux/linux-yocto_4.15.bb
> >> @@ -36,7 +36,10 @@ KCONF_BSP_AUDIT_LEVEL = "2"
> >>
> >>  KERNEL_DEVICETREE_qemuarm = "versatile-pb.dtb"
> >>
> >> -COMPATIBLE_MACHINE = "qemuarm|qemuarm64|qemux86|qemuppc|qemumips|qemumips64|qemux86-64"
> >> +KBUILD_DEFCONFIG_qemuriscv64 = "defconfig"
> >> +KCONFIG_MODE_qemuriscv64 = "--alldefconfig"
> >
> >
> > This doesn't belong in linux-yocto.
> >
> > We use defined BSP and configuration fraagments, not in-tree defconfigs
> >
> > I'm happy to add a BSP definition to the kernel-cache, but this isn't the way to add configuration support for the linux-yocto trees
>
> Hey Bruce,
>
> I'm looking at this again as the 4.19 kernel now has full working
> RISC-V support.
>
> How can I add a BSP definition to the kernel-cache?
>

See the examples that are already in the kernel-cache, follow one of
them and send a patch to the linux-yocto mailing list.

What ends up in the BSP definition are only the options related to h/w
on the board. General / software options are defined by the
common/included fragments in the configuration repo.

> Also, what is the reason for not using the in-tree defconfigs?

Because we maintain our own reference configurations, and they are
largely consistent across machines and architectures. That is not the
case for in tree defconfigs. People are free to use them for their own
purposes, but that's not what we do for the reference BSPs.

Cheers,

Bruce

>
> Alistair
>
> >
> > Cheers,
> >
> > Bruce
> >
> >>
> >> +
> >> +COMPATIBLE_MACHINE = "qemuarm|qemuarm64|qemux86|qemuppc|qemumips|qemumips64|qemux86-64|qemurisc532|qemuriscv64"
> >>
> >>  # Functionality flags
> >>  KERNEL_EXTRA_FEATURES ?= "features/netfilter/netfilter.scc"
> >> --
> >> 2.17.1
> >>
> >> --
> >> _______________________________________________
> >> Openembedded-core mailing list
> >> Openembedded-core@lists.openembedded.org
> >> http://lists.openembedded.org/mailman/listinfo/openembedded-core
> >
> >
> >
> >
> > --
> > "Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end"
> > --
> > _______________________________________________
> > Openembedded-core mailing list
> > Openembedded-core@lists.openembedded.org
> > http://lists.openembedded.org/mailman/listinfo/openembedded-core



-- 
- Thou shalt not follow the NULL pointer, for chaos and madness await
thee at its end
- "Use the force Harry" - Gandalf, Star Trek II


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2019-01-04  1:05 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-06-14 19:45 [PATCH 2/4] recipes-extended/psmisc: Don't exclude autopoint for RISCV Alistair Francis
2018-06-14 19:45 ` [PATCH 3/4] recipes-support/nspr: Add RISC-V support Alistair Francis
2018-06-14 20:15   ` Alexander Kanavin
2018-06-14 19:45 ` [PATCH 4/4] recipes-kernel/linux: " Alistair Francis
2018-06-14 22:12   ` Bruce Ashfield
2019-01-04  0:15     ` Alistair Francis
2019-01-04  1:05       ` Bruce Ashfield
2018-06-14 20:15 ` [PATCH 2/4] recipes-extended/psmisc: Don't exclude autopoint for RISCV Alexander Kanavin
2018-06-21 21:02   ` Alistair Francis

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.