Skip to content

Instantly share code, notes, and snippets.

🤡
use gitlab, folks!

clayton craft craftyguy

  • Oregon, USA
View GitHub Profile
View 0001-Work-around-recursion-issue-with-glMaterialfv.patch
From 6b49ab452350148df4a2c362d8fdfb8f3356e43e Mon Sep 17 00:00:00 2001
From: Clayton Craft <clayton@craftyguy.net>
Date: Mon, 19 Mar 2018 22:34:35 +0000
Subject: [PATCH] Work around recursion issue with glMaterialfv
This works around an issue that seems to be related to how musl
is linking libraries, causing an infinite recursive loop to form
---
src/gles/light.c | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
View 0002-Stub-glXQueryDrawable.patch
From c3c7d493e6d5c65d269dedee0a3e06323a7a6013 Mon Sep 17 00:00:00 2001
From: Clayton Craft <clayton@craftyguy.net>
Date: Mon, 19 Mar 2018 22:28:12 +0000
Subject: [PATCH 2/2] Stub glXQueryDrawable
This is required by glxgears, though keep in mind that glxgears
may need this to be implemented to actually work..
---
src/glx/glx.c | 3 +++
1 file changed, 3 insertions(+)
View 0001-Fix-compilation-on-musl.patch
From 16191998bc9ae59b6740ae96f3c1a935d7554d65 Mon Sep 17 00:00:00 2001
From: Clayton Craft <clayton@craftyguy.net>
Date: Mon, 19 Mar 2018 22:25:52 +0000
Subject: [PATCH 1/2] Fix compilation on musl
This relied on __GLIBC__ to omit glibc-specific things so that
compilation will not fail on musl
---
src/glx/glx.c | 6 ++++--
src/util/ring.c | 4 +++-
View gist:671a4eb0086b8019aae102b9829ffe58
1) Create a branch with the tag
git branch {tagname}-branch {tagname}
git checkout {tagname}-branch
2) Include the fix manually if it's just a change ....
git add .
git ci -m "Fix included"
or cherry-pick the commit, whatever is easier
git cherry-pick {num_commit}
@craftyguy
craftyguy / import_auth_keys.sh
Created Dec 4, 2017
Verify signature and import authorized_keys file
View import_auth_keys.sh
#!/bin/bash
if [ -z "$1" ]; then
echo "Usage: import_auth_keys /path/to/authorized_keys.asc"
exit 1
fi
gpg --verify "$1"
read -r -p "Import authorized_keys file? [y/N] " resp
View gist:e87a1eb9f5fe4ecf1ac343ec5ae4a676
--- a/arch/arm/plat-omap/Kconfig
+++ b/arch/arm/plat-omap/Kconfig
@@ -63,6 +63,13 @@ config OMAP_RESET_CLOCKS
probably do not want this option enabled until your
device drivers work properly.
+config OMAP_GPIO_SWITCH
+ bool "GPIO switch support"
+ default n
+ help
View gist:40b1089743b950a8bc637fdd54a0fcd7
--- a/inputdrivers/tslib/tslib.c
+++ b/inputdrivers/tslib/tslib.c
@@ -60,9 +60,12 @@ typedef struct {
CoreInputDevice *device;
DirectThread *thread;
struct tsdev *ts;
+ struct ts_sample_mt **ts_events;
} tslibData;
#define MAX_TSLIB_DEVICES 16
View gist:789f43196de332f1b94c1b52112edae9
--- /home/clayton/Downloads/config 2017-09-04 09:43:38.811228016 -0700
+++ aports/main/linux-postmarketos/config-postmarketos.armhf 2017-09-04 11:58:43.884364343 -0700
@@ -1,6 +1,6 @@
#
# Automatically generated file; DO NOT EDIT.
-# Linux/arm 4.12.0-rc5 Kernel Configuration
+# Linux/arm 4.12.10 Kernel Configuration
#
CONFIG_ARM=y
CONFIG_ARM_HAS_SG_CHAIN=y
View gist:d043e54044b59c9443abcfdc41f8c282
ofonod[1641]: oFono version 1.20
ofonod[1641]: src/plugin.c:__ofono_plugin_init()
ofonod[1641]: Excluding udev hardware detection
ofonod[1641]: src/gprs-provision.c:ofono_gprs_provision_driver_register() driver: 0x5df1d8 name: GPRS context provisioning
ofonod[1641]: plugins/push-notification.c:push_notification_init()
ofonod[1641]: plugins/smart-messaging.c:smart_messaging_init()
ofonod[1641]: src/cdma-provision.c:ofono_cdma_provision_driver_register() driver: 0x5df1ac name: CDMA provisioning
ofonod[1641]: src/gprs-provision.c:ofono_gprs_provision_driver_register() driver: 0x5df180 name: Provisioning
ofonod[1641]: plugins/upower.c:upower_init() upower init
ofonod[1641]: src/handsfree-audio.c:ofono_handsfree_card_driver_register() driver: 0x5df12c
View gist:a82b7098ff2f1dfe09188fc335036141
ofonod[1644]: oFono version 1.20
ofonod[1644]: src/plugin.c:__ofono_plugin_init()
ofonod[1644]: src/gprs-provision.c:ofono_gprs_provision_driver_register() driver: 0x5a21d8 name: GPRS context provisioning
ofonod[1644]: plugins/push-notification.c:push_notification_init()
ofonod[1644]: plugins/smart-messaging.c:smart_messaging_init()
ofonod[1644]: src/cdma-provision.c:ofono_cdma_provision_driver_register() driver: 0x5a21ac name: CDMA provisioning
ofonod[1644]: src/gprs-provision.c:ofono_gprs_provision_driver_register() driver: 0x5a2180 name: Provisioning
ofonod[1644]: plugins/upower.c:upower_init() upower init
ofonod[1644]: src/handsfree-audio.c:ofono_handsfree_card_driver_register() driver: 0x5a212c
ofonod[1644]: plugins/dun_gw_bluez5.c:dun_gw_init()
You can’t perform that action at this time.