summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBruce Ashfield <bruce.ashfield@gmail.com>2026-03-24 12:25:02 +0000
committerBruce Ashfield <bruce.ashfield@gmail.com>2026-03-24 12:25:02 +0000
commit1de5afc4678611eff34c17d3b50e3248c4f2bf68 (patch)
treefa810b9221809d052a7ef1230666fa217c122507
parentfaadeac00887ef0f337252cf7fcc48d40f9d5a4a (diff)
downloadmeta-virtualization-1de5afc4678611eff34c17d3b50e3248c4f2bf68.tar.gz
dev86: remove recipe for deleted upstream project
The upstream repository (github.com/jbruchon/dev86) has been deleted. dev86 provided 8086 assembler tools (as86/ld86/bcc) used only for building rombios, which has been disabled in Xen in the previous commit. No other recipe depends on dev86. Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
-rw-r--r--recipes-extended/dev86/dev86/0001-cpp-Makefile-respect-LDFLAGS-when-building-bcc-cpp.patch25
-rw-r--r--recipes-extended/dev86/dev86/0001-cpp-fix-race-writing-token.h-files.patch45
-rw-r--r--recipes-extended/dev86/dev86/0003-cpp-update-token1.tok-to-make-new-gperf-happy-regen..patch30
-rw-r--r--recipes-extended/dev86/dev86/0004-regen-token2.h-token1.h-with-gperf-3.1.patch59
-rw-r--r--recipes-extended/dev86/dev86/cross.patch29
-rw-r--r--recipes-extended/dev86/dev86_git.bb65
6 files changed, 0 insertions, 253 deletions
diff --git a/recipes-extended/dev86/dev86/0001-cpp-Makefile-respect-LDFLAGS-when-building-bcc-cpp.patch b/recipes-extended/dev86/dev86/0001-cpp-Makefile-respect-LDFLAGS-when-building-bcc-cpp.patch
deleted file mode 100644
index 85f3aef8..00000000
--- a/recipes-extended/dev86/dev86/0001-cpp-Makefile-respect-LDFLAGS-when-building-bcc-cpp.patch
+++ /dev/null
@@ -1,25 +0,0 @@
1From 12f3a54801e15f3bdd5222ca1487f2fe36141c5d Mon Sep 17 00:00:00 2001
2From: Martin Jansa <Martin.Jansa@gmail.com>
3Date: Fri, 14 May 2021 06:30:18 -0700
4Subject: [PATCH] cpp/Makefile: respect LDFLAGS when building bcc-cpp
5
6Upstream-Status: Inappropriate [embedded specific]
7
8Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
9---
10 cpp/Makefile | 2 +-
11 1 file changed, 1 insertion(+), 1 deletion(-)
12
13diff --git a/cpp/Makefile b/cpp/Makefile
14index 0ea43cc..303b43c 100644
15--- a/cpp/Makefile
16+++ b/cpp/Makefile
17@@ -3,7 +3,7 @@ CFLAGS=-Wall -Wstrict-prototypes
18 all: bcc-cpp
19
20 bcc-cpp: main.o cpp.o hash.o token1.o token2.o
21- $(CC) $(CFLAGS) -o bcc-cpp main.o cpp.o hash.o token1.o token2.o
22+ $(CC) $(CFLAGS) $(LDFLAGS) -o bcc-cpp main.o cpp.o hash.o token1.o token2.o
23
24 clean realclean:
25 rm -f bcc-cpp main.o cpp.o hash.o token1.o token2.o tmp.h
diff --git a/recipes-extended/dev86/dev86/0001-cpp-fix-race-writing-token.h-files.patch b/recipes-extended/dev86/dev86/0001-cpp-fix-race-writing-token.h-files.patch
deleted file mode 100644
index e009e01a..00000000
--- a/recipes-extended/dev86/dev86/0001-cpp-fix-race-writing-token.h-files.patch
+++ /dev/null
@@ -1,45 +0,0 @@
1Upstream-Status: Submitted [https://github.com/jbruchon/dev86/pull/23]
2Signed-off-by: Ross Burton <ross.burton@arm.com>
3
4From f507ee398ae20e4e97f01dfbd9a8709a90bc760f Mon Sep 17 00:00:00 2001
5From: Ross Burton <ross.burton@arm.com>
6Date: Fri, 29 Apr 2022 16:44:08 +0100
7Subject: [PATCH] cpp: fix race writing token.h files
8
9The rules for token1.h and token2.h both write to a temporary file tmp.h
10before renaming to token1.h or token2.h. However, in a parallel build
11these will execute at the same time and race.
12
13 gperf -aptTc -N is_ctok -H hash1 token1.tok > tmp.h
14 gperf -aptTc -k1,3 -N is_ckey -H hash2 token2.tok > tmp.h
15 mv tmp.h token1.h
16 mv tmp.h token2.h
17 mv: cannot stat 'tmp.h': No such file or directory
18
19By using gperf --output-file, the race is avoided entirely.
20
21Upstream-Status: Inappropriate [embedded specific]
22
23---
24 cpp/Makefile | 6 ++----
25 1 file changed, 2 insertions(+), 4 deletions(-)
26
27diff --git a/cpp/Makefile b/cpp/Makefile
28index 0ea43cc..743694f 100644
29--- a/cpp/Makefile
30+++ b/cpp/Makefile
31@@ -20,9 +20,7 @@ token1.o: token1.h
32 token2.o: token2.h
33
34 token1.h: token1.tok
35- gperf -aptTc -N is_ctok -H hash1 token1.tok > tmp.h
36- mv tmp.h token1.h
37+ gperf -aptTc -N is_ctok -H hash1 --output-file $@ $<
38
39 token2.h: token2.tok
40- gperf -aptTc -k1,3 -N is_ckey -H hash2 token2.tok > tmp.h
41- mv tmp.h token2.h
42+ gperf -aptTc -k1,3 -N is_ckey -H hash2 --output-file $@ $<
43--
442.25.1
45
diff --git a/recipes-extended/dev86/dev86/0003-cpp-update-token1.tok-to-make-new-gperf-happy-regen..patch b/recipes-extended/dev86/dev86/0003-cpp-update-token1.tok-to-make-new-gperf-happy-regen..patch
deleted file mode 100644
index 47c283b2..00000000
--- a/recipes-extended/dev86/dev86/0003-cpp-update-token1.tok-to-make-new-gperf-happy-regen..patch
+++ /dev/null
@@ -1,30 +0,0 @@
1From e908a3ad04bb40e425542b85fbb3a1eb5a38e194 Mon Sep 17 00:00:00 2001
2From: Tee-Kiah Chia <tkchia@users.noreply.github.com>
3Date: Thu, 27 Feb 2020 00:52:05 +0800
4Subject: [PATCH] [cpp] update token1.tok to make new gperf happy; regen.
5 token1.h
6
7Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
8Upstream-Status: Pending [it was submitted in https://github.com/jbruchon/dev86/pull/19
9but then closed by author]
10
11Remove regenerated token1.h as we'll force it to regenerate in do_compile.
12
13---
14 cpp/token1.h | 170 +++++++++++++++++++++++++++++++++----------------
15 cpp/token1.tok | 2 +-
16 2 files changed, 115 insertions(+), 57 deletions(-)
17
18diff --git a/cpp/token1.tok b/cpp/token1.tok
19index cd668ce..a98926f 100644
20--- a/cpp/token1.tok
21+++ b/cpp/token1.tok
22@@ -7,7 +7,7 @@ struct token_trans { char * name; int token; };
23 -=, TK_SUB_ASSIGN
24 *=, TK_MUL_ASSIGN
25 /=, TK_DIV_ASSIGN
26-%=, TK_MOD_ASSIGN
27+"%=", TK_MOD_ASSIGN
28 &=, TK_AND_ASSIGN
29 ^=, TK_XOR_ASSIGN
30 |=, TK_OR_ASSIGN
diff --git a/recipes-extended/dev86/dev86/0004-regen-token2.h-token1.h-with-gperf-3.1.patch b/recipes-extended/dev86/dev86/0004-regen-token2.h-token1.h-with-gperf-3.1.patch
deleted file mode 100644
index 4a5bb25e..00000000
--- a/recipes-extended/dev86/dev86/0004-regen-token2.h-token1.h-with-gperf-3.1.patch
+++ /dev/null
@@ -1,59 +0,0 @@
1From ce2b9747d51df2a4c358a037950f0464f3f53fe8 Mon Sep 17 00:00:00 2001
2From: Martin Jansa <Martin.Jansa@gmail.com>
3Date: Fri, 14 May 2021 14:31:50 +0000
4Subject: [PATCH] regen token2.h, token1.h with gperf-3.1
5
6* update cc.h, token1.c, token2.c to be compatible with
7 gperf-3.1 output
8
9Upstream-Status: Pending
10Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
11
12Remove regenerated token2.h as we'll force it to regenerate in do_compile.
13---
14 cpp/cc.h | 4 +-
15 cpp/token1.c | 2 +-
16 cpp/token1.h | 22 ++----
17 cpp/token2.c | 2 +-
18 cpp/token2.h | 211 +++++++++++++++++++++++++++++++--------------------
19 5 files changed, 140 insertions(+), 101 deletions(-)
20
21diff --git a/cpp/cc.h b/cpp/cc.h
22index 9c298e7..3724543 100644
23--- a/cpp/cc.h
24+++ b/cpp/cc.h
25@@ -25,8 +25,8 @@ extern int dialect;
26 extern int gettok P((void));
27
28 struct token_trans { char * name; int token; };
29-struct token_trans * is_ctok P((const char *str, unsigned int len));
30-struct token_trans * is_ckey P((const char *str, unsigned int len));
31+struct token_trans * is_ctok P((register const char *str, register size_t len));
32+struct token_trans * is_ckey P((register const char *str, register size_t len));
33
34 #define WORDSIZE 128
35 #define TK_WSPACE 256
36diff --git a/cpp/token1.c b/cpp/token1.c
37index f3aa420..cc47f3e 100644
38--- a/cpp/token1.c
39+++ b/cpp/token1.c
40@@ -6,6 +6,6 @@
41 #ifdef __GNUC__
42 __inline
43 #endif
44-static unsigned int hash1 P((register const char *, register unsigned int));
45+static unsigned int hash1 P((register const char *, register size_t));
46
47 #include "token1.h"
48diff --git a/cpp/token2.c b/cpp/token2.c
49index b4d22b1..fbc790d 100644
50--- a/cpp/token2.c
51+++ b/cpp/token2.c
52@@ -6,6 +6,6 @@
53 #ifdef __GNUC__
54 __inline
55 #endif
56-static unsigned int hash2 P((register const char *, register unsigned int));
57+static unsigned int hash2 P((register const char *, register size_t));
58
59 #include "token2.h"
diff --git a/recipes-extended/dev86/dev86/cross.patch b/recipes-extended/dev86/dev86/cross.patch
deleted file mode 100644
index fd62c5dd..00000000
--- a/recipes-extended/dev86/dev86/cross.patch
+++ /dev/null
@@ -1,29 +0,0 @@
1Build ifdef using BUILD_CC, not CC.
2
3Upstream-Status: Submitted [https://github.com/jbruchon/dev86/pull/22]
4Signed-off-by: Ross Burton <ross.burton@arm.com>
5
6diff --git a/Makefile b/Makefile
7index 8a61b65..99f41de 100644
8--- a/Makefile
9+++ b/Makefile
10@@ -22,6 +22,10 @@ CFLAGS= -O
11 IFDEFNAME= ifdef
12 WD=$(shell pwd)
13
14+BUILD_CC ?= $(CC)
15+BUILD_CFLAGS ?= $(CFLAGS)
16+BUILD_LDFLAGS ?= $(LDFLAGS)
17+
18 # Some makes take the last of a list as the default ...
19 all: make.fil
20 PATH="`pwd`/bin:$$PATH" $(MAKE) -f make.fil VERSION=$(VERSION) TOPDIR=`pwd` $@
21@@ -65,7 +69,7 @@ make.fil: $(IFDEFNAME) makefile.in
22 @rm -f tmp.mak tmp.sed
23
24 $(IFDEFNAME): ifdef.c
25- $(CC) $(IFDEFARCH) $(CFLAGS) $(IFDEFFLAGS) $(LDFLAGS) -o $(IFDEFNAME) ifdef.c
26+ $(BUILD_CC) $(IFDEFARCH) $(BUILD_CFLAGS) $(IFDEFFLAGS) $(BUILD_LDFLAGS) -o $(IFDEFNAME) ifdef.c
27
28 uninstall:
29 @echo 'Sorry, no go; it was just wrong.'
diff --git a/recipes-extended/dev86/dev86_git.bb b/recipes-extended/dev86/dev86_git.bb
deleted file mode 100644
index fb854ed1..00000000
--- a/recipes-extended/dev86/dev86_git.bb
+++ /dev/null
@@ -1,65 +0,0 @@
1DESCRIPTION = "This is a cross development C compiler, assembler and linker environment for the production of 8086 executables (Optionally MSDOS COM)"
2HOMEPAGE = "http://www.debath.co.uk/dev86/"
3LICENSE = "GPL-2.0-only"
4LIC_FILES_CHKSUM = "file://COPYING;md5=8ca43cbc842c2336e835926c2166c28b"
5SECTION = "console/tools"
6
7BASE_PV = "0.16.21"
8PV = "${BASE_PV}+git"
9SRCREV = "e254e0b19651d3b8a20225b40281c9974a95dec4"
10SRC_URI = "git://github.com/jbruchon/${BPN}.git;protocol=https;branch=master \
11 file://0001-cpp-Makefile-respect-LDFLAGS-when-building-bcc-cpp.patch \
12 file://0003-cpp-update-token1.tok-to-make-new-gperf-happy-regen..patch \
13 file://0004-regen-token2.h-token1.h-with-gperf-3.1.patch \
14 file://cross.patch \
15 file://0001-cpp-fix-race-writing-token.h-files.patch \
16"
17
18DEPENDS = "gperf-native"
19
20BBCLASSEXTEND = "native nativesdk"
21EXTRA_OEMAKE = "VERSION=${BASE_PV} PREFIX=${prefix} DIST=${D} LDFLAGS='${LDFLAGS}' INEXE=''"
22
23do_compile() {
24 # always regenerate token1.h, token2.h for deterministic behavior
25 rm -f ${S}/cpp/token1.h ${S}/cpp/token2.h
26 oe_runmake make.fil
27 oe_runmake -f make.fil bcc86 as86 ld86
28}
29
30do_install() {
31
32 if [ "${prefix}"=="" ] ; then
33 export prefix=/usr
34 fi
35
36 oe_runmake install-bcc
37 ln -s ../lib/bcc/bcc-cpp ${D}${prefix}/bin/bcc-cpp
38 ln -s ../lib/bcc/bcc-cc1 ${D}${prefix}/bin/bcc-cc1
39}
40
41FILES:${PN} += "${libdir}/bcc"
42
43# http://gecko.lge.com:8000/Errors/Details/832862
44# http://errors.yoctoproject.org/Errors/Details/766930/
45# cpp.c:548:1: error: type of 'ch' defaults to 'int' [-Wimplicit-int]
46# strsave.c:47:42: error: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration]
47# strsave.c:55:26: error: implicit declaration of function 'hash' [-Wimplicit-function-declaration]
48# strsave.c:66:32: error: implicit declaration of function 'strlen' [-Wimplicit-function-declaration]
49# symbol.c:60:42: error: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration]
50# symbol.c:72:30: error: implicit declaration of function 'strlen' [-Wimplicit-function-declaration]
51# symbol.c:77:13: error: implicit declaration of function 'hash' [-Wimplicit-function-declaration]
52# tok_class.c:305:43: error: implicit declaration of function 'strlen' [-Wimplicit-function-declaration]
53# tok_io.c:219:20: error: implicit declaration of function 'atoi' [-Wimplicit-function-declaration]
54# tok_io.c:488:20: error: implicit declaration of function 'strlen' [-Wimplicit-function-declaration]
55# unproto.c:188:51: error: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration]
56CFLAGS += "-Wno-error=implicit-int -Wno-error=implicit-function-declaration"
57
58# http://errors.yoctoproject.org/Errors/Details/853302/
59CFLAGS += "-std=gnu17"
60
61# http://errors.yoctoproject.org/Errors/Details/853303/
62# ar.c:615:23: error: passing argument 1 of 'ctime' from incompatible pointer type [-Wincompatible-pointer-types]
63CFLAGS += "-Wno-error=incompatible-pointer-types"
64
65EXTRA_OEMAKE += "CFLAGS='${CFLAGS}'"