summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile18
-rw-r--r--Makefile.d/addseabios.mk18
-rw-r--r--Makefile.d/build-release.mk17
-rw-r--r--Makefile.d/build.mk20
-rw-r--r--Makefile.d/buildrom-withgrub.mk20
-rw-r--r--Makefile.d/grub-mkstandalone.mk18
-rw-r--r--Makefile.d/modules.mk20
-rw-r--r--Makefile.d/modules/coreboot.mk18
-rw-r--r--Makefile.d/modules/flashrom.mk18
-rw-r--r--Makefile.d/modules/grub.mk18
-rw-r--r--Makefile.d/modules/grubinvaders.mk18
-rw-r--r--Makefile.d/modules/memtest86.mk18
-rw-r--r--Makefile.d/modules/seabios.mk18
-rw-r--r--configure.ac45
14 files changed, 279 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index de9de06..b8fe7a8 100644
--- a/Makefile
+++ b/Makefile
@@ -1,3 +1,20 @@
+#
+# Copyright (C) 2014 Luke Shumaker <lukeshu@sbcglobal.net>
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#
+
-include config.mk
host_arch := $(shell uname -m)
@@ -65,6 +82,7 @@ config.mk: configure config.mk.in
Makefile.d/keymap-list.mk: $(keymapdir)/original/
echo keymaps = $(notdir $(wildcard $</*)) > $@
+
Makefile.d/modules-list.mk: Makefile.d/modules/
echo modules = $(patsubst %.mk,%,$(notdir $(wildcard $</*.mk))) > $@
diff --git a/Makefile.d/addseabios.mk b/Makefile.d/addseabios.mk
index 50c4af6..69364a8 100644
--- a/Makefile.d/addseabios.mk
+++ b/Makefile.d/addseabios.mk
@@ -1,3 +1,21 @@
+#
+# Copyright (C) 2014 Francis Rowe <info@gluglug.org.uk>
+# Copyright (C) 2014 Luke Shumaker <lukeshu@sbcglobal.net>
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#
+
roms/%_with_seabios.rom: roms/%.rom \
src/$(host_arch)/seabios/out/vgabios.bin \
src/$(host_arch)/seabios/out/bios.bin.elf \
diff --git a/Makefile.d/build-release.mk b/Makefile.d/build-release.mk
index b3fa125..d2a0f14 100644
--- a/Makefile.d/build-release.mk
+++ b/Makefile.d/build-release.mk
@@ -1,3 +1,20 @@
+#
+# Copyright (C) 2014 Francis Rowe <info@gluglug.org.uk>
+# Copyright (C) 2014 Luke Shumaker <lukeshu@sbcglobal.net>
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#
dist_utils = \
bucts \
diff --git a/Makefile.d/build.mk b/Makefile.d/build.mk
index 478fdc5..11825c3 100644
--- a/Makefile.d/build.mk
+++ b/Makefile.d/build.mk
@@ -1,3 +1,21 @@
+#
+# Copyright (C) 2014 Francis Rowe <info@gluglug.org.uk>
+# Copyright (C) 2014 Luke Shumaker <lukeshu@sbcglobal.net>
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#
+
define rule_grub_cfg
tmp/grub_%(keymap)_%(romtype).cfg: \
resources/grub/config/extra/common.cfg resources/grub/config/menuentries/common.cfg \
@@ -12,6 +30,6 @@ tmp/grub_%(keymap)_%(romtype).cfg: \
endef
$(eval $(call multiglob,grub_cfg,keymap romtype))
-# % = $(keymap)_$(romtype)
+# % = %(keymap)_%(romtype)
tmp/grub_%_test.cfg: tmp/grub_%.cfg
sed 's/grubtest.cfg/grub.cfg/' < $< > $@
diff --git a/Makefile.d/buildrom-withgrub.mk b/Makefile.d/buildrom-withgrub.mk
index 2a30217..c032f11 100644
--- a/Makefile.d/buildrom-withgrub.mk
+++ b/Makefile.d/buildrom-withgrub.mk
@@ -1,4 +1,22 @@
-# % = $(board)
+#
+# Copyright (C) 2014 Francis Rowe <info@gluglug.org.uk>
+# Copyright (C) 2014 Luke Shumaker <lukeshu@sbcglobal.net>
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#
+
+# % = %(board)
resources/libreboot/config/%_vesafb_config: resources/libreboot/config/%_txtmode_config
sed 's/# CONFIG_FRAMEBUFFER_KEEP_VESA_MODE is not set/CONFIG_FRAMEBUFFER_KEEP_VESA_MODE=y/' < $< > $@
diff --git a/Makefile.d/grub-mkstandalone.mk b/Makefile.d/grub-mkstandalone.mk
index 040d342..e2770b1 100644
--- a/Makefile.d/grub-mkstandalone.mk
+++ b/Makefile.d/grub-mkstandalone.mk
@@ -1,3 +1,21 @@
+#
+# Copyright (C) 2014 Francis Rowe <info@gluglug.org.uk>
+# Copyright (C) 2014 Luke Shumaker <lukeshu@sbcglobal.net>
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#
+
include resources/utilities/grub-assemble/modules.conf
grub_txtmode_memdisk_grafts = \
diff --git a/Makefile.d/modules.mk b/Makefile.d/modules.mk
index 0a541f4..01be29d 100644
--- a/Makefile.d/modules.mk
+++ b/Makefile.d/modules.mk
@@ -1,3 +1,21 @@
+#
+# Copyright (C) 2014 Francis Rowe <info@gluglug.org.uk>
+# Copyright (C) 2014 Luke Shumaker <lukeshu@sbcglobal.net>
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#
+
# Easy names for tmp/builddeps-stamps/%
$(foreach arch,$(arches),$(foreach module,$(modules), builddeps-$(arch)/$(module) )): builddeps-%: PHONY tmp/builddeps-stamps/%
@@ -28,7 +46,7 @@ endef
$(eval $(call multiglob,download,arch module))
# "builddeps" and "cleandeps" rules
-# % = arch/module
+# % = %(arch)/%(module)
tmp/builddeps-stamps/%: src/%
cd $< && { test -f ./Makefile || test -x ./configure || ./autogen.sh; }
cd $< && { test -f ./Makefile || ./configure $($(*F)_configure); }
diff --git a/Makefile.d/modules/coreboot.mk b/Makefile.d/modules/coreboot.mk
index 0101d7a..11177fb 100644
--- a/Makefile.d/modules/coreboot.mk
+++ b/Makefile.d/modules/coreboot.mk
@@ -1,3 +1,21 @@
+#
+# Copyright (C) 2014 Francis Rowe <info@gluglug.org.uk>
+# Copyright (C) 2014 Luke Shumaker <lukeshu@sbcglobal.net>
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#
+
coreboot_source = git+http://review.coreboot.org/coreboot\#commit=c637a887dde1c63bf3863e70cbe19dedf5f6ca02
coreboot_patches = resources/coreboot/patch/DEBLOB
diff --git a/Makefile.d/modules/flashrom.mk b/Makefile.d/modules/flashrom.mk
index d7dcb94..32eedb8 100644
--- a/Makefile.d/modules/flashrom.mk
+++ b/Makefile.d/modules/flashrom.mk
@@ -1,3 +1,21 @@
+#
+# Copyright (C) 2014 Francis Rowe <info@gluglug.org.uk>
+# Copyright (C) 2014 Luke Shumaker <lukeshu@sbcglobal.net>
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#
+
flashrom_source = svn://flashrom.org/flashrom/trunk\#revision=1854
flashrom_patches = $(wildcard resources/flashrom/patch/flashchips_*.c)
diff --git a/Makefile.d/modules/grub.mk b/Makefile.d/modules/grub.mk
index 3f392aa..c7cef90 100644
--- a/Makefile.d/modules/grub.mk
+++ b/Makefile.d/modules/grub.mk
@@ -1,3 +1,21 @@
+#
+# Copyright (C) 2014 Francis Rowe <info@gluglug.org.uk>
+# Copyright (C) 2014 Luke Shumaker <lukeshu@sbcglobal.net>
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#
+
grub_source = git://git.savannah.gnu.org/grub.git\#commit=e2dd6daa8c33e3e7641e442dc269fcca479c6fda
grub_patches = resources/grub/patch/gitdiff
diff --git a/Makefile.d/modules/grubinvaders.mk b/Makefile.d/modules/grubinvaders.mk
index 01d1c0c..dbed74a 100644
--- a/Makefile.d/modules/grubinvaders.mk
+++ b/Makefile.d/modules/grubinvaders.mk
@@ -1,3 +1,21 @@
+#
+# Copyright (C) 2014 Francis Rowe <info@gluglug.org.uk>
+# Copyright (C) 2014 Luke Shumaker <lukeshu@sbcglobal.net>
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#
+
grubinvaders_source = http://www.erikyyy.de/invaders/invaders-1.0.0.tar.gz
grubinvaders_patches = resources/grubinvaders/patch/diff.patch resources/grubinvaders/patch/compile.sh.patch
diff --git a/Makefile.d/modules/memtest86.mk b/Makefile.d/modules/memtest86.mk
index 97a644d..8230fcc 100644
--- a/Makefile.d/modules/memtest86.mk
+++ b/Makefile.d/modules/memtest86.mk
@@ -1,3 +1,21 @@
+#
+# Copyright (C) 2014 Francis Rowe <info@gluglug.org.uk>
+# Copyright (C) 2014 Luke Shumaker <lukeshu@sbcglobal.net>
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#
+
memtest86_source = http://www.memtest.org/download/5.01/memtest86+-5.01.tar.gz
memtest86_patches = resources/memtest86/patch/config.h resources/memtest86/patch/Makefile
diff --git a/Makefile.d/modules/seabios.mk b/Makefile.d/modules/seabios.mk
index 215bae3..e6df5a2 100644
--- a/Makefile.d/modules/seabios.mk
+++ b/Makefile.d/modules/seabios.mk
@@ -1,3 +1,21 @@
+#
+# Copyright (C) 2014 Francis Rowe <info@gluglug.org.uk>
+# Copyright (C) 2014 Luke Shumaker <lukeshu@sbcglobal.net>
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#
+
seabios_source = git://git.seabios.org/seabios.git\#commit=9f505f715793d99235bd6b4afb2ca7b96ba5729b
$(foreach arch,$(arches),tmp/builddeps-stamps/$(arch)/seabios): \
diff --git a/configure.ac b/configure.ac
index 4c48a18..0aae766 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1,6 +1,46 @@
+# Copyright (C) 2014 Luke Shumaker <lukeshu@sbcglobal.net>
+
+## Because of a test borrowed from flashrom's Makefile:
+#
+# Copyright (C) 2005 coresystems GmbH <stepan@coresystems.de>
+# Copyright (C) 2009,2010,2012 Carl-Daniel Hailfinger
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; version 2 of the License.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+
+## Because of a test borrowed from grub's configure.ac:
+#
+# Copyright (C) 2002,2003,2004,2005,2006,2007,2008,2009,2010 Free Software Foundation, Inc.
+#
+# This configure.ac is free software; the author
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
+# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+# PARTICULAR PURPOSE.
+
dnl My goal with this file is to check for all of the dependencies
dnl that aren't in 'base-devel' on Parabola, or 'build-essential' on
dnl Trisquel 7.
+dnl
+dnl That is, it doesn't quite check for everything, but gives the user
+dnl a pretty good idea of "do I have the packages I need to build
+dnl this?"
+dnl
+dnl Also, it sets MAINTAINER_MODE in config.mk, which decides whether
+dnl to build static tools for both architectures.
AC_PREREQ([2.69])
@@ -11,8 +51,6 @@ else
fi
AC_INIT([libreboot], ${PACKAGE_VERSION}, [info@gluglug.org.uk], [], [http://libreboot.org/])
-m4_include(m4/ax_check_compile_flag.m4)
-m4_include(m4/ax_check_link_flag.m4)
missing=''
@@ -45,6 +83,9 @@ if test "x$missing" != x ; then
AC_MSG_ERROR([The following needed programs were not found:$missing])
fi
+m4_include(m4/ax_check_compile_flag.m4)
+m4_include(m4/ax_check_link_flag.m4)
+
dnl This check is from grub's configure.ac
AC_MSG_CHECKING([for unifont])
FONT_SOURCE=