Skip to content

Commit

Permalink
Add dist target to Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
dmage committed Apr 27, 2018
1 parent 2291ee1 commit 06c4f72
Show file tree
Hide file tree
Showing 8 changed files with 299 additions and 179 deletions.
220 changes: 139 additions & 81 deletions .busybox-config

Large diffs are not rendered by default.

238 changes: 145 additions & 93 deletions .kernel-config

Large diffs are not rendered by default.

10 changes: 10 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ docker run --rm -i -t \
-v "$(CURDIR)/initramfs:/srv/initramfs" \
-v "$(CURDIR)/opt:/srv/opt" \
-v "$(CURDIR)/share:/srv/share" \
-v "$(CURDIR)/bin:/srv/bin:ro" \
-v "$(CURDIR)/src:/srv/src:ro" \
-v "$(CURDIR)/Makefile:/srv/Makefile:ro" \
-v "$(CURDIR)/mkinclude:/srv/mkinclude:ro" \
Expand Down Expand Up @@ -53,4 +54,13 @@ else
-rm -rf ./build
endif

dist:
ifeq ($(uname_s),Darwin)
$(docker-make)
else
mkdir -p ./build/release
make install DESTDIR=./build/release
tar -zcf ./opt/livm-$(LIVM_VERSION).tar.gz --owner=0 --group=0 -C ./build/release bin share
endif

.PHONY: docker-sh build install clean
2 changes: 1 addition & 1 deletion livm-fedora/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM fedora
MAINTAINER Oleg Bulatov <oleg@bulatov.me>

RUN dnf install -y bzip2 make gcc bc findutils ncurses-devel
RUN dnf install -y bzip2 make gcc bc findutils bison flex ncurses-devel
2 changes: 1 addition & 1 deletion mkinclude/busybox.mk
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
BUSYBOX_VERSION = 1.26.2
BUSYBOX_VERSION = 1.28.3

src/busybox-$(BUSYBOX_VERSION).tar.bz2: | src
wget https://www.busybox.net/downloads/busybox-$(BUSYBOX_VERSION).tar.bz2 -O $@
Expand Down
2 changes: 1 addition & 1 deletion mkinclude/dropbear.mk
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
DROPBEAR_VERSION = 2016.74
DROPBEAR_VERSION = 2018.76

src/dropbear-$(DROPBEAR_VERSION).tar.bz2: | src
wget https://matt.ucc.asn.au/dropbear/releases/dropbear-$(DROPBEAR_VERSION).tar.bz2 -O $@
Expand Down
2 changes: 1 addition & 1 deletion mkinclude/glibc.mk
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
GLIBC_VERSION = 2.25
GLIBC_VERSION = 2.27

CC_DIRSTAMP =
CC = gcc
Expand Down
2 changes: 1 addition & 1 deletion mkinclude/kernel.mk
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
KERNEL_MENUCONFIG ?= menuconfig
KERNEL_VERSION = 4.11
KERNEL_VERSION = 4.16.5

src/linux-$(KERNEL_VERSION).tar.xz: | src
wget https://cdn.kernel.org/pub/linux/kernel/v4.x/linux-$(KERNEL_VERSION).tar.xz -O $@
Expand Down

0 comments on commit 06c4f72

Please # to comment.