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
@kergoth
kergoth / NOTES.md
Last active February 2, 2022 19:12
Thoughts on pushing the Mentor Graphics setup script improvements to oe-core

Thoughts on pushing the MEL setup script features upstream

MEL setup-environment features

Likely appropriate for upstream

  • Configures local.conf for a given MACHINE
  • Configures local.conf for a given DISTRO
  • Common underlying layer find mechanism which searches a given path or globs for for layers, to allow the script to add them by name and find the BSP/DISTRO layers
{
"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
@kergoth
kergoth / colorlog.py
Last active April 7, 2021 13:45
Colorizing log handler
# Courtesy http://plumberjack.blogspot.com/2010/12/colorizing-logging-output-in-terminals.html
# Tweaked to use colorama for the coloring
import colorama
import logging
import re
import sys
def remove_ansi(s):
@kergoth
kergoth / pyparted-test.py
Created December 27, 2012 15:03
Example use of pyparted to achieve partition alignments with non-devices that the parted command cannot.
#!/usr/bin/env python
import parted
def add_partition(disk, free, align=None, length=None, fs_type=None, type=parted.PARTITION_NORMAL):
start = free.start
if length:
end = start + length - 1
else:
end = free.end
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] -
+sysroots/aarch64-oe-linux/usr/src/debug/elfutils/0.178-r0/build/libcpu/i386.mnemonics
+sysroots/aarch64-oe-linux/usr/src/debug/elfutils/0.178-r0/build/libcpu/x86_64.mnemonics
+sysroots/aarch64-oe-linux/usr/src/debug/elfutils/0.178-r0/elfutils-0.178/backends/aarch64_cfi.c
+sysroots/aarch64-oe-linux/usr/src/debug/elfutils/0.178-r0/elfutils-0.178/backends/aarch64_corenote.c
+sysroots/aarch64-oe-linux/usr/src/debug/elfutils/0.178-r0/elfutils-0.178/backends/aarch64_init.c
+sysroots/aarch64-oe-linux/usr/src/debug/elfutils/0.178-r0/elfutils-0.178/backends/aarch64_initreg.c
+sysroots/aarch64-oe-linux/usr/src/debug/elfutils/0.178-r0/elfutils-0.178/backends/aarch64_regs.c
+sysroots/aarch64-oe-linux/usr/src/debug/elfutils/0.178-r0/elfutils-0.178/backends/aarch64_reloc.def
+sysroots/aarch64-oe-linux/usr/src/debug/elfutils/0.178-r0/elfutils-0.178/backends/aarch64_retval.c
+sysroots/aarch64-oe-linux/usr/src/debug/elfutils/0.178-r0/elfutils-0.178/backends/aarch64_symbol.c
This file has been truncated, but you can view the full file.
DEBUG: SITE files ['endian-little', 'bit-64', 'arm-common', 'arm-64', 'common-linux', 'common-glibc', 'aarch64-linux', 'common']
DEBUG: Executing shell function do_compile
make -r PARALLELMFLAGS="-j64" -C ../git objdir=`pwd` all
make[1]: Entering directory '/mel/kergoth/mel/cos-10/adit-80/build/tmp/work/aarch64-mel-linux/glibc-sourcery/2.27-2018.05-7-r0/git'
LC_ALL=C gawk -f scripts/sysd-rules.awk > /mel/kergoth/mel/cos-10/adit-80/build/tmp/work/aarch64-mel-linux/glibc-sourcery/2.27-2018.05-7-r0/build-aarch64-mel-linux/sysd-rulesT \
-v all_object_suffixes='.o .os .oS' \
-v inhibit_sysdep_asm='' \
-v sysd_rules_patterns='%:% rtld-%:rtld-% rtld-%:% m_%:s_%' \
-v config_sysdirs='sysdeps/unix/sysv/linux/aarch64 sysdeps/aarch64/nptl sysdeps/unix/sysv/linux/generic sysdeps/unix/sysv/linux/wordsize-64 sysdeps/unix/sysv/linux sysdeps/nptl sysdeps/pthread sysdeps/gnu sysdeps/unix/inet sysdeps/unix/sysv sysdeps/unix sysdeps/posix sysdeps/aarch64/fpu sysdeps/aarch64/multiarch sysdeps/aarch64 sysdeps/wordsize-64