This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
memfd: memfd.o binary.o | |
binary.o: sc | |
$(LD) -r -b binary -o $@ $^ | |
sc: sc.S | |
$(CC) -no-pie -nostdlib -s $< -o $@ | |
.PHONY: clean | |
clean: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# syntax=docker/dockerfile:experimental | |
FROM fedora:31 as builder | |
ARG METASHELL_REV=16a3d5cd2352f28a6e505ad71b69e59ffb765775 | |
RUN \ | |
dnf install -y git gcc gcc-c++ cmake readline-devel rpm-build python python2 ninja-build && \ | |
git clone --depth=10 https://github.com/metashell/metashell.git /usr/src/metashell && \ | |
cd /usr/src/metashell && \ | |
git checkout $METASHELL_REV && \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu:20.04 | |
ARG DEBIAN_FRONTEND=noninteractive | |
RUN \ | |
apt-get update && \ | |
apt-get install --no-install-recommends -y \ | |
curl ca-certificates git \ | |
gcc g++ libc-dev clang clang cmake make patchutils \ | |
libboost-all-dev libeigen3-dev libyaml-dev libprotobuf-dev protobuf-compiler libgtkmm-3.0-dev \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- PKGBUILD.orig 2020-08-06 08:56:57.467622808 +0900 | |
+++ PKGBUILD 2020-08-06 08:59:57.396027278 +0900 | |
@@ -1,29 +1,30 @@ | |
# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org> | |
# Contributor: Sébastien Luttringer | |
-pkgname=vicious | |
+_pkgname=vicious | |
+pkgname=vicious-lua53 | |
pkgver=2.4.1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/wilc/Makefile b/wilc/Makefile | |
index 7eb8cf0..b581506 100644 | |
--- a/wilc/Makefile | |
+++ b/wilc/Makefile | |
@@ -1,5 +1,6 @@ | |
# SPDX-License-Identifier: GPL-2.0 | |
-ccflags-y += -I$(src)/ -DWILC_ASIC_A0 -DWILC_DEBUGFS | |
+ccflags-y += -I$(src)/ -DWILC_ASIC_A0 | |
+ccflags-y += -DDISABLE_PWRSAVE_AND_SCAN_DURING_IP | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM alpine as builder | |
RUN apk add boost-dev g++ | |
ARG src | |
ARG bin | |
COPY "${src}" / | |
RUN g++ -Wall -Wextra -Werror -pedantic-errors -std=c++17 -O3 /${src} -o /${bin} -lboost_coroutine | |
FROM alpine | |
RUN apk add --no-cache libstdc++ boost-coroutine | |
ARG bin |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <chrono> | |
#include <iostream> | |
#include <memory> | |
#include <thread> | |
#include <vector> | |
#include <boost/asio.hpp> | |
using namespace std::chrono_literals; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/target |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <errno.h> | |
#include <fcntl.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <sys/ioctl.h> | |
#include <sys/types.h> | |
#include <unistd.h> | |
#include <linux/gpio.h> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <array> | |
#include <charconv> | |
#include <cstdlib> | |
#include <iostream> | |
#include <memory> | |
#include <stdexcept> | |
#include <string_view> | |
#include <boost/asio/ip/tcp.hpp> | |
#include <boost/asio/serial_port.hpp> |