diff options
author | Sebastian Pipping <sebastian@pipping.org> | 2016-01-15 02:03:32 +0100 |
---|---|---|
committer | Sebastian Pipping <sebastian@pipping.org> | 2016-01-15 02:03:42 +0100 |
commit | 383e767b937cad1a06caeb69d2140c5eda0533b3 (patch) | |
tree | 5785722c3d7632379b13c0aaf5f7928962cc1385 /sys-boot | |
parent | Update remote-ids in metadata.xml (diff) | |
download | betagarden-383e767b937cad1a06caeb69d2140c5eda0533b3.tar.gz betagarden-383e767b937cad1a06caeb69d2140c5eda0533b3.tar.bz2 betagarden-383e767b937cad1a06caeb69d2140c5eda0533b3.zip |
sys-boot/grub-invaders: Fix compilation
Diffstat (limited to 'sys-boot')
-rw-r--r-- | sys-boot/grub-invaders/files/invaders-1.0.0-makefile | 5 | ||||
-rw-r--r-- | sys-boot/grub-invaders/grub-invaders-1.0.0_p12.ebuild | 6 |
2 files changed, 8 insertions, 3 deletions
diff --git a/sys-boot/grub-invaders/files/invaders-1.0.0-makefile b/sys-boot/grub-invaders/files/invaders-1.0.0-makefile index 8a34f17..bfb33a8 100644 --- a/sys-boot/grub-invaders/files/invaders-1.0.0-makefile +++ b/sys-boot/grub-invaders/files/invaders-1.0.0-makefile @@ -1,13 +1,14 @@ -# Copyright (C) 2015 Sebastian Pipping <sebastian@pipping.org> +# Copyright (C) 2016 Sebastian Pipping <sebastian@pipping.org> # Licensed under GPL v2 or later. OBJCOPY = objcopy CPPFLAGS = -I. CFLAGS += -ffreestanding -m32 -nostdinc -nostdlib -I. -W -Wall +ASFLAGS = $(CFLAGS) LDFLAGS += -Wl,-N -Wl,-Ttext -Wl,100000 -Wl,--build-id=none -O_FILES = $(patsubst %.c,%.o,$(wildcard *.c)) +O_FILES = $(patsubst %.S,%.o,$(wildcard *.S)) $(patsubst %.c,%.o,$(wildcard *.c)) all: invaders diff --git a/sys-boot/grub-invaders/grub-invaders-1.0.0_p12.ebuild b/sys-boot/grub-invaders/grub-invaders-1.0.0_p12.ebuild index 5732efd..3bdca7b 100644 --- a/sys-boot/grub-invaders/grub-invaders-1.0.0_p12.ebuild +++ b/sys-boot/grub-invaders/grub-invaders-1.0.0_p12.ebuild @@ -4,7 +4,7 @@ EAPI="5" -inherit versionator eutils +inherit toolchain-funcs versionator eutils MY_PN=invaders MY_PV="$(get_version_component_range 1-3)" @@ -28,6 +28,10 @@ src_prepare() { rm ${MY_PN} || die } +src_compile() { + emake CC=$(tc-getCC) +} + src_install() { dodoc README |