diff --git a/.ycm_extra_conf.py b/.ycm_extra_conf.py index 782f1102daa..f03f5a33135 100644 --- a/.ycm_extra_conf.py +++ b/.ycm_extra_conf.py @@ -42,7 +42,7 @@ gcc_path = None for serenity_arch in ['x86_64', 'aarch64']: candidate_gcc_path = os.path.join( DIR_OF_THIS_SCRIPT, 'Toolchain', - 'Local', serenity_arch, 'bin', f'{serenity_arch}-pc-serenity-gcc' + 'Local', serenity_arch, 'bin', f'{serenity_arch}-serenity-gcc' ) if os.path.isfile(candidate_gcc_path): gcc_path = candidate_gcc_path diff --git a/Documentation/QtCreatorConfiguration.md b/Documentation/QtCreatorConfiguration.md index 33168e0a775..c9ddbcdb4e8 100644 --- a/Documentation/QtCreatorConfiguration.md +++ b/Documentation/QtCreatorConfiguration.md @@ -37,7 +37,7 @@ First, make sure you have a working toolchain and can build and run SerenityOS. Userland/Libraries/LibC/ Userland/Libraries/LibSystem/ Userland/Services/ - Toolchain/Local/x86_64/x86_64-pc-serenity/include/c++/13.1.0 + Toolchain/Local/x86_64/x86_64-serenity/include/c++/13.1.0 Build/x86_64/ Build/x86_64/Userland/ Build/x86_64/Userland/Libraries/ @@ -100,4 +100,4 @@ option "License template:". Click "Browse…", select your file (i.e., ## Compiler Kits You can slightly improve how well Qt interprets the code by adding and setting up an appropriate "compiler kit". -For that you will need to reference the compilers at `Toolchain/Local/x86_64/bin/x86_64-pc-serenity-gcc` and `Toolchain/Local/x86_64/bin/x86_64-pc-serenity-g++`. +For that you will need to reference the compilers at `Toolchain/Local/x86_64/bin/x86_64-serenity-gcc` and `Toolchain/Local/x86_64/bin/x86_64-serenity-g++`. diff --git a/Documentation/VSCodeConfiguration.md b/Documentation/VSCodeConfiguration.md index 835b2d0ebc2..89191f3f44d 100644 --- a/Documentation/VSCodeConfiguration.md +++ b/Documentation/VSCodeConfiguration.md @@ -48,10 +48,10 @@ following `c_cpp_properties.json` to circumvent some errors. Even with the confi "${workspaceFolder}/Userland/Libraries", "${workspaceFolder}/Userland/Libraries/LibC", "${workspaceFolder}/Userland/Services", - "${workspaceFolder}/Toolchain/Local/x86_64/x86_64-pc-serenity/include/c++/**" + "${workspaceFolder}/Toolchain/Local/x86_64/x86_64-serenity/include/c++/**" ], "defines": ["DEBUG", "__serenity__"], - "compilerPath": "${workspaceFolder}/Toolchain/Local/x86_64/bin/x86_64-pc-serenity-g++", + "compilerPath": "${workspaceFolder}/Toolchain/Local/x86_64/bin/x86_64-serenity-g++", "cStandard": "c17", "cppStandard": "c++26", "intelliSenseMode": "linux-gcc-x86", @@ -70,7 +70,7 @@ following `c_cpp_properties.json` to circumvent some errors. Even with the confi "${workspaceFolder}/Userland/Libraries", "${workspaceFolder}/Userland/Libraries/LibC", "${workspaceFolder}/Userland/Services", - "${workspaceFolder}/Toolchain/Local/x86_64/x86_64-pc-serenity/include/c++/**" + "${workspaceFolder}/Toolchain/Local/x86_64/x86_64-serenity/include/c++/**" ], "limitSymbolsToIncludedHeaders": true, "databaseFilename": "${workspaceFolder}/Build/x86_64/" diff --git a/Meta/CMake/jakt.cmake b/Meta/CMake/jakt.cmake index 7cb060239e8..5892d26bf43 100644 --- a/Meta/CMake/jakt.cmake +++ b/Meta/CMake/jakt.cmake @@ -6,7 +6,7 @@ endif() if (${CMAKE_SYSTEM_NAME} STREQUAL "Darwin") set(vendor "apple") else() - set(vendor "pc") + set(vendor "unknown") endif() if (${CMAKE_SYSTEM_NAME} STREQUAL "Windows") diff --git a/Meta/CMake/serenity_compile_options.cmake b/Meta/CMake/serenity_compile_options.cmake index 65d08a397f0..8509ca8c424 100644 --- a/Meta/CMake/serenity_compile_options.cmake +++ b/Meta/CMake/serenity_compile_options.cmake @@ -25,7 +25,7 @@ elseif (CMAKE_CXX_COMPILER_ID MATCHES "Clang$") # Clang doesn't add compiler_rt to the search path when compiling with -nostdlib. string(REGEX REPLACE "\\.(.*)" "" LLVM_MAJOR_VERSION "${CMAKE_CXX_COMPILER_VERSION}") - link_directories(${TOOLCHAIN_ROOT}/lib/clang/${LLVM_MAJOR_VERSION}/lib/${SERENITY_ARCH}-pc-serenity/) + link_directories(${TOOLCHAIN_ROOT}/lib/clang/${LLVM_MAJOR_VERSION}/lib/${SERENITY_ARCH}-serenity/) endif() if ("${SERENITY_ARCH}" STREQUAL "riscv64") diff --git a/Meta/build-root-filesystem.sh b/Meta/build-root-filesystem.sh index ee6578f188c..b81453afea0 100755 --- a/Meta/build-root-filesystem.sh +++ b/Meta/build-root-filesystem.sh @@ -38,13 +38,13 @@ SERENITY_ARCH="${SERENITY_ARCH:-x86_64}" if [ "$SERENITY_TOOLCHAIN" = "Clang" ]; then TOOLCHAIN_DIR="$SERENITY_SOURCE_DIR"/Toolchain/Local/clang/ - rsync -aH --update -t "$TOOLCHAIN_DIR"/lib/"$SERENITY_ARCH"-pc-serenity/* mnt/usr/lib - mkdir -p mnt/usr/include/"$SERENITY_ARCH"-pc-serenity + rsync -aH --update -t "$TOOLCHAIN_DIR"/lib/"$SERENITY_ARCH"-unknown-serenity/* mnt/usr/lib + mkdir -p mnt/usr/include/"$SERENITY_ARCH"-serenity rsync -aH --update -t -r "$TOOLCHAIN_DIR"/include/c++ mnt/usr/include - rsync -aH --update -t -r "$TOOLCHAIN_DIR"/include/"$SERENITY_ARCH"-pc-serenity/c++ mnt/usr/include/"$SERENITY_ARCH"-pc-serenity + rsync -aH --update -t -r "$TOOLCHAIN_DIR"/include/"$SERENITY_ARCH"-unknown-serenity/c++ mnt/usr/include/"$SERENITY_ARCH"-serenity else - rsync -aH --update -t -r "$SERENITY_SOURCE_DIR"/Toolchain/Local/"$SERENITY_ARCH"/"$SERENITY_ARCH"-pc-serenity/lib/* mnt/usr/lib - rsync -aH --update -t -r "$SERENITY_SOURCE_DIR"/Toolchain/Local/"$SERENITY_ARCH"/"$SERENITY_ARCH"-pc-serenity/include/c++ mnt/usr/include + rsync -aH --update -t -r "$SERENITY_SOURCE_DIR"/Toolchain/Local/"$SERENITY_ARCH"/"$SERENITY_ARCH"-serenity/lib/* mnt/usr/lib + rsync -aH --update -t -r "$SERENITY_SOURCE_DIR"/Toolchain/Local/"$SERENITY_ARCH"/"$SERENITY_ARCH"-serenity/include/c++ mnt/usr/include fi # If umask was 027 or similar when the repo was cloned, diff --git a/Meta/debug-kernel.sh b/Meta/debug-kernel.sh index 226558cf1cd..a7ef4e25382 100755 --- a/Meta/debug-kernel.sh +++ b/Meta/debug-kernel.sh @@ -14,8 +14,8 @@ if [ -z "$SERENITY_KERNEL_DEBUGGER" ]; then # GDB used to be installed directly inside the toolchain bin directory PATH="$SCRIPT_DIR/../Toolchain/Local/$SERENITY_ARCH/bin:$PATH" - if command -v "$SERENITY_ARCH-pc-serenity-gdb" >/dev/null; then - SERENITY_KERNEL_DEBUGGER="$SERENITY_ARCH-pc-serenity-gdb" + if command -v "$SERENITY_ARCH-serenity-gdb" >/dev/null; then + SERENITY_KERNEL_DEBUGGER="$SERENITY_ARCH-serenity-gdb" elif command -v "$SERENITY_ARCH-elf-gdb" >/dev/null; then SERENITY_KERNEL_DEBUGGER="$SERENITY_ARCH-elf-gdb" elif command -v gdb >/dev/null && gdb -ex 'set architecture' -ex 'quit' 2>&1 | grep "${SERENITY_ARCH//_/-}"; then diff --git a/Meta/gn/build/serenity_target.gni b/Meta/gn/build/serenity_target.gni index 4a4bcfadcb9..2e4a2355597 100644 --- a/Meta/gn/build/serenity_target.gni +++ b/Meta/gn/build/serenity_target.gni @@ -11,19 +11,19 @@ if (serenity_toolchain == "GNU") { rebase_path("//Toolchain/Local/$serenity_arch/", root_build_dir) toolchain_bin = toolchain_root + "bin/" - serenity_cc = toolchain_bin + serenity_arch + "-pc-serenity-gcc" - serenity_cxx = toolchain_bin + serenity_arch + "-pc-serenity-g++" + serenity_cc = toolchain_bin + serenity_arch + "-serenity-gcc" + serenity_cxx = toolchain_bin + serenity_arch + "-serenity-g++" serenity_ld = serenity_cxx - serenity_nm = toolchain_bin + serenity_arch + "-pc-serenity-nm" - serenity_objcopy = toolchain_bin + serenity_arch + "-pc-serenity-objcopy" + serenity_nm = toolchain_bin + serenity_arch + "-serenity-nm" + serenity_objcopy = toolchain_bin + serenity_arch + "-serenity-objcopy" serenity_compiler_version = "13.1.0" } else { assert(serenity_toolchain == "Clang", "Expected GNU or Clang for serenity_toolchain") toolchain_root = rebase_path("//Toolchain/Local/clang/", root_build_dir) toolchain_bin = toolchain_root + "bin/" - serenity_cc = toolchain_bin + serenity_arch + "-pc-serenity-clang" - serenity_cxx = toolchain_bin + serenity_arch + "-pc-serenity-clang++" + serenity_cc = toolchain_bin + serenity_arch + "-serenity-clang" + serenity_cxx = toolchain_bin + serenity_arch + "-serenity-clang++" serenity_ld = serenity_cxx serenity_nm = toolchain_bin + "llvm-nm" serenity_objcopy = toolchain_bin + "llvm-objcopy" diff --git a/Meta/gn/secondary/Kernel/BUILD.gn b/Meta/gn/secondary/Kernel/BUILD.gn index 5eea4644c72..ca5a5552eae 100644 --- a/Meta/gn/secondary/Kernel/BUILD.gn +++ b/Meta/gn/secondary/Kernel/BUILD.gn @@ -170,8 +170,8 @@ config("Kernel_config") { "-Wno-dangling-reference", ] lib_dirs = [ - "$toolchain_root/$serenity_arch-pc-serenity/lib", - "$toolchain_root/lib/gcc/$serenity_arch-pc-serenity/$serenity_compiler_version", + "$toolchain_root/$serenity_arch-serenity/lib", + "$toolchain_root/lib/gcc/$serenity_arch-serenity/$serenity_compiler_version", ] ldflags += [ "-Wl,-z,pack-relative-relocs" ] libs = [ "gcc" ] @@ -187,7 +187,7 @@ config("Kernel_config") { ] # FIXME: Why doesn't the cmake need this path anymore? - lib_dirs = [ "$toolchain_root/lib/clang/$serenity_compiler_version/lib/$serenity_arch-pc-serenity/" ] + lib_dirs = [ "$toolchain_root/lib/clang/$serenity_compiler_version/lib/$serenity_arch-serenity/" ] libs = [ "clang_rt.builtins" ] } diff --git a/Meta/serenity.sh b/Meta/serenity.sh index 69682c3b482..b73fabf4c1f 100755 --- a/Meta/serenity.sh +++ b/Meta/serenity.sh @@ -169,7 +169,7 @@ cmd_with_target() { fi JAKT_TOOLCHAIN_DIR="$SERENITY_SOURCE_DIR/Toolchain/Local/jakt" SUPER_BUILD_DIR="$SERENITY_SOURCE_DIR/Build/superbuild-$TARGET$TARGET_TOOLCHAIN" - JAKT_LIB_DIR="$BUILD_DIR/Root/usr/local/lib/$TARGET-pc-serenity-unknown" + JAKT_LIB_DIR="$BUILD_DIR/Root/usr/local/lib/$TARGET-unknown-serenity-unknown" else SUPER_BUILD_DIR="$BUILD_DIR" CMAKE_ARGS+=("-DCMAKE_INSTALL_PREFIX=$SERENITY_SOURCE_DIR/Build/lagom-install") @@ -268,9 +268,14 @@ ensure_toolchain() { fi [ -d "$TOOLCHAIN_DIR" ] || build_toolchain + if [[ -n "$(find "$(dirname "$TOOLCHAIN_DIR")" -type f -name '*-pc-serenity*' -print -quit)" ]]; then + die "Your toolchain contains files using the old triple name: '\$arch-pc-serenity'." \ + "Please delete both your toolchain and the Build directory (run \`rm -rf Toolchain/{Build,Local} Build\`)." + fi + if [ "$TOOLCHAIN_TYPE" = "GNU" ]; then local ld_version - ld_version="$("$TOOLCHAIN_DIR"/bin/"$TARGET"-pc-serenity-ld -v)" + ld_version="$("$TOOLCHAIN_DIR"/bin/"$TARGET"-serenity-ld -v)" local expected_version="GNU ld (GNU Binutils) 2.44" if [ "$ld_version" != "$expected_version" ]; then echo "Your toolchain has an old version of binutils installed." @@ -461,7 +466,7 @@ if [[ "$CMD" =~ ^(build|install|image|copy-src|run|gdb|test|rebuild|recreate|kad if [ "$TOOLCHAIN_TYPE" = "Clang" ]; then ADDR2LINE="$TOOLCHAIN_DIR/bin/llvm-addr2line" else - ADDR2LINE="$TOOLCHAIN_DIR/bin/$TARGET-pc-serenity-addr2line" + ADDR2LINE="$TOOLCHAIN_DIR/bin/$TARGET-serenity-addr2line" fi "$ADDR2LINE" -e "$BUILD_DIR/Kernel/Kernel" "$@" ;; @@ -476,7 +481,7 @@ if [[ "$CMD" =~ ^(build|install|image|copy-src|run|gdb|test|rebuild|recreate|kad elif [ "$TOOLCHAIN_TYPE" = "Clang" ]; then ADDR2LINE="$TOOLCHAIN_DIR/bin/llvm-addr2line" else - ADDR2LINE="$TOOLCHAIN_DIR/bin/$TARGET-pc-serenity-addr2line" + ADDR2LINE="$TOOLCHAIN_DIR/bin/$TARGET-serenity-addr2line" fi if [ -x "$BINARY_FILE_PATH" ]; then "$ADDR2LINE" -e "$BINARY_FILE_PATH" "$@" diff --git a/Ports/.hosted_defs.sh b/Ports/.hosted_defs.sh index a8d4d7661c0..61de0b410ef 100644 --- a/Ports/.hosted_defs.sh +++ b/Ports/.hosted_defs.sh @@ -29,8 +29,8 @@ fi if [ "$SERENITY_TOOLCHAIN" = "Clang" ]; then export SERENITY_BUILD_DIR="${SERENITY_SOURCE_DIR}/Build/${SERENITY_ARCH}clang" export SERENITY_TOOLCHAIN_BINDIR="${SERENITY_SOURCE_DIR}/Toolchain/Local/clang/bin" - export CC="${SERENITY_ARCH}-pc-serenity-clang" - export CXX="${SERENITY_ARCH}-pc-serenity-clang++" + export CC="${SERENITY_ARCH}-serenity-clang" + export CXX="${SERENITY_ARCH}-serenity-clang++" export LD="${SERENITY_TOOLCHAIN_BINDIR}/ld.lld" export AR="llvm-ar" export RANLIB="llvm-ranlib" @@ -42,16 +42,16 @@ if [ "$SERENITY_TOOLCHAIN" = "Clang" ]; then else export SERENITY_BUILD_DIR="${SERENITY_SOURCE_DIR}/Build/${SERENITY_ARCH}" export SERENITY_TOOLCHAIN_BINDIR="${SERENITY_SOURCE_DIR}/Toolchain/Local/${SERENITY_ARCH}/bin" - export CC="${SERENITY_ARCH}-pc-serenity-gcc" - export CXX="${SERENITY_ARCH}-pc-serenity-g++" - export LD="${SERENITY_TOOLCHAIN_BINDIR}/${SERENITY_ARCH}-pc-serenity-ld" - export AR="${SERENITY_ARCH}-pc-serenity-ar" - export RANLIB="${SERENITY_ARCH}-pc-serenity-ranlib" - export READELF="${SERENITY_ARCH}-pc-serenity-readelf" - export OBJCOPY="${SERENITY_ARCH}-pc-serenity-objcopy" - export OBJDUMP="${SERENITY_ARCH}-pc-serenity-objdump" - export STRIP="${SERENITY_ARCH}-pc-serenity-strip" - export CXXFILT="${SERENITY_ARCH}-pc-serenity-c++filt" + export CC="${SERENITY_ARCH}-serenity-gcc" + export CXX="${SERENITY_ARCH}-serenity-g++" + export LD="${SERENITY_TOOLCHAIN_BINDIR}/${SERENITY_ARCH}-serenity-ld" + export AR="${SERENITY_ARCH}-serenity-ar" + export RANLIB="${SERENITY_ARCH}-serenity-ranlib" + export READELF="${SERENITY_ARCH}-serenity-readelf" + export OBJCOPY="${SERENITY_ARCH}-serenity-objcopy" + export OBJDUMP="${SERENITY_ARCH}-serenity-objdump" + export STRIP="${SERENITY_ARCH}-serenity-strip" + export CXXFILT="${SERENITY_ARCH}-serenity-c++filt" fi export PATH="${SERENITY_TOOLCHAIN_BINDIR}:${SERENITY_SOURCE_DIR}/Toolchain/Local/cmake/bin:${HOST_PATH}" diff --git a/Ports/binutils/package.sh b/Ports/binutils/package.sh index 6229bd9c820..daa649768a3 100755 --- a/Ports/binutils/package.sh +++ b/Ports/binutils/package.sh @@ -4,7 +4,7 @@ version='2.44' useconfigure='true' use_fresh_config_sub='true' configopts=( - "--target=${SERENITY_ARCH}-pc-serenity" + "--target=${SERENITY_ARCH}-serenity" "--with-sysroot=/" "--with-build-sysroot=${SERENITY_INSTALL_ROOT}" "--disable-werror" diff --git a/Ports/epsilon/patches/0001-Add-serenity-toolchain-information-and-makefile-file.patch b/Ports/epsilon/patches/0001-Add-serenity-toolchain-information-and-makefile-file.patch index 3331ba188fc..a4056d9f340 100644 --- a/Ports/epsilon/patches/0001-Add-serenity-toolchain-information-and-makefile-file.patch +++ b/Ports/epsilon/patches/0001-Add-serenity-toolchain-information-and-makefile-file.patch @@ -4,33 +4,33 @@ Date: Tue, 13 Jul 2021 21:17:44 +0200 Subject: [PATCH] Add serenity toolchain information and makefile files --- - build/platform.simulator.serenity.mak | 6 ++++ - build/toolchain.x86_64-pc-serenity.mak | 1 + - ion/src/simulator/serenity/Makefile | 43 ++++++++++++++++++++++++++ + build/platform.simulator.serenity.mak | 6 ++++ + build/toolchain.x86_64-serenity.mak | 1 + + ion/src/simulator/serenity/Makefile | 43 +++++++++++++++++++++++++++ 3 files changed, 50 insertions(+) create mode 100644 build/platform.simulator.serenity.mak - create mode 100644 build/toolchain.x86_64-pc-serenity.mak + create mode 100644 build/toolchain.x86_64-serenity.mak create mode 100644 ion/src/simulator/serenity/Makefile diff --git a/build/platform.simulator.serenity.mak b/build/platform.simulator.serenity.mak new file mode 100644 -index 0000000000000000000000000000000000000000..0ac83c0bb06554bfa3077b9c2b67516291018e3b +index 0000000000000000000000000000000000000000..70d961604f4e40d7574df56d6571a0eb7dab024d --- /dev/null +++ b/build/platform.simulator.serenity.mak @@ -0,0 +1,6 @@ -+TOOLCHAIN = x86_64-pc-serenity ++TOOLCHAIN = x86_64-serenity +EXE = elf + +EPSILON_TELEMETRY ?= 0 + +SHOULD_USE_DYNAMIC_SDL = 1 -diff --git a/build/toolchain.x86_64-pc-serenity.mak b/build/toolchain.x86_64-pc-serenity.mak +diff --git a/build/toolchain.x86_64-serenity.mak b/build/toolchain.x86_64-serenity.mak new file mode 100644 -index 0000000000000000000000000000000000000000..bb49f4ed4dcec21891f94ec9c3c9f602d6f4cbcf +index 0000000000000000000000000000000000000000..01f36e2c05ee2030b0c64f5d346d81040dec94fa --- /dev/null -+++ b/build/toolchain.x86_64-pc-serenity.mak ++++ b/build/toolchain.x86_64-serenity.mak @@ -0,0 +1 @@ -+TOOLCHAIN_PREFIX = x86_64-pc-serenity ++TOOLCHAIN_PREFIX = x86_64-serenity diff --git a/ion/src/simulator/serenity/Makefile b/ion/src/simulator/serenity/Makefile new file mode 100644 index 0000000000000000000000000000000000000000..5d4bb131983ba85c79042cfa790b94e400158705 diff --git a/Ports/epsilon/patches/0002-Include-some-missing-headers.patch b/Ports/epsilon/patches/0002-Include-some-missing-headers.patch index 511aad0b213..db07072bccc 100644 --- a/Ports/epsilon/patches/0002-Include-some-missing-headers.patch +++ b/Ports/epsilon/patches/0002-Include-some-missing-headers.patch @@ -9,7 +9,7 @@ Subject: [PATCH] Include some missing headers 2 files changed, 3 insertions(+) diff --git a/ion/src/simulator/linux/platform_files.cpp b/ion/src/simulator/linux/platform_files.cpp -index b866fe0..cc31edc 100644 +index b866fe05cc5555b6c7e74e92a26fc3a79b6d0f78..cc31edc2ba3490ae3185543e97c07d99f0c28741 100644 --- a/ion/src/simulator/linux/platform_files.cpp +++ b/ion/src/simulator/linux/platform_files.cpp @@ -1,4 +1,5 @@ @@ -19,7 +19,7 @@ index b866fe0..cc31edc 100644 namespace Ion { namespace Simulator { diff --git a/ion/src/simulator/linux/platform_images.cpp b/ion/src/simulator/linux/platform_images.cpp -index 0fb2386..94ed16c 100644 +index 0fb23867bc7b85c9d5ac98722e0a043fd4d23a56..94ed16c4a0b57607b81bc009b44be9b27ab7bb97 100644 --- a/ion/src/simulator/linux/platform_images.cpp +++ b/ion/src/simulator/linux/platform_images.cpp @@ -1,10 +1,12 @@ diff --git a/Ports/epsilon/patches/0003-Don-t-use-dynamic-SDL.patch b/Ports/epsilon/patches/0003-Don-t-use-dynamic-SDL.patch index 9bced332665..ba91fa0b24c 100644 --- a/Ports/epsilon/patches/0003-Don-t-use-dynamic-SDL.patch +++ b/Ports/epsilon/patches/0003-Don-t-use-dynamic-SDL.patch @@ -9,7 +9,7 @@ Subject: [PATCH] Don't use dynamic SDL 2 files changed, 5 insertions(+) diff --git a/build/platform.simulator.mak b/build/platform.simulator.mak -index 07f1edd..9c349f8 100644 +index 07f1edd9ed7da8985e01b6a792d88e5212bbc7af..9c349f81e04d622540e8344d1edbc6864431b579 100644 --- a/build/platform.simulator.mak +++ b/build/platform.simulator.mak @@ -1,6 +1,7 @@ @@ -21,7 +21,7 @@ index 07f1edd..9c349f8 100644 SFLAGS += -fPIE diff --git a/ion/src/simulator/external/Makefile b/ion/src/simulator/external/Makefile -index cf7744b..5157f3c 100644 +index cf7744bf47bbf5f4232ab80ae4eb01a92e7b56ba..5157f3cee51c7579f7d6f118d674deefc63e29c0 100644 --- a/ion/src/simulator/external/Makefile +++ b/ion/src/simulator/external/Makefile @@ -99,8 +99,12 @@ endif diff --git a/Ports/gcc/package.sh b/Ports/gcc/package.sh index 67288228ff4..62206290bff 100755 --- a/Ports/gcc/package.sh +++ b/Ports/gcc/package.sh @@ -2,7 +2,7 @@ port=gcc version=15.2.0 useconfigure=true -configopts=("--target=${SERENITY_ARCH}-pc-serenity" "--with-sysroot=/" "--with-build-sysroot=${SERENITY_INSTALL_ROOT}" "--enable-languages=c,c++" "--disable-lto" "--disable-nls" "--enable-shared" "--enable-default-pie" "--enable-host-shared" "--enable-threads=posix" "--enable-initfini-array" "--with-linker-hash-style=gnu") +configopts=("--target=${SERENITY_ARCH}-serenity" "--with-sysroot=/" "--with-build-sysroot=${SERENITY_INSTALL_ROOT}" "--enable-languages=c,c++" "--disable-lto" "--disable-nls" "--enable-shared" "--enable-default-pie" "--enable-host-shared" "--enable-threads=posix" "--enable-initfini-array" "--with-linker-hash-style=gnu") files=( "https://ftpmirror.gnu.org/gnu/gcc/gcc-${version}/gcc-${version}.tar.xz#438fd996826b0c82485a29da03a72d71d6e3541a83ec702df4271f6fe025d24e" ) @@ -13,7 +13,7 @@ depends=("binutils" "gmp" "mpfr" "mpc" "isl") build() { run make "${makeopts[@]}" - run find "./host-${SERENITY_ARCH}-pc-serenity/gcc/" -maxdepth 1 -type f -executable -exec $STRIP --strip-debug {} \; || echo + run find "./host-${SERENITY_ARCH}-serenity/gcc/" -maxdepth 1 -type f -executable -exec $STRIP --strip-debug {} \; || echo } install() { diff --git a/Ports/gdb/package.sh b/Ports/gdb/package.sh index 27da03d886c..48400db93e8 100755 --- a/Ports/gdb/package.sh +++ b/Ports/gdb/package.sh @@ -2,7 +2,7 @@ port=gdb version=11.2 useconfigure=true -configopts=("--target=${SERENITY_ARCH}-pc-serenity" "--with-sysroot=/" "--with-build-sysroot=${SERENITY_INSTALL_ROOT}" "--with-newlib" "--enable-languages=c,c++" "--disable-lto" "--disable-nls" "--enable-shared" "--enable-default-pie" "--enable-host-shared" "--enable-threads=posix") +configopts=("--target=${SERENITY_ARCH}-serenity" "--with-sysroot=/" "--with-build-sysroot=${SERENITY_INSTALL_ROOT}" "--with-newlib" "--enable-languages=c,c++" "--disable-lto" "--disable-nls" "--enable-shared" "--enable-default-pie" "--enable-host-shared" "--enable-threads=posix") files=( "https://ftpmirror.gnu.org/gnu/gdb/gdb-${version}.tar.xz#1497c36a71881b8671a9a84a0ee40faab788ca30d7ba19d8463c3cc787152e32" ) diff --git a/Ports/gnuplot/patches/0001-Don-t-build-the-docs-and-the-demo.patch b/Ports/gnuplot/patches/0001-Don-t-build-the-docs-and-the-demo.patch index 52196f90a45..b4e4970be68 100644 --- a/Ports/gnuplot/patches/0001-Don-t-build-the-docs-and-the-demo.patch +++ b/Ports/gnuplot/patches/0001-Don-t-build-the-docs-and-the-demo.patch @@ -4,7 +4,7 @@ Date: Wed, 15 Apr 2020 14:23:25 +0100 Subject: [PATCH] Don't build the docs and the demo - docs - segfault during make :/ -- demo - x86_64-pc-serenity-gcc: error: unrecognized command line option '-rdynamic' +- demo - x86_64-serenity-gcc: error: unrecognized command line option '-rdynamic' --- Makefile.am | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) @@ -20,7 +20,7 @@ index 7e2c4008cda62e8b8e2959e4d2953722f6d350db..a8df6c0617210c7d7344052e3a34c569 -SUBDIRS = config m4 term src docs man demo share +# Note: For the SerenityOS port of gnuplot, the following have been removed: +# docs - segfault during make :/ -+# demo - x86_64-pc-serenity-gcc: error: unrecognized command line option '-rdynamic' ++# demo - x86_64-serenity-gcc: error: unrecognized command line option '-rdynamic' +SUBDIRS = config m4 term src man share EXTRA_DIST = BUGS Copyright FAQ.pdf INSTALL INSTALL.gnu \ diff --git a/Ports/gnuplot/patches/ReadMe.md b/Ports/gnuplot/patches/ReadMe.md index acec350ceda..49d333ce5e0 100644 --- a/Ports/gnuplot/patches/ReadMe.md +++ b/Ports/gnuplot/patches/ReadMe.md @@ -5,5 +5,5 @@ Don't build the docs and the demo - docs - segfault during make :/ -- demo - x86_64-pc-serenity-gcc: error: unrecognized command line option '-rdynamic' +- demo - x86_64-serenity-gcc: error: unrecognized command line option '-rdynamic' diff --git a/Ports/libgpg-error/patches/0002-Stub-out-the-gpgrt-lock-impl.patch b/Ports/libgpg-error/patches/0002-Stub-out-the-gpgrt-lock-impl.patch index 9a83ac7e549..e4a0993073e 100644 --- a/Ports/libgpg-error/patches/0002-Stub-out-the-gpgrt-lock-impl.patch +++ b/Ports/libgpg-error/patches/0002-Stub-out-the-gpgrt-lock-impl.patch @@ -4,17 +4,17 @@ Date: Wed, 14 Apr 2021 04:32:34 +0200 Subject: [PATCH] Stub out the gpgrt lock impl --- - src/syscfg/lock-obj-pub.x86_64-pc-serenity.h | 17 +++++++++++++++++ + .../lock-obj-pub.x86_64-unknown-serenity.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) - create mode 100644 src/syscfg/lock-obj-pub.x86_64-pc-serenity.h + create mode 100644 src/syscfg/lock-obj-pub.x86_64-unknown-serenity.h -diff --git a/src/syscfg/lock-obj-pub.x86_64-pc-serenity.h b/src/syscfg/lock-obj-pub.x86_64-pc-serenity.h +diff --git a/src/syscfg/lock-obj-pub.x86_64-unknown-serenity.h b/src/syscfg/lock-obj-pub.x86_64-unknown-serenity.h new file mode 100644 -index 0000000000000000000000000000000000000000..f681e010c88c27bd36b78a1ccf39168e897a22ff +index 0000000000000000000000000000000000000000..390b9dd12afc823e35f940085e43218393d9955b --- /dev/null -+++ b/src/syscfg/lock-obj-pub.x86_64-pc-serenity.h ++++ b/src/syscfg/lock-obj-pub.x86_64-unknown-serenity.h @@ -0,0 +1,17 @@ -+## lock-obj-pub.x86_64-pc-serenity.h - NO LOCK SUPPORT ++## lock-obj-pub.x86_64-unknown-serenity.h - NO LOCK SUPPORT +## File created by gen-posix-lock-obj - DO NOT EDIT +## To be included by mkheader into gpg-error.h + diff --git a/Ports/llvm/package.sh b/Ports/llvm/package.sh index 0b531b9bf39..09c38e37ec7 100755 --- a/Ports/llvm/package.sh +++ b/Ports/llvm/package.sh @@ -58,7 +58,7 @@ configure() { -DCROSS_TOOLCHAIN_FLAGS_NATIVE="-DCMAKE_C_COMPILER=$CC;-DCMAKE_CXX_COMPILER=$CXX" \ -DHAVE_LIBRT=OFF \ -DLLVM_APPEND_VC_REV=OFF \ - -DLLVM_DEFAULT_TARGET_TRIPLE=$SERENITY_ARCH-pc-serenity \ + -DLLVM_DEFAULT_TARGET_TRIPLE=$SERENITY_ARCH-serenity \ -DLLVM_ENABLE_PROJECTS="clang;lld;compiler-rt" \ -DLLVM_HAVE_LIBXAR=OFF \ -DLLVM_INCLUDE_BENCHMARKS=OFF \ diff --git a/Ports/luajit/package.sh b/Ports/luajit/package.sh index 8de188ace2f..ed34c28069f 100755 --- a/Ports/luajit/package.sh +++ b/Ports/luajit/package.sh @@ -11,7 +11,7 @@ if [ ${SERENITY_ARCH} = "x86_64" ]; then M_FLAG=-m64 fi -makeopts=("CROSS=${SERENITY_ARCH}-pc-serenity-" "HOST_CC=${HOST_CC} ${M_FLAG}") +makeopts=("CROSS=${SERENITY_ARCH}-serenity-" "HOST_CC=${HOST_CC} ${M_FLAG}") configure() { printf "\x1b[31m\x1b[5mATTENTION: \x1b[0m\x1b[31m\x1b[1mIf this fails, install either libc6-dev-i386 or libc6-dev-amd64\x1b[0m\n" diff --git a/Ports/mruby/patches/0001-Include-sys-select.h.patch b/Ports/mruby/patches/0001-Include-sys-select.h.patch index 7e8ead36b87..4cd50a15824 100644 --- a/Ports/mruby/patches/0001-Include-sys-select.h.patch +++ b/Ports/mruby/patches/0001-Include-sys-select.h.patch @@ -8,7 +8,7 @@ Subject: [PATCH] Include sys/select.h 1 file changed, 1 insertion(+) diff --git a/mrbgems/mruby-io/src/io.c b/mrbgems/mruby-io/src/io.c -index 0469c05..0dae6ca 100644 +index 0469c05454a7401501d2faea63c05118120162df..0dae6ca32e73aa8234dc9c9ce0d00abc5befe84c 100644 --- a/mrbgems/mruby-io/src/io.c +++ b/mrbgems/mruby-io/src/io.c @@ -49,6 +49,7 @@ diff --git a/Ports/mruby/patches/0002-Add-a-build-conf-for-serenity.patch b/Ports/mruby/patches/0002-Add-a-build-conf-for-serenity.patch index 5856095e6f8..737c2a6586a 100644 --- a/Ports/mruby/patches/0002-Add-a-build-conf-for-serenity.patch +++ b/Ports/mruby/patches/0002-Add-a-build-conf-for-serenity.patch @@ -10,20 +10,20 @@ Subject: [PATCH] Add a build conf for serenity diff --git a/build_config/serenity.rb b/build_config/serenity.rb new file mode 100644 -index 0000000..b38f5ee +index 0000000000000000000000000000000000000000..e00103089ca9a887a512abff8c729478844a6055 --- /dev/null +++ b/build_config/serenity.rb @@ -0,0 +1,16 @@ +MRuby::CrossBuild.new('serenity') do |conf| + conf.toolchain :gcc + -+ conf.archiver.command = "#{ENV['SERENITY_ARCH']}-pc-serenity-ar" -+ conf.linker.command = "#{ENV['SERENITY_ARCH']}-pc-serenity-g++" ++ conf.archiver.command = "#{ENV['SERENITY_ARCH']}-serenity-ar" ++ conf.linker.command = "#{ENV['SERENITY_ARCH']}-serenity-g++" + -+ conf.cxx.command = "#{ENV['SERENITY_ARCH']}-pc-serenity-g++" ++ conf.cxx.command = "#{ENV['SERENITY_ARCH']}-serenity-g++" + conf.cxx.defines << (ENV['SERENITY_ARCH'].include?('64') ? 'MRB_64BIT' : 'MRB_32BIT') + -+ conf.cc.command = "#{ENV['SERENITY_ARCH']}-pc-serenity-gcc" ++ conf.cc.command = "#{ENV['SERENITY_ARCH']}-serenity-gcc" + conf.cc.defines << (ENV['SERENITY_ARCH'].include?('64') ? 'MRB_64BIT' : 'MRB_32BIT') + + conf.gembox 'full-core' diff --git a/Ports/qemu/package.sh b/Ports/qemu/package.sh index dbd17ad8aac..4e3b65160d9 100755 --- a/Ports/qemu/package.sh +++ b/Ports/qemu/package.sh @@ -7,7 +7,7 @@ version="${QEMU_VERSION}" useconfigure='true' configopts=( '--target-list=aarch64-softmmu,i386-softmmu,riscv64-softmmu,x86_64-softmmu' - "--cross-prefix=${SERENITY_ARCH}-pc-serenity-" + "--cross-prefix=${SERENITY_ARCH}-serenity-" '--extra-ldflags=-lm' '--without-default-features' '--disable-strip' @@ -41,5 +41,5 @@ post_install() { done } -# We don't have '-pc-serenity-pkg-config', so just use the "normal" one. +# We don't have '-serenity-pkg-config', so just use the "normal" one. export PKG_CONFIG="pkg-config" diff --git a/Ports/tinycc/package.sh b/Ports/tinycc/package.sh index 37084bbd18c..c1782d7795f 100755 --- a/Ports/tinycc/package.sh +++ b/Ports/tinycc/package.sh @@ -9,8 +9,8 @@ makeopts=("tcc") configure() { run ./configure \ - --cross-prefix="${SERENITY_ARCH}-pc-serenity-" \ + --cross-prefix="${SERENITY_ARCH}-serenity-" \ --cpu="${SERENITY_ARCH}" \ - --triplet="${SERENITY_ARCH}-pc-serenity" \ + --triplet="${SERENITY_ARCH}-serenity" \ --crtprefix=/usr/lib } diff --git a/Ports/zig/package.sh b/Ports/zig/package.sh index 7e9cda384a6..5657f53780d 100755 --- a/Ports/zig/package.sh +++ b/Ports/zig/package.sh @@ -36,7 +36,7 @@ post_fetch() { } build() { - local gcc_lib_dir="${DESTDIR}/usr/local/lib/gcc/${SERENITY_ARCH}-pc-serenity/${SERENITY_GCC_VERSION}" + local gcc_lib_dir="${DESTDIR}/usr/local/lib/gcc/${SERENITY_ARCH}-serenity/${SERENITY_GCC_VERSION}" if [ ! -f "${gcc_lib_dir}/crtbeginS.o" ] || [ ! -f "${gcc_lib_dir}/crtendS.o" ]; then echo "crtbeginS.o or crtendS.o could not be found, ensure the GCC port is installed." diff --git a/Ports/zig/patches/0006-build-Adjust-build-process-for-SerenityOS.patch b/Ports/zig/patches/0006-build-Adjust-build-process-for-SerenityOS.patch index 1fbcb931c64..8aeb1c69b2e 100644 --- a/Ports/zig/patches/0006-build-Adjust-build-process-for-SerenityOS.patch +++ b/Ports/zig/patches/0006-build-Adjust-build-process-for-SerenityOS.patch @@ -8,7 +8,7 @@ Subject: [PATCH] build: Adjust build process for SerenityOS 1 file changed, 34 insertions(+), 1 deletion(-) diff --git a/build b/build -index f5ec57529f689fe4848592c7a5b35b221a83cf6a..965ce0265515d0c50ec32746962a87f5198c41b2 100755 +index f5ec57529f689fe4848592c7a5b35b221a83cf6a..b472795f3f21c3da866822185c1b5a26f878284a 100755 --- a/build +++ b/build @@ -19,6 +19,7 @@ case $TARGET_OS_CMAKE in @@ -32,7 +32,7 @@ index f5ec57529f689fe4848592c7a5b35b221a83cf6a..965ce0265515d0c50ec32746962a87f5 +crt_dir=$SERENITY_INSTALL_ROOT/usr/lib +msvc_lib_dir= +kernel32_lib_dir= -+gcc_dir=$SERENITY_INSTALL_ROOT/usr/local/lib/gcc/$SERENITY_ARCH-pc-serenity/$SERENITY_GCC_VERSION ++gcc_dir=$SERENITY_INSTALL_ROOT/usr/local/lib/gcc/$SERENITY_ARCH-serenity/$SERENITY_GCC_VERSION +EOF + +export ZIG_LIBC="$ROOTDIR/out/libc_installation.txt" diff --git a/Ports/zig/patches/0008-build-Remove-unsupported-zig-linker-flag-z-separate-.patch b/Ports/zig/patches/0008-build-Remove-unsupported-zig-linker-flag-z-separate-.patch index 2c4bb554844..902715707fe 100644 --- a/Ports/zig/patches/0008-build-Remove-unsupported-zig-linker-flag-z-separate-.patch +++ b/Ports/zig/patches/0008-build-Remove-unsupported-zig-linker-flag-z-separate-.patch @@ -8,7 +8,7 @@ Subject: [PATCH] build: Remove unsupported zig linker flag -z separate-code 1 file changed, 1 insertion(+) diff --git a/build b/build -index 965ce0265515d0c50ec32746962a87f5198c41b2..980d7d02d11dce3c6684d9a965f6b86b6f041d5f 100755 +index b472795f3f21c3da866822185c1b5a26f878284a..e27ffac30d6263d0533d3679186c6ac287ab4d5d 100755 --- a/build +++ b/build @@ -177,6 +177,7 @@ cmake "$ROOTDIR/llvm" \ diff --git a/Ports/zig/patches/0010-build-Set-correct-Zig-version.patch b/Ports/zig/patches/0010-build-Set-correct-Zig-version.patch index f9fd2af4ee9..6aee577e886 100644 --- a/Ports/zig/patches/0010-build-Set-correct-Zig-version.patch +++ b/Ports/zig/patches/0010-build-Set-correct-Zig-version.patch @@ -11,7 +11,7 @@ patch the version too. 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build b/build -index 980d7d02d11dce3c6684d9a965f6b86b6f041d5f..d26efcfeab08d2c27c14bbcf4384b1fc8a064415 100755 +index e27ffac30d6263d0533d3679186c6ac287ab4d5d..aefa5a7b9bb3bc8fbba73b3bfc6a7cbd8b3f1122 100755 --- a/build +++ b/build @@ -7,7 +7,7 @@ TARGET="$1" # Example: riscv64-linux-gnu diff --git a/Tests/LibDisassembly/TestRISCV64Disassembly.cpp b/Tests/LibDisassembly/TestRISCV64Disassembly.cpp index 3374ed45963..b16f8c625e7 100644 --- a/Tests/LibDisassembly/TestRISCV64Disassembly.cpp +++ b/Tests/LibDisassembly/TestRISCV64Disassembly.cpp @@ -66,8 +66,8 @@ static void check_disassembly(ReadonlySpan> expec // Re-generate the machine code with the following commands: // // cd Tests/LibDisassembly -// ../../Toolchain/Local/riscv64/bin/riscv64-pc-serenity-gcc -march=rv64imafd_zicsr_zifencei -fpic -mno-relax -ffreestanding -nostdlib -nostartfiles -mno-csr-check all_riscv_instructions.s -o all_riscv_instructions.elf -// ../../Toolchain/Local/riscv64/bin/riscv64-pc-serenity-objcopy -O binary -j .text all_riscv_instructions.elf all_riscv_instructions.bin +// ../../Toolchain/Local/riscv64/bin/riscv64-serenity-gcc -march=rv64imafd_zicsr_zifencei -fpic -mno-relax -ffreestanding -nostdlib -nostartfiles -mno-csr-check all_riscv_instructions.s -o all_riscv_instructions.elf +// ../../Toolchain/Local/riscv64/bin/riscv64-serenity-objcopy -O binary -j .text all_riscv_instructions.elf all_riscv_instructions.bin // xxd -i all_riscv_instructions.bin TEST_CASE(check_all_instructions) { diff --git a/Toolchain/BuildClang.sh b/Toolchain/BuildClang.sh index 3743ad942ee..9d499877f55 100755 --- a/Toolchain/BuildClang.sh +++ b/Toolchain/BuildClang.sh @@ -221,12 +221,12 @@ pushd "$DIR/Build/clang" pushd llvm buildstep "llvm/configure" cmake "$DIR/Tarballs/$LLVM_NAME/llvm" \ -G Ninja \ - -DSERENITY_x86_64-pc-serenity_SYSROOT="$BUILD/x86_64clang/Root" \ - -DSERENITY_aarch64-pc-serenity_SYSROOT="$BUILD/aarch64clang/Root" \ - -DSERENITY_riscv64-pc-serenity_SYSROOT="$BUILD/riscv64clang/Root" \ - -DSERENITY_x86_64-pc-serenity_STUBS="$DIR/Stubs/x86_64" \ - -DSERENITY_aarch64-pc-serenity_STUBS="$DIR/Stubs/aarch64" \ - -DSERENITY_riscv64-pc-serenity_STUBS="$DIR/Stubs/riscv64" \ + -DSERENITY_x86_64-serenity_SYSROOT="$BUILD/x86_64clang/Root" \ + -DSERENITY_aarch64-serenity_SYSROOT="$BUILD/aarch64clang/Root" \ + -DSERENITY_riscv64-serenity_SYSROOT="$BUILD/riscv64clang/Root" \ + -DSERENITY_x86_64-serenity_STUBS="$DIR/Stubs/x86_64" \ + -DSERENITY_aarch64-serenity_STUBS="$DIR/Stubs/aarch64" \ + -DSERENITY_riscv64-serenity_STUBS="$DIR/Stubs/riscv64" \ -DCMAKE_INSTALL_PREFIX="$PREFIX" \ -C "$DIR/CMake/LLVMConfig.cmake" \ ${link_lld:+"-DLLVM_ENABLE_LLD=ON"} \ @@ -243,9 +243,9 @@ pushd "$DIR/Local/clang/bin/" ln -s ../../mold/bin/mold ld.mold for arch in $ARCHS; do - ln -s clang "$arch"-pc-serenity-clang - ln -s clang++ "$arch"-pc-serenity-clang++ - ln -s llvm-nm "$arch"-pc-serenity-nm - echo "--sysroot=$BUILD/${arch}clang/Root" > "$arch"-pc-serenity.cfg + ln -s clang "$arch"-serenity-clang + ln -s clang++ "$arch"-serenity-clang++ + ln -s llvm-nm "$arch"-serenity-nm + echo "--sysroot=$BUILD/${arch}clang/Root" > "$arch"-unknown-serenity.cfg done popd diff --git a/Toolchain/BuildEDK2.sh b/Toolchain/BuildEDK2.sh index 143ebbdc1dc..409193ef494 100755 --- a/Toolchain/BuildEDK2.sh +++ b/Toolchain/BuildEDK2.sh @@ -104,9 +104,9 @@ export PATH="${_DIR}/Local/${SERENITY_ARCH}/bin:${PATH}" # These environment variables will be used by the EDK II build scripts. export WORKSPACE="$_DIR/Build/edk2" export PACKAGES_PATH="$_DIR/Tarballs/edk2:$_DIR/Tarballs/edk2-platforms:$_DIR/Tarballs/edk2-non-osi" -export GCC5_AARCH64_PREFIX=aarch64-pc-serenity- -export GCC5_RISCV64_PREFIX=riscv64-pc-serenity- -export GCC5_X64_PREFIX=x86_64-pc-serenity- +export GCC5_AARCH64_PREFIX=aarch64-serenity- +export GCC5_RISCV64_PREFIX=riscv64-serenity- +export GCC5_X64_PREFIX=x86_64-serenity- mkdir -p "$WORKSPACE" diff --git a/Toolchain/BuildGDB.sh b/Toolchain/BuildGDB.sh index 69beadebbe8..b58674eb061 100755 --- a/Toolchain/BuildGDB.sh +++ b/Toolchain/BuildGDB.sh @@ -14,7 +14,7 @@ GDB_PKG="${GDB_NAME}.tar.xz" GDB_BASE_URL="https://ftpmirror.gnu.org/gnu/gdb" ARCH=${1:-"x86_64"} -TARGET="$ARCH-pc-serenity" +TARGET="$ARCH-serenity" PREFIX="$DIR/Local/$ARCH-gdb" echo "Building GDB $GDB_VERSION for $TARGET" diff --git a/Toolchain/BuildGNU.sh b/Toolchain/BuildGNU.sh index 97edc58a060..35fbf6248ff 100755 --- a/Toolchain/BuildGNU.sh +++ b/Toolchain/BuildGNU.sh @@ -13,7 +13,7 @@ exit_if_running_as_root "Do not run BuildGNU.sh as root, your Build directory wi echo "$DIR" ARCH=${ARCH:-"x86_64"} -TARGET="$ARCH-pc-serenity" +TARGET="$ARCH-serenity" PREFIX="$DIR/Local/$ARCH" BUILD="$DIR/../Build/$ARCH" SYSROOT="$BUILD/Root" @@ -288,6 +288,6 @@ pushd "$DIR/Build/$ARCH" popd -pushd "$DIR/Local/$ARCH/$ARCH-pc-serenity/bin" +pushd "$DIR/Local/$ARCH/$ARCH-serenity/bin" buildstep "mold_symlink" ln -s ../../../mold/bin/mold ld.mold popd diff --git a/Toolchain/BuildJakt.sh b/Toolchain/BuildJakt.sh index 4703a4f4ab5..be9561a320b 100755 --- a/Toolchain/BuildJakt.sh +++ b/Toolchain/BuildJakt.sh @@ -19,7 +19,7 @@ PREFIX="$DIR/Local/jakt" VALID_TOOLCHAINS=() for ARCH in "${ARCHES[@]}"; do - TARGET="$ARCH-pc-serenity" + TARGET="$ARCH-serenity" eval "BUILD_GNU_${ARCH}=\"$DIR/../Build/$ARCH\"" eval "BUILD_CLANG_${ARCH}=\"$DIR/../Build/${ARCH}clang\"" @@ -188,8 +188,8 @@ build_for() { TOOLCHAIN="$1" ARCH="$2" - TARGET="$ARCH-pc-serenity" - JAKT_TARGET="$TARGET-unknown" + TARGET="$ARCH-serenity" + JAKT_TARGET="$ARCH-unknown-serenity-unknown" current_build="BUILD_${TOOLCHAIN}_${ARCH}" current_cxx="CXX_${TOOLCHAIN}_${ARCH}" diff --git a/Toolchain/CMake/ClangToolchain.txt.in b/Toolchain/CMake/ClangToolchain.txt.in index 28c180a3f68..e6c92f2f0c8 100644 --- a/Toolchain/CMake/ClangToolchain.txt.in +++ b/Toolchain/CMake/ClangToolchain.txt.in @@ -1,7 +1,7 @@ set(CMAKE_SYSTEM_NAME SerenityOS) set(CMAKE_SYSTEM_PROCESSOR "@SERENITY_ARCH@") -set(triple @SERENITY_ARCH@-pc-serenity) +set(triple @SERENITY_ARCH@-serenity) set(TOOLCHAIN_ROOT @SERENITY_SOURCE_DIR@/Toolchain/Local/clang/) set(TOOLCHAIN_PATH ${TOOLCHAIN_ROOT}/bin) diff --git a/Toolchain/CMake/GNUToolchain.txt.in b/Toolchain/CMake/GNUToolchain.txt.in index 94ff4fffc09..fb65f90c5b8 100644 --- a/Toolchain/CMake/GNUToolchain.txt.in +++ b/Toolchain/CMake/GNUToolchain.txt.in @@ -1,7 +1,7 @@ set(CMAKE_SYSTEM_NAME SerenityOS) set(CMAKE_SYSTEM_PROCESSOR "@SERENITY_ARCH@") -set(triple @SERENITY_ARCH@-pc-serenity) +set(triple @SERENITY_ARCH@-serenity) set(TOOLCHAIN_PATH @SERENITY_SOURCE_DIR@/Toolchain/Local/@SERENITY_ARCH@/bin) set(TOOLCHAIN_PREFIX ${TOOLCHAIN_PATH}/${triple}-) diff --git a/Toolchain/CMake/LLVMConfig.cmake b/Toolchain/CMake/LLVMConfig.cmake index 067e8469552..c518602fabd 100644 --- a/Toolchain/CMake/LLVMConfig.cmake +++ b/Toolchain/CMake/LLVMConfig.cmake @@ -31,7 +31,7 @@ else() set(CLANG_ENABLE_CLANGD OFF CACHE BOOL "" FORCE) endif() -foreach(target x86_64-pc-serenity;aarch64-pc-serenity;riscv64-pc-serenity) +foreach(target x86_64-serenity;aarch64-serenity;riscv64-serenity) list(APPEND targets "${target}") set(RUNTIMES_${target}_CMAKE_BUILD_TYPE Release CACHE STRING "") diff --git a/Toolchain/CMake/meson-cross-file-Clang.txt.in b/Toolchain/CMake/meson-cross-file-Clang.txt.in index 6992d29caa4..becdfd122ad 100644 --- a/Toolchain/CMake/meson-cross-file-Clang.txt.in +++ b/Toolchain/CMake/meson-cross-file-Clang.txt.in @@ -1,6 +1,6 @@ [binaries] -c = '@SERENITY_ARCH@-pc-serenity-clang' -cpp = '@SERENITY_ARCH@-pc-serenity-clang++' +c = '@SERENITY_ARCH@-serenity-clang' +cpp = '@SERENITY_ARCH@-serenity-clang++' ar = 'llvm-ar' ranlib = 'llvm-ranlib' pkgconfig = 'pkg-config' diff --git a/Toolchain/CMake/meson-cross-file-GNU.txt.in b/Toolchain/CMake/meson-cross-file-GNU.txt.in index 828ac94aa35..ace8e65c9bc 100644 --- a/Toolchain/CMake/meson-cross-file-GNU.txt.in +++ b/Toolchain/CMake/meson-cross-file-GNU.txt.in @@ -1,8 +1,8 @@ [binaries] -c = '@SERENITY_ARCH@-pc-serenity-gcc' -cpp = '@SERENITY_ARCH@-pc-serenity-g++' -ar = '@SERENITY_ARCH@-pc-serenity-ar' -ranlib = '@SERENITY_ARCH@-pc-serenity-ranlib' +c = '@SERENITY_ARCH@-serenity-gcc' +cpp = '@SERENITY_ARCH@-serenity-g++' +ar = '@SERENITY_ARCH@-serenity-ar' +ranlib = '@SERENITY_ARCH@-serenity-ranlib' pkgconfig = 'pkg-config' [properties] diff --git a/Toolchain/Stubs/README.md b/Toolchain/Stubs/README.md index 8974f368c5e..899d9ef4d65 100644 --- a/Toolchain/Stubs/README.md +++ b/Toolchain/Stubs/README.md @@ -29,7 +29,7 @@ Simple, my friend: ```sh touch empty.cpp -Toolchain/Local/clang/bin/clang++ --target={arch}-pc-serenity -nostdlib -shared empty.cpp -o empty.so +Toolchain/Local/clang/bin/clang++ --target={arch}-serenity -nostdlib -shared empty.cpp -o empty.so # And optionally, Toolchain/Local/clang/bin/llvm-strip empty.so ```