summaryrefslogtreecommitdiff
path: root/Meta/serenity.sh
AgeCommit message (Collapse)Author
2022-01-07Meta+CI+Documentation: Bump host gcc requirement up to gcc 11Andrew Kaster
Bump macOS CI version to macOS 11 while we're here.
2021-12-29Meta: Add egcc as a GCC candidatetuftedocelot
egcc is the alias for the GCC compiler (since OpenBSD uses Clang by default). Toolchain/BuildIt.sh has the necessary adjustments, but the compiler check occurs before BuildIt.sh is called.
2021-11-02Meta: Don't check for toolchain if serenity.sh target is lagomLinus Groh
This is just silly :^) $ serenity run lagom js WARNING: unknown toolchain 'js'. Defaulting to GNU. Valid values are 'Clang', 'GNU' (default)
2021-10-25Kernel+SystemServer: Change bootmode to system_modeBen Wiederhake
'bootmode' now only controls which set of services are started by SystemServer, so it is more appropriate to rename it to system_mode, and no longer validate it in the Kernel.
2021-10-25Kernel: Separate panic behavior from bootmodeBen Wiederhake
Bootmode used to control panic behavior and SystemServer. This patch factors panic behavior control into a separate flag.
2021-10-25Kernel: Separate framebuffers from bootmodeBen Wiederhake
Bootmode used to control framebuffers, panic behavior, and SystemServer. This patch factors framebuffer control into a separate flag. Note that the combination 'bootmode=self-test fbdev=on' leads to unexpected behavior, which can only be fixed in a later commit.
2021-10-17Meta: Support llvm-addr2line in `serenity.sh`Daniel Bertalan
With this, the subcommands 'addr2line` and `kaddr2line` work as with the GNU toolchain.
2021-10-17Toolchain+Meta: Update LLVM version to 13.0.0Daniel Bertalan
This commit updates the Clang toolchain's version to 13.0.0, which comes with better C++20 support and improved handling of new features by clang-format. Due to the newly enabled `-Bsymbolic-functions` flag, our Clang binaries will only be 2-4% slower than if we dynamically linked them, but we save hundreds of megabytes of disk space. The `BuildClang.sh` script has been reworked to build the entire toolchain in just three steps: one for the compiler, one for GNU binutils, and one for the runtime libraries. This reduces the complexity of the build script, and will allow us to modify the CI configuration to only rebuild the libraries when our libc headers change. Most of the compile flags have been moved out to a separate CMake cache file, similarly to how the Android and Fuchsia toolchains are implemented within the LLVM repo. This provides a nicer interface than the heaps of command-line arguments. We no longer build separate toolchains for each architecture, as the same Clang binary can compile code for multiple targets. The horrible mess that `SERENITY_CLANG_ARCH` was, has been removed in this commit. Clang happily accepts an `i686-pc-serenity` target triple, which matches what our GCC toolchain accepts.
2021-10-07Meta: Warn on `rebuild-toolchain i686 clang`Nico Weber
It's "Clang" (capitalized). Silently building gcc if the toolchain isn't know seems a bit unfriendly. So print a warning for this (and for other unknown toolchains).
2021-09-16Meta: Ensure BUILD_LAGOM is set when running `serenity.sh test lagom`Andrew Kaster
If the superbuild created the lagom binary directory, it won't set BUILD_LAGOM=ON in the CMake cache for that binary directory. Insert a check into build_target() to make sure that if the user explicitly asks for the lagom target, we have all our ducks in a row.
2021-09-15Meta: Update serenity.sh for the SuperBuildAndrew Kaster
Direct build commands to the SuperBuild's binary directory, and image/run commands to the Serenity binary directory. As a side benefit, make the lagom target only build Lagom instead of the entire OS alongside Lagom.
2021-09-07Meta: Don't immediately continue in serenity.sh's gdb optionIdan Horowitz
This allows us to step through the initial boot instructions.
2021-09-03Meta: Add the ability to specify clang with serenity.shTom
This enables maintaining gcc and clang builds side-by-side.
2021-08-29Meta: Remove duplicate valid target check from serenity.shLinus Groh
2021-08-29Meta: Mention aarch64 as a supported TARGET in serenity.sh's helpLinus Groh
2021-08-28Toolchain: Enough to make `rebuild-toolchain aarch64` workNico Weber
The gcc patch might not be completely correct, but at least the toolchain completes building.
2021-08-28Meta: Let serenity.sh's TARGET default to SERENITY_ARCH, not i686Linus Groh
This environment variable is already widely used across our build scripts and tooling, so serenity.sh should respect it as well. It still uses i686 as the fallback.
2021-08-22Meta: Add 'copy-src' command to serenity.shItamar
This command copies the project's source tree to /home/anon/Source/serenity in the built disk image. This will be useful for working on serenity inside serenity :^)
2021-07-10Documentation: Reorganize the build documentationGunnar Beutner
2021-07-10Meta: Automatically pick an appropriate GCC binaryGunnar Beutner
2021-07-01Meta: Make serenity.sh pass the SERENITY_ARCH cmake argument for x86_64Idan Horowitz
This is required as our CMake config defaults to i686 if not overriden manually via the SERENITY_ARCH argument.
2021-06-02Meta: Remove duplicated ensure_toolchain from serenity.shLinus Groh
2021-06-01Meta: Make `serenity.sh` invoke `cmake` when `build.ninja` is missingJelle Raaijmakers
2021-04-22Meta: Add GDB pretty printersGunnar Beutner
2021-04-20Everywhere: Replace SERENITY_ROOT with SERENITY_SOURCE_DIRPanagiotis Vasilopoulos
2021-04-20Meta: Add a rebuild-world command to serenity.shBrian Gianforcaro
This was brought up as something that would be useful by `RealKC` on the discord, and I happened to agree that it would be useful. Especially given the abundance of Toolchain changes recently.
2021-04-18Meta: Replace /bin/env with /usr/bin/envin serenity.sh shebangLinus Groh
This is more portable.
2021-04-17Meta: Remove stray newline from serenity.sh help textLinus Groh
2021-04-17Meta: Allow serenity.sh to be used outside of assumed working directoryBrian Gianforcaro
This change fixes two bugs: 1) If you run `serenity.sh` outside of your serenity git clone, the `get_top_dir()` function won't be able to auto detect the serenity root dir and we'll error out. By allowing the script to use an existing $SERENITY_ROOT vlaue if it exists, we can solve this problem. 2) If tried to run a command which ends up calling `build_toolchain()` and you were outside of the root of the project, it should just fail. Fix this by utilizing `$SERENITY_ROOT`.
2021-04-15Meta: Use basename for serenity.sh help messageBrian Gianforcaro
I have this symlinked into ~/bin, when looking at the help/usage it would previously print the fully qualified path to the script making the help very difficult to read.
2021-03-24Meta: Pass arguments to 'serenity.sh run lagom' executableLinus Groh
2021-03-12Meta: Support 'serenity.sh gdb lagom'Linus Groh
2021-03-12Lagom: Add 'test' command to serenity.shLinus Groh
2021-03-12Meta: Make 'serenity.sh run lagom' run Lagom executablesLinus Groh
Running the tests will be moved to a separate test command which can then leverage the availability of different targets and run either unit tests on the host or the image in QEMU in self-test mode. :^)
2021-03-12Meta: Don't depend on toolchain for lagom target in serenity.shLinus Groh
- Only call ensure_toolchain for non-lagom targets - Use host addr2line, we can't expect the i686 toolchain's addr2line to support the host's binary executable format - Don't export SERENITY_ARCH and TOOLCHAIN_DIR, don't need them anymore
2021-03-12Meta: Add lagom_unsupported helper function to serenity.shLinus Groh
2021-03-11Meta: Add gdb command to serenity.shTom
This uses tmux for a split screen setup, which makes it easy do debug the kernel while viewing the QEMU output in the same terminal.
2021-03-09Meta: Add a build helper scriptTom
This script automatically manages the toolchain and cmake/ninja folders making it easier to manage the different target architectures.