Skip to content

Instantly share code, notes, and snippets.

CONFIG_TARGET_ramips=y
CONFIG_TARGET_ramips_mt76x8=y
CONFIG_TARGET_ramips_mt76x8_DEVICE_LinkIt7688=y
CONFIG_PACKAGE_edgeport-firmware=m
CONFIG_PACKAGE_kmod-usb-serial=m
CONFIG_PACKAGE_kmod-usb-serial-ark3116=m
CONFIG_PACKAGE_kmod-usb-serial-belkin=m
CONFIG_PACKAGE_kmod-usb-serial-ch341=m
CONFIG_PACKAGE_kmod-usb-serial-cp210x=m
CONFIG_PACKAGE_kmod-usb-serial-cypress-m8=m
@kraj
kraj / a.go
Created November 16, 2018 17:22
package main
import (
"net/http"
"github.com/sirupsen/logrus"
)
diff --git a/src/netlib.c b/src/netlib.c
index 9258424..60b032d 100644
--- a/src/netlib.c
+++ b/src/netlib.c
@@ -2262,6 +2262,10 @@ shutdown_control()
}
+#if HAVE_SCHED_SETAFFINITY
+#include <sched.h>
/mnt/a/yoe/build/tmp/work/i586-yoe-linux-musl/netperf/2.7.0+git999-r0/recipe-sysroot/usr/include/sched.h: In function 'bind_to_specific_processor':
/mnt/a/yoe/build/tmp/work/i586-yoe-linux-musl/netperf/2.7.0+git999-r0/recipe-sysroot/usr/include/sched.h:102:1: error: invalid storage class for function '__CPU_AND_S'
__CPU_op_func_S(AND, &)
^~~~~~~~~~~~~~~
/mnt/a/yoe/build/tmp/work/i586-yoe-linux-musl/netperf/2.7.0+git999-r0/recipe-sysroot/usr/include/sched.h:103:1: error: invalid storage class for function '__CPU_OR_S'
__CPU_op_func_S(OR, |)
^~~~~~~~~~~~~~~
/mnt/a/yoe/build/tmp/work/i586-yoe-linux-musl/netperf/2.7.0+git999-r0/recipe-sysroot/usr/include/sched.h:104:1: error: invalid storage class for function '__CPU_XOR_S'
__CPU_op_func_S(XOR, ^)
^~~~~~~~~~~~~~~
diff --git a/envsetup.sh b/envsetup.sh
index 1de16ca..23e9ef6 100644
--- a/envsetup.sh
+++ b/envsetup.sh
@@ -551,6 +551,7 @@ function dkr() {
-e SSH_AUTH_SOCK=/ssh-agent \
-e MACHINE=$MACHINE \
-e IMG_VERSION=$IMG_VERSION \
+ --user $UID:$GID \
${DOCKER_REPO} /bin/bash -c "cd $(pwd) && . envsetup.sh && $CMD $2 $3 $4 $5 $6 $7 $8"
diff --git a/envsetup.sh b/envsetup.sh
index 1de16ca..0b1c370 100644
--- a/envsetup.sh
+++ b/envsetup.sh
@@ -544,13 +544,14 @@ function dkr() {
docker run --rm -it \
-v $(pwd):$(pwd) \
- -v ~/.ssh:/home/build/.ssh \
- -v ~/.gitconfig:/home/build/.gitconfig \
From 4a8c992c5664b3bf6df5e6a77c69a66ee5f2f4f8 Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Sun, 16 Sep 2018 16:12:34 -0700
Subject: [PATCH] Add preceding 'it' instruction before ldr
When compiled for a Thumb2 target clang with internal asm errors out
like below
src/fenv/arm/fenv-hf.S:63:2: error: predicated instructions must be in IT block
moveq r3, #0
#define _GNU_SOURCE
#include <sys/socket.h>
int foo(struct cmsghdr *header, struct msghdr msg) {
header = CMSG_NXTHDR(&msg, header);
return 0;
}
=============================
../../../../../../../workspace/sources/libkcapi/lib/kcapi-kernel-if.c:25:11: error: comparison of integers of different signs: 'unsigned long' and 'long' [-Werror,-Wsign-compare]
set -e
if test -n "$D"; then
if true; then
PSEUDO_UNLOAD=1 qemu-riscv64 -r 4.15 -L $D -E LD_LIBRARY_PATH=$D/usr/lib:$D/lib $D/bin/udevadm hwdb --update \
--root $D
chown root:root $D/etc/udev/hwdb.bin
else
$INTERCEPT_DIR/postinst_intercept delay_to_first_boot udev-hwdb mlprefix=
fi
else
#!/bin/sh
set -x
if [ True = False ]; then
echo "qemuwrapper: qemu usermode is not supported"
fi
qemu-riscv64 -r 4.15 -E LD_LIBRARY_PATH=$D/usr/lib:$D/lib "$@"