Skip to content

Commit

Permalink
build,ib: add STRIP_ABI option for manifest
Browse files Browse the repository at this point in the history
The ImageBuilder `make manifest` prints all installed packages. This
function can be used to create a list of package and corresponding
package versions before attempting image creation.

When called with `--strip-abi` OPKG can automatically strip attached
ABIVersions from package names. Make this function accessible for the
ImageBuilder by adding a `STRIP_ABI` variable.

Signed-off-by: Paul Spooren <[email protected]>
  • Loading branch information
aparcar committed Mar 16, 2021
1 parent dbde2bc commit 0f7cd97
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion target/imagebuilder/files/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ Print manifest:

make manifest PROFILE="<profilename>" # override the default target profile
make manifest PACKAGES="<pkg1> [<pkg2> [<pkg3> ...]]" # include extra packages
make manifest STRIP_ABI=1 # remove ABI version from printed package names

endef
$(eval $(call shexport,Helptext))
Expand Down Expand Up @@ -129,7 +130,7 @@ _call_manifest: FORCE
mkdir -p $(TARGET_DIR) $(BIN_DIR) $(TMP_DIR) $(DL_DIR)
$(MAKE) package_reload >/dev/null
$(MAKE) package_install >/dev/null
$(OPKG) list-installed
$(OPKG) list-installed $(if $(STRIP_ABI),--strip-abi)

package_index: FORCE
@echo >&2
Expand Down

0 comments on commit 0f7cd97

Please sign in to comment.