diff options
author | Mark Zhuang <mark.zhuang@spacemit.com> | 2024-07-19 16:04:12 +0800 |
---|---|---|
committer | Christoph Müllner <christophm30@gmail.com> | 2024-08-01 15:09:19 +0200 |
commit | 94757d9e8c3083cc2ef9d50250d795372964e548 (patch) | |
tree | 5e4a3e9f3e4a077d1230925364c6c87d337c3c51 | |
parent | 5aec7d73af4e1672c8327465bc0d562bee0bec95 (diff) | |
download | riscv-gnu-toolchain-94757d9e8c3083cc2ef9d50250d795372964e548.zip riscv-gnu-toolchain-94757d9e8c3083cc2ef9d50250d795372964e548.tar.gz riscv-gnu-toolchain-94757d9e8c3083cc2ef9d50250d795372964e548.tar.bz2 |
musl: support build gdb
-rw-r--r-- | Makefile.in | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/Makefile.in b/Makefile.in index e8a6f44..f9c55be 100644 --- a/Makefile.in +++ b/Makefile.in @@ -141,6 +141,7 @@ endif ifeq (@enable_gdb@,--enable-gdb) newlib: stamps/build-gdb-newlib linux: stamps/build-gdb-linux +musl: stamps/build-gdb-musl endif linux-native: stamps/build-gcc-linux-native ifeq (@enable_llvm@,--enable-llvm) @@ -794,6 +795,30 @@ stamps/build-binutils-musl: $(BINUTILS_SRCDIR) $(BINUTILS_SRC_GIT) $(PREPARATION $(MAKE) -C $(notdir $@) install mkdir -p $(dir $@) && touch $@ +stamps/build-gdb-musl: $(GDB_SRCDIR) $(GDB_SRC_GIT) $(PREPARATION_STAMP) + rm -rf $@ $(notdir $@) + mkdir $(notdir $@) +# CC_FOR_TARGET is required for the ld testsuite. + cd $(notdir $@) && CC_FOR_TARGET=$(MUSL_CC_FOR_TARGET) $</configure \ + --target=$(MUSL_TUPLE) \ + $(CONFIGURE_HOST) \ + --prefix=$(INSTALL_DIR) \ + --with-sysroot=$(SYSROOT) \ + $(MULTILIB_FLAGS) \ + @with_guile@ \ + --disable-werror \ + --disable-nls \ + $(GDB_TARGET_FLAGS) \ + --enable-gdb \ + --disable-gas \ + --disable-binutils \ + --disable-ld \ + --disable-gold \ + --disable-gprof + $(MAKE) -C $(notdir $@) + $(MAKE) -C $(notdir $@) install + mkdir -p $(dir $@) && touch $@ + stamps/build-gcc-musl-stage1: $(GCC_SRCDIR) $(GCC_SRC_GIT) stamps/build-binutils-musl \ stamps/build-linux-headers if test -f $</contrib/download_prerequisites && test "@NEED_GCC_EXTERNAL_LIBRARIES@" = "true"; then cd $< && ./contrib/download_prerequisites; fi |