~craftyguy

Oregon, US

~craftyguy/superd

Last active a month ago

~craftyguy/dnsane

Last active 2 months ago

~craftyguy/caerbannog-devel

Last active 7 months ago

~craftyguy/caerbannog-announce

Last active 2 years ago

~craftyguy/ridecasa

Last active 2 years ago

~craftyguy/public-inbox

Last active 3 years ago
View more

Recent activity

[PATCH pmbootstrap 3/3] install/partition: set esp flag for /boot when using GPT 14 days ago

From Clayton Craft to ~postmarketos/pmbootstrap-devel

---
 pmb/install/partition.py | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/pmb/install/partition.py b/pmb/install/partition.py
index 01d21cb9..cc7a5a0d 100644
--- a/pmb/install/partition.py
+++ b/pmb/install/partition.py
@@ -97,6 +97,15 @@ def partition(args, layout, size_boot, size_reserve):
        ["set", str(layout["boot"]), "boot", "on"]
    ]

    # Not strictly necessary if the device doesn't use EFI boot, but marking
    # it as an ESP will cover all situations where the device does use EFI
[message trimmed]

[PATCH pmbootstrap 2/3] qemu/run: add support for EFI boot 14 days ago

From Clayton Craft to ~postmarketos/pmbootstrap-devel

This add support for EFI boot in pmb qemu, it can be enabled by
specifying the --efi option.
---
 pmb/qemu/run.py | 17 ++++++++++++++---
 1 file changed, 14 insertions(+), 3 deletions(-)

diff --git a/pmb/qemu/run.py b/pmb/qemu/run.py
index 11d1992a..46e2d752 100644
--- a/pmb/qemu/run.py
+++ b/pmb/qemu/run.py
@@ -161,9 +161,13 @@ def command_qemu(args, arch, img_path, img_path_2nd=None):
        command += ["-L", rootfs_native + "/usr/share/qemu/"]

    command += ["-nodefaults"]
[message trimmed]

[PATCH pmbootstrap 1/3] parse/arguments: add qemu --efi option 14 days ago

From Clayton Craft to ~postmarketos/pmbootstrap-devel

This will be used to support EFI boot in qemu
---
 pmb/parse/arguments.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/pmb/parse/arguments.py b/pmb/parse/arguments.py
index 15c6c4df..372a8e19 100644
--- a/pmb/parse/arguments.py
+++ b/pmb/parse/arguments.py
@@ -366,6 +366,8 @@ def arguments_qemu(subparser):
    ret.add_argument("--host-qemu", dest="host_qemu", action='store_true',
                     help="Use the host system's qemu")

    ret.add_argument("--efi", action=argparse.BooleanOptionalAction,
[message trimmed]

[PATCH pmbootstrap 0/3] Enable EFI boot in pmb qemu 14 days ago

From Clayton Craft to ~postmarketos/pmbootstrap-devel

This series is to enable support for EFI boot in qemu. It allows for
testing EFI bootloaders in qemu, for debugging/supporting devices that
require EFI boot.

There's a patch required to pmaports to actually set up the qemu-amd64
or qemu-aarch64 "devices" to use this, but some debate (in the pmaports
MR I haven't filed yet) is necessary as to whether this should be the
new default or not for those devices...

Clayton Craft (3):
  parse/arguments: add qemu --efi option
  qemu/run: add support for EFI boot
  install/partition: set esp flag for /boot when using GPT

Re: [PATCH pmbootstrap 00/18] kconfig check: rework, update waydroid 16 days ago

From Clayton Craft to ~postmarketos/pmbootstrap-devel

On Sun, 12 Mar 2023 16:13:07 +0100 Oliver Smith <ollieparanoid@postmarketos.org> wrote:
> Adjust the kconfig check to add new required options for waydroid:
> 
>   kconfig_options_waydroid: order alphabetically
>   kconfig_options_waydroid: update to android 11
>   kconfig_options_waydroid: enable PSI
> 
> While at it, fix several legacy problems we had with the kconfig check:
> * the tests were not independent of the current kconfig checks we have
>   in place, meaning whenever adjusting the checks, the tests needed to
>   be adjusted too
> * also the tests were not independent of current state of pmaports
> * the various check components we have (waydroid, iwd, nftables, ...)
>   were duplicated throughout the code as arguments that get passed to

Re: [PATCH pmbootstrap 12/18] test: rework kconfig check tests 16 days ago

From Clayton Craft to ~postmarketos/pmbootstrap-devel

On Sun, 12 Mar 2023 16:13:19 +0100 Oliver Smith <ollieparanoid@postmarketos.org> wrote:
> diff --git a/test/test_parse_kconfig.py b/test/test_parse_kconfig.py
> new file mode 100644
> index 00000000..8c6d311c
> --- /dev/null
> +++ b/test/test_parse_kconfig.py
>
> +def test_extract_version(tmpdir):
> +    func = pmb.parse.kconfig.extract_version
> +    path = f"{tmpdir}/config"
> +
> +    with open(path, "w") as handle:
> +        handle.write("#\n"
> +                     "# Automatically generated file; DO NOT EDIT.\n"

Re: [PATCH pmbootstrap 03/18] kconfig check: remove redundant component lists 16 days ago

From Clayton Craft to ~postmarketos/pmbootstrap-devel

On Sun, 12 Mar 2023 16:13:10 +0100 Oliver Smith <ollieparanoid@postmarketos.org> wrote:
> diff --git a/pmb/parse/kconfig.py b/pmb/parse/kconfig.py
> index f066936f..3b5c15e4 100644
> --- a/pmb/parse/kconfig.py
> +++ b/pmb/parse/kconfig.py
> @@ -74,48 +91,49 @@ def check_option(component, details, config, config_path, option,
>      return True
>  
>  
> -def check_config(config_path, config_arch, pkgver,
> -                 waydroid=False,
> -                 iwd=False,
> -                 nftables=False,
> -                 containers=False,

Re: [PATCH pmbootstrap] pmb/parse/arch.py: add riscv64 -> riscv to kernel carch mapping 18 days ago

From Clayton Craft to ~postmarketos/pmbootstrap-devel

On Sun, 12 Mar 2023 02:37:05 +0200 ~deathmist <deathmist@git.sr.ht> wrote:
> From: Jami Kettunen <jami.kettunen@protonmail.com>
> 
> This fixes both the default riscv64 kernel APKBUILD "_carch" selection and
> "pmbootstrap kconfig edit" functionality even after manually corrected
> "_carch" variable.
> 
>   (native) make menuconfig
>   ../Makefile:609: ../arch/riscv64/Makefile: No such file or directory
> 
> See also https://github.com/torvalds/linux/tree/master/arch with search
> for "riscv"
> ---
>  pmb/parse/arch.py | 3 ++-

Re: [PATCH pmbootstrap] pmb.config.apkbuild_attributes: Add _depends_dev 18 days ago

From Clayton Craft to ~postmarketos/pmbootstrap-devel

On Sun, 12 Mar 2023 03:56:22 +0200 ~deathmist <deathmist@git.sr.ht> wrote:
> From: Jami Kettunen <jami.kettunen@protonmail.com>
> 
> Fixes building of linux-edge (from "pmbootstrap aportgen --fork-alpine
> linux-edge")
> 
>   ERROR: Package '$_depends_dev': Could not find aport, and could not find this package in any APKINDEX!
> 
> See also: https://gitlab.alpinelinux.org/alpine/aports/-/issues/14250
> ---
>  pmb/config/__init__.py | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/pmb/config/__init__.py b/pmb/config/__init__.py

Re: [PATCH pmbootstrap] pmb.helpers.run: don't pass stdin to output=stdout 28 days ago

From Clayton Craft to ~postmarketos/pmbootstrap-devel

On Wed, 01 Mar 2023 21:41:13 +0100 Oliver Smith <ollieparanoid@postmarketos.org> wrote:
> When looking at the table for possible output modes, it only makes sense
> to pass stdin to "interactive" and "tui". The output mode "stdout" is
> for non-interactive commands.
> 
> This fixes apk going interactive (asking for confirmation) when running
> pmbootstrap with --details-to-stdout and building a package that depends
> on postmarketos-base.
> 
> Fixes: issue 2208
> ---
>  pmb/helpers/run_core.py | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>