qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] target/xtensa: fix core import to meson.build


From: Richard Henderson
Subject: Re: [PATCH] target/xtensa: fix core import to meson.build
Date: Tue, 30 Mar 2021 13:32:21 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1

On 3/30/21 1:30 AM, Max Filippov wrote:
import_core.sh was not updated to change meson.build when new xtensa
core is imported. Fix that.

Cc: qemu-stable@nongnu.org # v5.2.0
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
---
  target/xtensa/import_core.sh | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/target/xtensa/import_core.sh b/target/xtensa/import_core.sh
index c8626a8c02eb..f3404039cc20 100755
--- a/target/xtensa/import_core.sh
+++ b/target/xtensa/import_core.sh
@@ -66,5 +66,5 @@ static XtensaConfig $NAME __attribute__((unused)) = {
  REGISTER_CORE($NAME)
  EOF
-grep -q core-${NAME}.o "$BASE"/Makefile.objs || \
-    echo "obj-y += core-${NAME}.o" >> "$BASE"/Makefile.objs
+grep -q core-${NAME}.c "$BASE"/meson.build || \
+    echo "xtensa_ss.add(files('core-${NAME}.c'))" >> "$BASE"/meson.build

We should be able to do this directly in meson.build, without having to modify the source file at all.


r~



reply via email to

[Prev in Thread] Current Thread [Next in Thread]