From 00ca5c6a7e1e650d05287e6712957de573fe278c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20M=C3=BCller?= Date: Thu, 7 Jun 2018 01:10:41 +0200 Subject: [PATCH] xa: initial add 2.3.8 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Andreas Müller --- ...1-Align-Makefile-for-cross-compiling.patch | 94 +++++++++++++++++++ recipes-support/xa/xa_2.3.8.bb | 14 +++ 2 files changed, 108 insertions(+) create mode 100644 recipes-support/xa/files/0001-Align-Makefile-for-cross-compiling.patch create mode 100644 recipes-support/xa/xa_2.3.8.bb diff --git a/recipes-support/xa/files/0001-Align-Makefile-for-cross-compiling.patch b/recipes-support/xa/files/0001-Align-Makefile-for-cross-compiling.patch new file mode 100644 index 0000000..472b24f --- /dev/null +++ b/recipes-support/xa/files/0001-Align-Makefile-for-cross-compiling.patch @@ -0,0 +1,94 @@ +From 3a0c607e6b4cdcb283ce41a555e76269687f1b50 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Andreas=20M=C3=BCller?= +Date: Wed, 6 Jun 2018 23:38:38 +0200 +Subject: [PATCH] Align Makefiles for cross compiling +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Upstream-Status: Inappropriate [oe-specific] + +Signed-off-by: Andreas Müller +--- + Makefile | 31 ++++++------------------------- + misc/Makefile | 10 +++++----- + 2 files changed, 11 insertions(+), 30 deletions(-) + +diff --git a/Makefile b/Makefile +index 0cda4d6..a87cc35 100644 +--- a/Makefile ++++ b/Makefile +@@ -1,38 +1,19 @@ +-# Unix gcc or DOS go32 cross-compiling gcc +-# +-CC = gcc +-LD = gcc +-# for testing. not to be used; build failures in misc/. +-#CFLAGS = -O2 -W -Wall -pedantic -ansi +-CFLAGS = -O2 +-LDFLAGS = -lc +- +-# for DOS? +-# CC = gcc-go32 +-# LD = gcc-go32 +-# CFLAGS = -W -Wall -pedantic +- +-# Other cc +-#CC = cc +-#CFLAGS = +-#LD = ld +- +-DESTDIR = /usr/local +- +-BINDIR = $(DESTDIR)/bin +-MANDIR = $(DESTDIR)/share/man/man1 +-DOCDIR = $(DESTDIR)/share/doc ++BINDIR = $(DESTDIR)/usr/bin ++MANDIR = $(DESTDIR)/usr/share/man/man1 ++DOCDIR = $(DESTDIR)/usr/share/doc + + MKDIR = mkdir -p + INSTALL = install + ++LD = $(CC) ++ + all: killxa xa uncpk + + killxa: + rm -f xa + + xa: +- (cd src && LD=${LD} CC="${CC} ${CFLAGS}" ${MAKE}) ++ (cd src && LD="${LD}" CC="${CC} ${CFLAGS}" ${MAKE}) + + load: + (cd loader && CC="${CC} ${CFLAGS}" ${MAKE}) +diff --git a/misc/Makefile b/misc/Makefile +index 2b450e0..6967dad 100644 +--- a/misc/Makefile ++++ b/misc/Makefile +@@ -10,19 +10,19 @@ LIBS = #-lncurses -ltermcap -lm + all: ../mkrom.sh ../uncpk ../printcbm ../file65 ../reloc65 ../ldo65 + + ../uncpk: uncpk.c +- ${CC} ${CFLAGS} uncpk.c -o $(XCBMLIB)/uncpk ++ ${CC} ${CFLAGS} $(LDFLAGS) uncpk.c -o $(XCBMLIB)/uncpk + + ../printcbm: printcbm.c +- ${CC} ${CFLAGS} printcbm.c -o $(XCBMLIB)/printcbm ++ ${CC} ${CFLAGS} $(LDFLAGS) printcbm.c -o $(XCBMLIB)/printcbm + + ../file65: file65.c +- ${CC} ${CFLAGS} file65.c -o $(XCBMLIB)/file65 ++ ${CC} ${CFLAGS} $(LDFLAGS) file65.c -o $(XCBMLIB)/file65 + + ../ldo65: ldo65.c +- ${CC} ${CFLAGS} ldo65.c -o $(XCBMLIB)/ldo65 ++ ${CC} ${CFLAGS} $(LDFLAGS) ldo65.c -o $(XCBMLIB)/ldo65 + + ../reloc65: reloc65.c +- ${CC} ${CFLAGS} reloc65.c -o $(XCBMLIB)/reloc65 ++ ${CC} ${CFLAGS} $(LDFLAGS) reloc65.c -o $(XCBMLIB)/reloc65 + + ../mkrom.sh: mkrom.sh + cp mkrom.sh ../mkrom.sh diff --git a/recipes-support/xa/xa_2.3.8.bb b/recipes-support/xa/xa_2.3.8.bb new file mode 100644 index 0000000..237ab8a --- /dev/null +++ b/recipes-support/xa/xa_2.3.8.bb @@ -0,0 +1,14 @@ +SUMMARY = "Open-source 6502 cross assembler" +LICENSE = "GPLv2" +LIC_FILES_CHKSUM = "file://COPYING;md5=1f67e705f4eb5064027b8c40ccfdb43e" + +inherit autotools-brokensep + +SRC_URI = " \ + http://www.floodgap.com/retrotech/xa/dists/${BPN}-${PV}.tar.gz \ + file://0001-Align-Makefile-for-cross-compiling.patch \ +" +SRC_URI[md5sum] = "884c3dc5bcc8e8f10b05a6907781623d" +SRC_URI[sha256sum] = "3b97d2fe8891336676ca28ff127b69e997f0b5accf2c7009b4517496929b462a" + +BBCLASSEXTEND = "native"