Skip to content

Instantly share code, notes, and snippets.

@kergoth
Last active August 29, 2015 14:14
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kergoth/1efbf723c3bbd36c6e4e to your computer and use it in GitHub Desktop.
Save kergoth/1efbf723c3bbd36c6e4e to your computer and use it in GitHub Desktop.
  • do_populate_sdk()
    • mappings of TOOLCHAIN_{HOST,TARGET}_TASK{,_ATTEMPTONLY}
    • oe.manifest.create_manifest() for HOST & TARGET
      • Writes out manifests listing what will be installed
        • Standard
        • Attempt only (we don’t care if they fail or aren’t available) Will need to investigate how to handle this. I expect I’ll need a new argument for opkg-p2 to try to find these things and just warn if it can’t, rather than being fatal.
        • Languages
        • Multilib
    • oe.sdk.populate_sdk() Exactly what happens here depends on the implementation being used (rpm/dpkg/opkg)
      • ${libdir_nativesdk}/libGL* is removed Not sure how to handle this exactly, unless we can force exclusion of the packages that provide it, or hook post-processing at install time.
      • ${libdir_nativesdk}/*.la is removed This can be removed in the packaging phase for each recipe — .la files are useless.
      • ld.so.cache is linked to the host Not sure how to handle this, other than trying to hook post-processing at install time.
      • SDK_POSTPROCESS_COMMAND() This won’t be doable, since it assumes that it runs at construction time in an OE environment, so we’ll just not support this for the ADE.
      • _populate() Side note: ALL_MULTILIB_PACKAGE_ARCHS may be of use in our implementation
        • Install target packages
        • Install target complementary packages
        • Install nativesdk packages
        • Remove packaging metadata
        • Move package manager metadata into sdk_native_path
        • Rpm: move sysconfig data into sdk_native_path
    • create_sdk_files()
      • adds relocate_sdk.py to ${SDKPATH}/ Can this be easily shifted into its own recipe/package? Determine if it's using variables which are only available with populate_sdk inherited. How can we get this run? Either we force the user to run a script after ADE installation manually, or we need a way to get it executed at install time.
      • adjusts DEFAULT_INSTALL_DIR in relocate_sdk.py
    • SDK_PACKAGING_FUNC() This is the bits for the shar construction and whatnot, not applicable to ADE.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment