Skip to content

Instantly share code, notes, and snippets.

View kergoth's full-sized avatar

Christopher Larson kergoth

  • Siemens Digital Industries Software
  • X @kergoth
View GitHub Profile
#!/bin/sh
email="$1"
shift
if [ $# -gt 0 ]; then
target="$2"
shift
else
target="core-image-base"
fi
# This task is created specifically as a hook for recipes. Classes shouldn't
# define this task, but should either create their own tasks, or
# _append/_prepend to it, so the recipe author is free to define it directly.
#
# The intent behind this task is to prepare the source tree for building,
# after the fetching and extraction process but before configuration and
# compilation.
#
# This is a common pattern. Often recipes will do one of these today:
# - prepend do_configure, which isn't ideal, as do_configure runs in ${B} now
Wireless:
carl9170fw: used by ar9170 wireless, GPL
ti-connectivity: TI Connectivity wireless network adapters, WL1251, WL127, WL128x, WL18xx wireless
ti_st/tiinit_7.2.31 - bluetooth
atheros
realtek
libertas
brcm80211
ralink
i2400m-usb
@kergoth
kergoth / git-attic-example.txt
Last active August 29, 2015 14:06
Example usage of git-attic, a useful script from http://chneukirchen.org/blog/archive/2013/01/a-grab-bag-of-git-tricks.html. Shows deleted files, with the commit that removed them, in a format suitable for 'git-show'
clarson@amyr:~/l/meta-sourcery master> git attic -M
2014-09-16 6a9f859^:core/recipes-devtools/python/python_2.7.3.bbappend
2014-09-16 efea797^:core/recipes-connectivity/irda-utils/irda-utils/ldflags.patch
2014-09-16 efea797^:core/recipes-connectivity/irda-utils/irda-utils_0.9.18.bbappend
2014-09-16 3d38ed6^:core/recipes-kernel/blktrace/blktrace_git.bbappend
2014-09-16 3d38ed6^:core/recipes-kernel/blktrace/ldflags.patch
2014-09-16 4de8c4c^:core/recipes-bsp/hostap/hostap-utils_0.4.7.bbappend
2014-09-16 4de8c4c^:core/recipes-bsp/hostap/ldflags.patch
2014-09-16 148980e^:core/recipes-bsp/setserial/ldflags.patch
2014-09-16 148980e^:core/recipes-bsp/setserial/setserial_2.17.bbappend

Keybase proof

I hereby claim:

  • I am kergoth on github.
  • I am kergoth (https://keybase.io/kergoth) on keybase.
  • I have a public key whose fingerprint is 8FC8 D78F D66D 9DBF 3917 8A6F A976 6603 C2CF F44A

To claim this, I am signing this object:

#!/bin/sh
#
# - We do not allow -i due to the non-interactive nature of OE tasks
# - We do not allow -r, as it has known problems, and is marked
# obsolescent in the standard
# - We allow -a as shorthand for -RpP
# - Otherwise, we stick to what SuSv3 defines
source $(dirname $0)/../wrapper.sh
# Recipe created by recipetool
# This is the basis of a recipe and may need further editing in order to be fully functional.
# (Feel free to remove these comments when editing.)
#
# WARNING: the following LICENSE and LIC_FILES_CHKSUM values are best guesses - it is
# your responsibility to verify that the values are complete and correct.
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://LICENSE;md5=da2a9d126b93cab0996a8287dacc480b"
HOMEPAGE = "http://www.makotemplates.org/"
$ ./find_python_modules -h
usage: find_python_modules [-h] [-P] [-p PACKAGE_DIR] [-b] [path [path ...]]
find python packages & modules
positional arguments:
path
optional arguments:
-h, --help show this help message and exit
#!/bin/sh
# Use recipetool to check for missing PACKAGECONFIG/RDEPENDS in our python recipes
set -e
python_recipes () {
bitbake -s | grep '^python-' | grep -v native | awk '{print $1}'
}
get_value () {
  • 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()