Skip to content

Instantly share code, notes, and snippets.

From bd961db0e42d85a4ddf594c0fac8aeb77d619e40 Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Fri, 7 Aug 2015 00:05:29 -0700
Subject: [PATCH] PowerPC: change 'extern inline' to 'static inline'
The gcc 5 change its default C standard from gnu89 to gnu11.
extern inline semantics have changed see
https://gcc.gnu.org/gcc-5/porting_to.html
Signed-off-by: Khem Raj <raj.khem@gmail.com>
musl.qemuarm64.world.log:Summary: 54 tasks failed:
musl.qemuarm.world.log:Summary: 56 tasks failed:
musl.qemumips.world.log:Summary: 53 tasks failed:
musl.qemuppc.world.log:Summary: 58 tasks failed:
musl.qemux86-64.world.log:Summary: 57 tasks failed:
musl.qemux86.world.log:Summary: 56 tasks failed:
uclibc.qemuarm64.world.log:Summary: 4 tasks failed:
uclibc.qemuarm.world.log:Summary: 41 tasks failed:
uclibc.qemumips.world.log:Summary: 41 tasks failed:
uclibc.qemuppc.world.log:Summary: 43 tasks failed:
diff --git a/packages/mips32el-rdk-linux/systemd/systemd/files-in-systemd.txt b/packages/mips32el-rdk-linux/systemd/systemd/files-in-systemd.txt
index 05f9a43..807a38f 100644
--- a/packages/mips32el-rdk-linux/systemd/systemd/files-in-systemd.txt
+++ b/packages/mips32el-rdk-linux/systemd/systemd/files-in-systemd.txt
@@ -1,26 +1,26 @@
drwxr-xr-x kraj kraj 4096 .
drwxr-xr-x kraj kraj 4096 ./bin
--rwxr-xr-x kraj kraj 447924 ./bin/journalctl
--rwxr-xr-x kraj kraj 423076 ./bin/loginctl
--rwxr-xr-x kraj kraj 464308 ./bin/machinectl
--- a/meta/lib/oeqa/utils/qemurunner.py
+++ b/meta/lib/oeqa/utils/qemurunner.py
@@ -81,11 +81,11 @@ class QemuRunner:
raise SystemExit
def start(self, qemuparams = None):
- if self.display:
- os.environ["DISPLAY"] = self.display
- else:
- logger.error("To start qemu I need a X desktop, please set DISPLAY correctly (e.g. DISPLAY=:1)")
diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass
index ef90fc8..1af6d1e 100644
--- a/meta/classes/sanity.bbclass
+++ b/meta/classes/sanity.bbclass
@@ -3,7 +3,7 @@
#
SANITY_REQUIRED_UTILITIES ?= "patch diffstat makeinfo git bzip2 tar \
- gzip gawk chrpath wget cpio perl"
+ gzip gawk chrpath curl cpio perl"
From 9697c8e62373043e8f0759e7b80217dae81edc7c Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Wed, 20 Jan 2016 10:14:15 -0800
Subject: [PATCH] exclude vis.h when compiling assembly files
.S files are compiled using compiler and preprocess the header files
into the translation unit which is then passed to assmebler, which will
error out like
/src/internal/vis.h:16: Error: bad instruction
@kraj
kraj / a.txt
Created January 23, 2016 00:04
| Creating image(s)...
|
| Traceback (most recent call last):
| File "/a/builder/home/kraj/work/oe/openembedded-core/scripts/wic", line
319, in <module>
| sys.exit(main(sys.argv[1:]))
| File "/a/builder/home/kraj/work/oe/openembedded-core/scripts/wic", line
314, in main
| return hlp.invoke_subcommand(args, parser, hlp.wic_help_usage,
subcommands)
From d70996c87451aae1473e8c7dc1241c5b58f94d63 Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Sat, 19 Dec 2015 23:58:23 +0000
Subject: [PATCH] poky-tiny: Use musl for default system C library
poky-tiny is reference for smallest footprint distro that can be
generated using yocto project infrastructure. Therefore switch to using
musl which gives the smallest footprint with a lot of extra stretching
for adding new package if needed, core-image-minimal for qemux86 comes
out to be 716K ( rootfs only ), boot tested on qemux86/poky-tiny
@kraj
kraj / a.diff
Created February 4, 2016 22:39
diff --git a/meta/conf/distro/include/security_flags.inc b/meta/conf/distro/include/security_flags.inc
index 5fd5184..ff5d940 100644
--- a/meta/conf/distro/include/security_flags.inc
+++ b/meta/conf/distro/include/security_flags.inc
@@ -87,8 +87,8 @@ SECURITY_CFLAGS_pn-zlib = "${SECURITY_NO_PIE_CFLAGS}"
SECURITY_CFLAGS_pn-ltp = "${SECURITY_NO_PIE_CFLAGS}"
SECURITY_CFLAGS_pn-pulseaudio = "${SECURITY_NO_PIE_CFLAGS}"
-TARGET_CFLAGS_append = " ${SECURITY_CFLAGS}"
-TARGET_LDFLAGS_append = " ${SECURITY_LDFLAGS}"