Skip to content

Instantly share code, notes, and snippets.

View jwinarske's full-sized avatar
🌴
Out recovering from a partial knee replacement

Joel Winarske jwinarske

🌴
Out recovering from a partial knee replacement
  • Toyota Connected North America (TCNA)
  • Bellingham, WA
  • 08:16 (UTC -07:00)
View GitHub Profile
@jwinarske
jwinarske / 0001-libdnf-add-stdint-header.patch
Created January 20, 2024 02:22
poky dunfell patch to enable building on fedora 38
From a028a2c513506a3fae0c9df0d9a68111bdd53f59 Mon Sep 17 00:00:00 2001
From: Joel Winarske <joel.winarske@gmail.com>
Date: Fri, 19 Jan 2024 18:15:22 -0800
Subject: [PATCH] libdnf add stdint header
Signed-off-by: Joel Winarske <joel.winarske@gmail.com>
---
.../0001-add-missing-stdint-header.patch | 78 +++++++++++++++++++
meta/recipes-devtools/libdnf/libdnf_0.28.1.bb | 1 +
2 files changed, 79 insertions(+)
@jwinarske
jwinarske / simple.cc
Last active December 22, 2023 19:07
Filament Minimum Viable Example
#include <fstream>
#include <iostream>
#include <camutils/Manipulator.h>
#include <filamat/MaterialBuilder.h>
#include <filament/Camera.h>
#include <filament/Engine.h>
#include <filament/IndexBuffer.h>
#include <filament/LightManager.h>
#include <filament/RenderableManager.h>
@jwinarske
jwinarske / test.c
Created October 24, 2023 03:26
[linux] serialport
#include <stdio.h>
#include <unistd.h>
#include <libserialport.h>
const char* desired_port = "/dev/ttyUSB2";
struct sp_port* port;
void list_ports() {
@jwinarske
jwinarske / main.cpp
Created August 24, 2023 19:11
asio strand example
#include <iostream>
#include <chrono>
#include <thread>
#include <future>
#include "asio/post.hpp"
#include "asio/io_service.hpp"
#include "asio/io_service_strand.hpp"
void asyncRun() {
std::cout << "Async..." << std::flush;
From ff114a1003c330c35f68e52bd2fa832c0949d656 Mon Sep 17 00:00:00 2001
From: Joel Winarske <joel.winarske@gmail.com>
Date: Sat, 3 Jun 2023 09:36:46 -0700
Subject: [PATCH] Minimal Build
-move lib/string to lib
allows building without parameters
-default baud rate to 115200
Signed-off-by: Joel Winarske <joel.winarske@gmail.com>
From 4b36509c21312b3b534122ed9486b90eedbf16a7 Mon Sep 17 00:00:00 2001
From: Joel Winarske <joel.winarske@gmail.com>
Date: Sat, 3 Jun 2023 09:22:02 -0700
Subject: [PATCH] Enable ELF loading via dramstage
-GCC 12 linker fixes
-standardize elf header member variable names
-loadelf updates
Signed-off-by: Joel Winarske <joel.winarske@gmail.com>
In case where submodule was added using
```
git submodule add https://... Silicon/ARM/TFA
```
Remove it using
```
git submodule deinit -f Silicon/ARM/TFA
rm -rf .git/modules/Silicon/ARM/MU_TIANO
git rm -f Silicon/ARM/MU_TIANO
@jwinarske
jwinarske / main.rs
Last active October 16, 2022 19:08
pattern to get all Yocto crate dependencies
use std::env;
use std::path::Path;
use std::path::PathBuf;
use cargo_metadata::CargoOpt;
use clap::Parser;
use git2::{Cred, Oid, RemoteCallbacks};
use glob::glob;
use indexmap::IndexSet;
@jwinarske
jwinarske / gclient_bitbake.py
Last active March 9, 2022 23:15
glcient revision json parser to create Yocto recipe include file
#!/usr/bin/env python3
# Copyright (c) 2022 Joel Winarske. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""
converts gclient constructs to Yocto format include file.
Depends on gitpython - pip3 install gitpython
Usage:
@jwinarske
jwinarske / appsink.cc
Last active March 5, 2024 04:43
gstreamer appsink vulkan sample
#include <gst/gst.h>
#include <gst/vulkan/vulkan.h>
#include <cstdlib>
int main(int argc, char* argv[]) {
GstElement *pipeline, *sink;
gint width, height;
GstSample* sample;
gchar* descr;