Skip to content

Commit ed8d4fe

Browse files
authored
Merge pull request #43 from kubilus1/pr42
SGDK 1.40
2 parents df1d5c9 + 007a60a commit ed8d4fe

15 files changed

+330
-845
lines changed

.travis.yml

+9-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
dist: trusty
1+
# Not using Travis anymore but keeping this for now.
2+
3+
dist: bionic
24
language: c
35
sudo: false
46
branches:
@@ -7,8 +9,12 @@ branches:
79
- /^\d+\.\d+(\.\d+)?(-\S*)?$/
810
addons:
911
apt:
12+
update: true
1013
packages:
1114
- texinfo
15+
- openjdk-8-jdk-headless
16+
- dos2unix
17+
- g++
1218
cache:
1319
directories:
1420
- build
@@ -20,7 +26,7 @@ jobs:
2026
- make clean
2127
- stage: Setup toolchain
2228
script:
23-
- make toolchain_clean
29+
- make toolchain_clean
2430
- cd toolchain && make setup
2531
- stage: Build bintutils
2632
script:
@@ -47,7 +53,7 @@ jobs:
4753
- make sgdk_samples
4854
- stage: release to github
4955
if: tag IS present
50-
script:
56+
script:
5157
- echo "Deploying to github..."
5258
- VER=$TRAVIS_TAG make release
5359
deploy:

Dockerfile

+41-5
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,45 @@
1-
FROM ubuntu:14.04
1+
FROM ubuntu:bionic as build
22

3-
WORKDIR /tmp
3+
ENV DEBIAN_FRONTEND noninteractive
44

5-
RUN apt-get update && apt-get install -y build-essential wget unzip unrar-free texinfo git && apt-get clean
5+
ENV GENDEV /opt/gendev
66

7-
RUN bash -c "git clone https://github.com/kubilus1/gendev.git && cd gendev && make && rm -rf /tmp/*"
7+
RUN apt-get update && \
8+
apt-get install -y \
9+
build-essential \
10+
wget \
11+
unzip \
12+
unrar-free \
13+
texinfo \
14+
git \
15+
openjdk-8-jdk-headless && \
16+
apt-get clean
817

9-
CMD /bin/bash
18+
# To download gcc 6.3 with wget. We must provide a password with '@' in.
19+
#RUN echo ftp_user=anonymous > ~/.wgetrc
20+
#RUN echo [email protected] >> ~/.wgetrc
21+
22+
#RUN bash -c "git clone https://github.com/kubilus1/gendev.git && cd gendev && make && rm -rf /tmp/*"
23+
WORKDIR /work
24+
COPY tools /work/tools/
25+
COPY Makefile /work/
26+
COPY sgdk /work/sgdk/
27+
COPY toolchain /work/toolchain/
28+
RUN make
29+
RUN make install
30+
31+
FROM ubuntu:bionic
32+
RUN apt-get update && \
33+
apt-get install -y \
34+
openjdk-8-jre-headless \
35+
build-essential \
36+
make && \
37+
apt-get clean
38+
39+
ENV GENDEV /opt/gendev
40+
COPY --from=build /opt/gendev $GENDEV
41+
ENV PATH $GENDEV/bin:$PATH
42+
43+
WORKDIR /src
44+
45+
ENTRYPOINT make -f $GENDEV/sgdk/mkfiles/makefile.gen

Makefile

+6-5
Original file line numberDiff line numberDiff line change
@@ -38,22 +38,24 @@ toolchain_build:
3838
toolchain_clean:
3939
cd toolchain && $(MAKE) toolchain_clean
4040

41-
tools_build:
41+
tools_build:
4242
cd tools && $(MAKE) tools_build
4343

44-
tools_clean:
44+
tools_clean:
4545
cd tools && $(MAKE) tools_clean
4646

4747
sgdk_samples:
4848
cd sgdk && $(MAKE) sample_clean samples
4949

50-
install:
50+
$(GENDEV):
5151
if [ -w /opt ]; then \
5252
mkdir -p $(GENDEV); \
5353
else \
5454
$(SUDO) mkdir -p $@; \
5555
$(SUDO) chown $(ORIG_USER):$(ORIG_USER) $@; \
5656
fi
57+
58+
install: $(GENDEV)
5759
echo "export GENDEV=$(GENDEV)" > ~/.gendev
5860
echo "export PATH=\$$GENDEV/bin:\$$PATH" >> ~/.gendev
5961
#$(SUDO) chmod 777 $@
@@ -80,7 +82,7 @@ dist/gendev_$(VER)_all.deb: pkg_build
8082
cd dist && dpkg-deb -Zxz -z9 --build $(TOPDIR)/pkg_build .
8183

8284
sgdk_build:
83-
cd sgdk && GENDEV=$(BUILDDIR) $(MAKE) install
85+
cd sgdk && GENDEV=$(BUILDDIR) $(MAKE) install
8486

8587
sgdk_clean:
8688
- cd sgdk && $(MAKE) clean
@@ -97,4 +99,3 @@ clean: tools_clean toolchain_clean sgdk_clean
9799
#########################################################
98100
#########################################################
99101
#########################################################
100-

README.md

+18-7
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ BASIC INSTRUCTIONS
1010
The quickest way to get going would be to simply install one of the release
1111
packages for this project. Both a 'txz' and 'deb' package are provided.
1212

13+
To run SGDK or in our case, Gendev, you need following packages:
14+
- texinfo
15+
- openjdk-8-jdk
16+
1317
USAGE
1418
=====
1519

@@ -51,19 +55,26 @@ PROJECT STRUCTURE
5155
TOOLCHAIN BUILDING
5256
==================
5357

54-
The toolchain is now setup with Travis-CI for continuous integration. This
58+
The toolchain is now setup with CircleCI for continuous integration. This
5559
should ease porting and allow better validation of incoming patches.
5660

57-
You may decide to build the full toolchain by making sure you have the texinfo
58-
package installed, and then:
61+
You may decide to build the full toolchain by making sure you have the following
62+
package installed:
63+
- git
64+
- build-essential
65+
- texinfo
66+
- curl
67+
- wget
68+
- unzip
5969

70+
and then:
6071
```
6172
$ cd gendev
6273
$ make
6374
```
6475
... and wait about 45 minutes or so.
6576

66-
The .travis-ci.yml script is a good place to look to see how the individual
77+
The .circleci/config.yml script is a good place to look to see how the individual
6778
build stages are executed.
6879

6980

@@ -85,7 +96,7 @@ maintain.
8596

8697
I am attempting to:
8798

88-
1. Not necessarilly require building everything
99+
1. Not necessarilly require building everything
89100
2. Shorten the build time
90101
3. Hook up with continuous integration tools
91102
4. Reduce the footprint
@@ -98,8 +109,8 @@ NOTES:
98109

99110
* The 32x stuff is currently deprecated. I may create steps to build this
100111
toolchain again in the future.
101-
* All testing is done on 64bit Ubuntu installations, specifically Zesty and
102-
Trusty. Your mileage may vary with other distros.
112+
* All testing is done on 64bit Ubuntu installations, specifically Bionic.
113+
Your mileage may vary with other distros.
103114
* [FreeBSD instructions](doc/FreeBSD.md)
104115
* This project is still way too messy, and hopefully I have time to cleanup
105116
cruft bit by bit.

examples/3d_example/Makefile

-204
This file was deleted.

0 commit comments

Comments
 (0)