Project

General

Profile

Actions

Feature #1029

closed

Add support for per-pkg rebuilds in Buildroot

Added by Hammel about 1 year ago. Updated about 1 year ago.

Status:
Closed
Priority:
Immediate
Assignee:
Category:
04 - Root File System
Target version:
Start date:
29 Aug 2023
Due date:
% Done:

100%

Estimated time:
Severity:
01 - Critical

Description

There are options for managing specific package builds in Buildroot's help:

  <pkg>-source           - Only download the source files for <pkg>
  <pkg>-dirclean         - Remove <pkg> build directory
  <pkg>-reconfigure      - Restart the build from the configure step
  <pkg>-rebuild          - Restart the build from the build step
  <pkg>-reinstall        - Restart the build from the install step

I should add these to the buildroot.mk targets so that rebuilding things like libpibox are easier. However, it's not clear if the -source target will re-download if the archive is already downloaded.

Actions #1

Updated by Hammel about 1 year ago

  • Status changed from New to In Progress
  • % Done changed from 0 to 50
  • Severity changed from 03 - Medium to 01 - Critical

This was easy to do for the simplest case.

make HW=rpi2 BRPKG=<> buildroot-rebuild-pkg

Where BRPKG is the name of the Buildroot package to rebuild.
This will do a
make <pkg>-dirclean

in Buildroot followed by a
make <pkg>

When this completes the rebuilt package is in the target tree and a
make HW=rpi2 buildroot-rebuild buildroot-pkg

should be done. The -rebuild is necessary to have Buildroot regenerate the squashfs with the updated Buildroot package build.

The update for this is in the rpi2 sandbox and has already been retested by rebuilding libopenssl, so it just needs to be committed and pushed.

Actions #2

Updated by Hammel about 1 year ago

  • Status changed from In Progress to Closed
  • % Done changed from 50 to 100

Change has been committed and pushed.

Closing issue.

Actions

Also available in: Atom PDF