[OE-core] [PATCH 0/8] opkg recipe improvements

Paul Barker paul at paulbarker.me.uk
Sun Dec 21 22:11:49 UTC 2014


This patch series implements the changes I suggested on the mailing list a few
days ago.

Summary of changes:
  - The opkg recipe is cleanup up and opkg.inc is merged into opkg_0.2.4.bb.

  - opkg-collateral is updated and then merged into the main opkg recipe.

  - The cryptically named opkg-config-base is given the much more obvious name
    opkg-arch-config.

  - poky-feed-config-opkg is dropped, it is recommended that people use
    distro-feed-configs from meta-oe.

  - A new opkg-keyrings recipe is created to package up keys used to verify
    packages and package feeds. The functionality within opkg which this depends
    upon is backported.

After these changes:
  - All generic files are in 'opkg', including the main opkg config which should
    be upgraded in step with opkg itself.

  - Arch-specific config is only in 'opkg-arch-config' which has MACHINE_ARCH.
    Additional arch-specific config can easily be added to this package with a
    bbappend.

  - Distro-specific config is in 'distro-feed-config' and 'opkg-keyrings'.
    Additional distro-specific config is probably best added as extra recipes.

I think this is a much cleaner layout but let me know if you disagree, I'm happy
to discuss/improve/respin these patches.

All these changes work locally in qemuarm and the on-target upgrade path is
mostly clean. opkg-collateral does get left behind on the target filesystem
after an upgrade but it's effectively an empty package. I don't think this poses
any problems.

Paul Barker (8):
  opkg-collateral: Use new lists_dir syntax
  opkg-arch-config: Renamed from opkg-config-base
  opkg-collateral: Simplify source files
  opkg: Merge opkg.inc into recipe and tidy up
  opkg: Merge in opkg-collateral
  poky-feed-config-opkg: Remove
  opkg: Backport improvements to opkg-key
  opkg-keyrings: New recipe

 meta/classes/rootfs_ipk.bbclass                    |  2 +-
 meta/conf/layer.conf                               |  2 +-
 .../feed-config/poky-feed-config-opkg_1.0.bb       | 44 -----------
 ...-config-base_1.0.bb => opkg-arch-config_1.0.bb} |  3 +-
 meta/recipes-devtools/opkg/opkg-collateral.bb      | 24 ------
 meta/recipes-devtools/opkg/opkg-collateral/dest    |  1 -
 meta/recipes-devtools/opkg/opkg-collateral/src     |  0
 meta/recipes-devtools/opkg/opkg-keyrings_1.0.bb    | 48 ++++++++++++
 meta/recipes-devtools/opkg/opkg.inc                | 76 -------------------
 .../opkg/0001-opkg-key-Backport-improvements.patch | 78 +++++++++++++++++++
 .../opkg.conf.comments => opkg/opkg.conf}          |  2 +
 meta/recipes-devtools/opkg/opkg_0.2.4.bb           | 88 +++++++++++++++++++++-
 12 files changed, 218 insertions(+), 150 deletions(-)
 delete mode 100644 meta/recipes-core/feed-config/poky-feed-config-opkg_1.0.bb
 rename meta/recipes-devtools/opkg/{opkg-config-base_1.0.bb => opkg-arch-config_1.0.bb} (87%)
 delete mode 100644 meta/recipes-devtools/opkg/opkg-collateral.bb
 delete mode 100644 meta/recipes-devtools/opkg/opkg-collateral/dest
 delete mode 100644 meta/recipes-devtools/opkg/opkg-collateral/src
 create mode 100644 meta/recipes-devtools/opkg/opkg-keyrings_1.0.bb
 delete mode 100644 meta/recipes-devtools/opkg/opkg.inc
 create mode 100644 meta/recipes-devtools/opkg/opkg/0001-opkg-key-Backport-improvements.patch
 rename meta/recipes-devtools/opkg/{opkg-collateral/opkg.conf.comments => opkg/opkg.conf} (92%)

-- 
1.9.1




More information about the Openembedded-core mailing list