Skip to content

Instantly share code, notes, and snippets.

View sbourdelin's full-sized avatar

Sebastien Bourdelin sbourdelin

View GitHub Profile
@sbourdelin
sbourdelin / bootchooser
Created December 21, 2023 09:23 — forked from a3f/bootchooser
Simple Bootchooser + Bootloader Spec configuration with overlays
# cat /env/nv/bootchooser.system1.boot
mmc0.root-a
# cat /env/nv/bootchooser.system2.boot
mmc0.root-b
@sbourdelin
sbourdelin / mykmod: Makefile
Last active August 29, 2015 14:21
Minimalistic kernel module
obj-m += mykmod.o
all:
make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules
clean:
make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean
@sbourdelin
sbourdelin / rt-draw.py
Created November 18, 2014 18:56
Draw plot in real time with matplotlib
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# Copyright (C) 2014 Savoir-Faire Linux Inc.
# Authors:
# Sebastien Bourdelin <sebastien.bourdelin@savoirfairelinux.com>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License Version 2 as
# published by the Free Software Foundation.
@sbourdelin
sbourdelin / Config.in
Created September 29, 2014 15:14
Buildroot: package local skeleton
# ====================================
# buildroot/package/skeleton/Config.in
# ====================================
config BR2_PACKAGE_SKELETON
bool "skeleton"
help
A skeleton package
@sbourdelin
sbourdelin / Config.in
Last active August 29, 2015 14:06
Buildroot: package kernel
# ==================================
# buildroot/package/mykmod/Config.in
# ==================================
comment "mykmod needs a Linux kernel to be built"
depends on !BR2_LINUX_KERNEL
config BR2_PACKAGE_MYKMOD
bool "MYKMOD"
depends on BR2_LINUX_KERNEL
help