Skip to content
Snippets Groups Projects
  1. Jul 11, 2024
  2. Jul 10, 2024
    • Oliver Smith's avatar
      Tweak errors for missing config/work dir (MR 2350) · aeb65f29
      Oliver Smith authored and Caleb Connolly's avatar Caleb Connolly committed
      * Use NonBugError instead of RuntimeError so users don't get a stack
        trace for this.
      * Check for the pmbootstrap <= 3.0.0 config, and print a nice message
        asking users to recreate their config.
      * Add a separate message if --config was used.
      * Reword the generic "no config found" message to suggest 'pmbootstrap
        init' first, and only mention --config at the end. Most users will
        need to just run 'pmbootstrap init'.
      aeb65f29
    • Oliver Smith's avatar
      Use pmbootstrap_v3.cfg as config file (MR 2350) · 9dfa89c5
      Oliver Smith authored and Caleb Connolly's avatar Caleb Connolly committed
      Using pmbootstrap v3 with the old config can cause problems, for example
      when having $WORK in the pmaports dir instead of the actual work path.
      This is not supported anymore by v3 to reduce complexity. The format of
      how mirrors are stored in the config also has changed.
      
      Use a separate config file, so users can go back from v3 to 2.3.x if
      they need to (for figuring out a regression) and so users won't run into
      bugs when moving from 2.3.x to v3.
      9dfa89c5
  3. Jul 09, 2024
  4. Jul 08, 2024
  5. Jul 04, 2024
  6. Jul 03, 2024
  7. Jul 02, 2024
  8. Jun 30, 2024
    • Oliver Smith's avatar
      6c4b4c49
    • Oliver Smith's avatar
      kconfig check: move rules to kconfigcheck.toml (MR 2333) · 1dfaafe5
      Oliver Smith authored
      Move all kconfig rules from pmb.config to a separate toml file
      pmb/data/kconfigcheck.toml. This is a fallback, pmbootstrap now prefers
      loading kconfigcheck.toml from the currently checked out pmaports branch
      if it exists.
      
      This finally allows having separate kconfig check rules per pmaports
      branch and makes the workflow of adjusting these rules much more
      pleasant as the rules and kernel configs can just be adjusted at the
      same time in pmaports!
      
      This patch also moves the definition of what rules should be checked for
      community and main devices, those that have pmb:kconfigcheck-community
      in their linux APKBUILD, to the new kconfigcheck.toml. This should make
      it much more intuitive, previously one needed to find the place in the
      pmbootstrap source and edit it there.
      
      Furthermore the "enforce_check" logic is removed. Previously pmbootstrap
      would print warnings for failed config checks in some cases, but not
      exit with error which was very confusing. Now exit 0 means all checks
      passed and exit 1 means, that there is at least one error.
      
      Use toml for the file, as discussed in pmbootstrap issue 2165. Python
      3.11 has a native toml reader, use tomli for previous Python versions
      for compatibility.
      1dfaafe5
    • Oliver Smith's avatar
      pmb.helpers.frontend.kconfig: modernize (MR 2333) · b6058e35
      Oliver Smith authored
      Create new pmb/commands/kconfig_check.py and _edit.py files and move
      related code there.
      b6058e35
    • Oliver Smith's avatar
      kconfig check: remove --kconfig-check-{name} args (MR 2333) · 6f6cf1e8
      Oliver Smith authored
      Prepare to move the kconfigcheck config into pmaports, so it can be
      different per branch and so we can adjust it at the same time as
      adjusting the kernel configs.
      
      Once it is moved, pmbootstrap will not know the cateogry names in
      advance anymore, so remove the logic for having category-specific
      argument names.
      
      In a future patch, we could add an option to manually override the
      categories to be tested with one specific category (taking a string
      argument), if there is demand for that.
      6f6cf1e8
    • Caleb Connolly's avatar
      core: chroot: validate name for rootfs chroot (MR 2332) · 9daa888f
      Caleb Connolly authored and Oliver Smith's avatar Oliver Smith committed
      
      Make sure we get a valid name in the rootfs type chroot.
      
      Signed-off-by: default avatarCaleb Connolly <caleb@postmarketos.org>
      9daa888f
    • Caleb Connolly's avatar
      treewide: drop context.device (MR 2332) · 35eff915
      Caleb Connolly authored and Oliver Smith's avatar Oliver Smith committed
      
      this turns out to have never been set??? We have config.device anyways,
      so let's use that instead.
      
      Tweaked-by: default avatarOliver Smith <ollieparanoid@postmarketos.org>
      Signed-off-by: default avatarCaleb Connolly <caleb@postmarketos.org>
      35eff915
Loading