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
def my_handler(d, logger):
logger.warning('test_warning')
logger.info('test note')
logger.error('test error')
logger.critical('test critical')
sys.exit(1)
python testhandler() {
_, error, logs = run_config_handler(lambda l: my_handler(d, l))
#!/bin/bash
# FIXME: Currently missing dosbox variants: ece, svn, stock
# Unhandled:
#CTorOCh "./eXoDOS/CTorOCh/dosbox/dosbox.exe" -conf "eXoDOS/\!dos/CTorOCh/dosbox.conf" -noconsole -exit
#FatmanTh "./eXoDOS/FatmanTh/dosbox.exe" -conf "eXoDOS/\!dos/FatmanTh/dosbox.conf" -noconsole -exit
#ThemPark "./eXoDOS/ThemPark/ece/DOSBox.exe" -conf "eXoDOS/\!dos/ThemPark/dosbox.conf" -noconsole -exit -nomenu
#btroot "./eXoDOS/btroot/dosbox/dosbox.exe" -conf "eXoDOS/\!dos/btroot/dosbox.conf" -noconsole -exit
#MinosAdv "./eXoDOS/MinosAdv/DOSBox-0.73/dosbox.exe" -conf "eXoDOS/\!dos/MinosAdv/dosbox.conf" -noconsole -exit
set -euo pipefail
SUMMARY = "Meta package for building a minimal installable toolchain"
LICENSE = "MIT"
INHIBIT_DEFAULT_DEPS = "1"
inherit populate_sdk
TOOLCHAIN_HOST_TASK = "packagegroup-cross-canadian-${MACHINE}"
TOOLCHAIN_TARGET_TASK = "${@multilib_pkg_extend(d, 'packagegroup-core-standalone-sdk-target')} target-sdk-provides-dummy"
SDK_INCLUDE_TOOLCHAIN = ""
@kergoth
kergoth / Concerns.md
Last active May 18, 2022 16:17
OE/Bitbake thoughts and tasks

Long standing concerns/issues

These are things we've (or I've) wanted to improve, or actively disliked, for years, but dealing with them is never a priority.

  • Steep learning curve. Is this a natural consequence of our level of flexibility? Is there a way to make it clearer how the final metadata comes from multiple sources?

Maintainability

  • Tight Coupling amongst bitbake modules
  • Inconsistent, and at times unclear, API design
@kergoth
kergoth / MEL Flex 13 Thoughts.md
Last active February 17, 2022 18:44
MEL Flex 13 Thoughts

MEL Flex 13 Thoughts

Current Plans

  • Integrate vendor SDK in a way that allows for the use of vendor machines directly, not requiring the -mel suffix machines to be able to build. The intention here is a different level of support for those (if any) vs the well supported -mel machines. See also discussion in #flex-future on Slack. We should be able to semi-automate the setting of VENDOR, either through xlayers.conf based on the BSP installed, or based on specific logic around which layer provides the MACHINE config file ("if the machine was in meta-ti, set VENDOR=ti").

  • Usual process for a new major version of flex

    • File-by-file review of our layer content vs upstream
    • Line-by-line review of the mel distro
  • Upstream submissions wherever appropriate

{
"autorun": true,
"autokill": true,
"terminals": [
{
"name": "Attach to Workspace",
"description": "Attach to this workspace with my scripts",
"icon": "code",
"command": "attach-workspace",
"open": true,
#!/usr/bin/env python3
from enum import auto
from enum import Enum
from typing import Any, List
class AutoNameValue(Enum):
"""Set the enumeration values to their names."""
@staticmethod
SUMMARY = "Volatile bind mount setup and configuration for read-only-rootfs"
DESCRIPTION = "${SUMMARY}"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://COPYING.MIT;md5=5750f3aa4ea2b00c2bf21b2b2a7b714d"
SRC_URI = "\
file://mount-copybind \
file://COPYING.MIT \
file://volatile-binds.service.in \
"
Changes to images/qemuarm64/glibc/development-image (files-in-image.txt):
/etc/limits was removed
/etc/login.access was removed
/usr/bin/vlock changed symlink target from /bin/busybox.suid to /usr/bin/vlock.kbd
/etc/default/volatiles/99_pam was added
/etc/environment was added
/etc/pam.d/chfn was added
/etc/pam.d/chpasswd was added
/etc/pam.d/chsh was added
/etc/pam.d/common-account was added
gcc@busybox: recipes-core/busybox/busybox_1.31.1.bb:1:1 - [warning] - [gcc.gcc.hardening.compiler.Weffc++] - -Weffc++ is not set in CXXFLAGS
gcc@busybox: recipes-core/busybox/busybox_1.31.1.bb:1:1 - [warning] - [gcc.gcc.hardening.compiler.fno-common] - -fno-common is not set in CFLAGS
gcc@busybox: recipes-core/busybox/busybox_1.31.1.bb:1:1 - [warning] - [gcc.gcc.hardening.compiler.Wsign-conversion] - -Wsign-conversion is not set in CFLAGS
gcc@busybox: recipes-core/busybox/busybox_1.31.1.bb:1:1 - [warning] - [gcc.gcc.hardening.compiler.fsanitize=thread] - -fsanitize=thread is not set in CFLAGS
gcc@busybox: recipes-core/busybox/busybox_1.31.1.bb:1:1 - [warning] - [gcc.gcc.hardening.compiler.Wextra] - -Wextra is not set in CFLAGS
gcc@busybox: recipes-core/busybox/busybox_1.31.1.bb:1:1 - [warning] - [gcc.gcc.hardening.compiler.fno-omit-frame-pointer] - -fno-omit-frame-pointer is not set in CFLAGS
gcc@busybox: recipes-core/busybox/busybox_1.31.1.bb:1:1 - [warning] - [gcc.gcc.hardening.compiler.Wstrict-overflow] -