code:
#!/usr/bin/env bash

#    Three-finger tap: Enable three-finger tap for "middle click" in GNOME.
#    Copyright (C) 2015  Albin Söderqvist and Eemeli Blåsten
#
#    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/>.

echo -e "\nThis program uses synclient to enable three-finger tap"
echo -e "for \`button 2' or \`middle click' in GNOME.\n"
echo -e "Press \`i' to install or any other key to exit.\c"

read -n 1 keypress

if [ "$keypress" = i ]; then
	mkdir -p ~/.config/autostart
	cp three-finger-tap.desktop ~/.config/autostart/three-finger-tap.desktop
	synclient TapButton3=2
	echo -e "\n\nCreated the file"
	echo -e " ~/.config/autostart/three-finger-tap.desktop"
	echo -e "\nInstallation is complete."
        echo -e "To uninstall, simply remove the file shown above."
	exit 0

else
	echo ""
	exit 0
fi


code:
[Desktop Entry]
Type=Application
Exec=synclient TapButton3=2
Hidden=false
NoDisplay=false
X-GNOME-Autostart-enabled=true
Name=Three-finger tap
Comment=Enable three-finger tap for middle click.
Terminal=false

license: mit


code:
Screen, stylus and trackpoint rotation
======================================

This folder contains the following bash script: `rotate.sh`

Purpose
-------

Its purpose is to rotate the screen and/or Wacom stylus and/or
trackpoint orientation for more comfortable drawing and writing on a
touch screen. To use them your system should have the commands
`xrandr` and `xsetwacom` available.

Options
-------

The script accepts three command line options

* `-s` Rotates the screen 90 degrees counterclockwise.

* `-p` Sets the stylus input orientation to the same as the screen
  orientation.

* `-t` Sets the trackpoint orientation to the same as the screen
  orientation.

These can be combined, for example with `-stp` for rotating
everything. The order of the options does not matter. The script will
make sure that the screen is rotated first, and then sets the correct
input device orientations.

Why so many options?
--------------------

Different desktop environments do different things automatically. For
example on the MATE-desktop in Parabola, pressing the bezel rotation
button will always rotate the screen (but not the stylus), even when
not using this script. Hence you could use `rotate.sh -pt` to fix the
pen (stylus) and trackpoint orientations.

On other systems the desktop environment might automatically update
the stylus orientation whenever the screen orientation changes. In
this case it is enough to rotate only the screen by `-s`.

Lastly, if your desktop enviroment does absolutely nothing
automatically, use `-spt`. This might be the case for example when
useing LXDE.

Conditions for redistribution
-----------------------------

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 the file
COPYING for more details.


code:
#!/usr/bin/env bash
#
# rotate.sh: Rotates the screen by 90 degrees counterclockwise and/or
# gives the Wacom stylus input and/or TrackPoint the same orientation.
#
# Copyright (C) 2018  Eemeli Blåsten
#
# 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/>.
#
#
#
# Usage: You can run this file with the command line option -s, -p or
# -t, or any combination, for example -sp, -ps, -tp, -tps. The
# behaviour is as follows.
#
# -s: Rotates the screen by 90 degrees. Depending on your desktop
# environment, the stylus input might get rotated or not.
#
# -p: Makes the stylus have the same rotation as the the screen.
#
# -t: Makes the trackpoint have the same rotation as the the screen.
#
# The script requires xrandr and xsetwacom.

rotScreen=0
rotPen=0
rotTP=0
while getopts ":spt" option; do
  case $option in
    s)
      rotScreen=1
      ;;
    p)
      rotPen=1
      ;;
    t)
      rotTP=1
      ;;
    \?)
      echo "Invalid option: -$OPTARG" >&2
      ;;
  esac
done

# Find the display name. On some kernels it's LVDS1, on some others it's LVDS-1
display="$(xrandr | grep LVDS | sed 's/1.*/1/')"

# Find the line in "xrandr -q --verbose" output that contains current
# screen orientation and "strip" out current orientation.
getScreenOrientation() {
  rotation="$(xrandr -q --verbose | grep "$display" | egrep -o '\) (normal|left|inverted|right) \(' | egrep -o '(normal|left|inverted|right)')"
  echo $rotation
}

# Find the device name from the STYLUS-entry in "xsetwacom list"
device="$(xsetwacom list | grep STYLUS | sed -E "s/( |\t)*id:.*//")"

# Function to set the stylus orientation to the same as the screen
setStylusToScreenOrientation() {
  screenOrientation=$(getScreenOrientation)
  case "$screenOrientation" in
    normal)
      # rotate to the normal
      xsetwacom set "$device" rotate none
      ;;
    left)
      # rotate to left (counterclockwise)
      xsetwacom set "$device" rotate ccw
      ;;
    inverted)
      # rotate to inverted
      xsetwacom set "$device" rotate half
      ;;
    right)
      # rotate to right
      xsetwacom set "$device" rotate cw
      ;;
  esac
}

# Find the trackpoint device number
trackpointNbr="$(xinput list | grep TrackPoint | sed -E "s/^.*id=//" | sed -E "s/( |\t).*$//")"

# Set the trackpoint rotation to the same as the screen rotation
setTrackpointToScreenOrientation() {
  screenOrientation=$(getScreenOrientation)
  case "$screenOrientation" in
    normal)
      # rotate to the normal
      xinput set-prop "$trackpointNbr" "Coordinate Transformation Matrix" 1 0 0 0 1 0 0 0 1
      ;;
    left)
      # rotate to left (counterclockwise)
      xinput set-prop "$trackpointNbr" "Coordinate Transformation Matrix" 0 -1 1 1 0 0 0 0 1
      ;;
    inverted)
      # rotate to inverted
      xinput set-prop "$trackpointNbr" "Coordinate Transformation Matrix" -1 0 1 0 -1 1 0 0 1
      ;;
    right)
      # rotate to right
      xinput set-prop "$trackpointNbr" "Coordinate Transformation Matrix" 0 1 0 -1 0 1 0 0 1
      ;;
  esac
}

# Rotate the screen 90 degrees counterclockwise
rotateScreen() {
  screenOrientation=$(getScreenOrientation)
  case "$screenOrientation" in
    normal)
      # rotate to left (counterclockwise)
      xrandr --output "$display" --rotate left
      ;;
    left)
      # rotate to inverted
      xrandr --output "$display" --rotate inverted
      ;;
    inverted)
      # rotate to right
      xrandr --output "$display" --rotate right
      ;;
    right)
      # rotate to the normal orientation
      xrandr --output "$display" --rotate normal
      ;;
  esac
}

if (($rotScreen)); then
  rotateScreen
fi
if (($rotPen)); then
  setStylusToScreenOrientation
fi
if (($rotTP)); then
  setTrackpointToScreenOrientation
fi

# Make sure the stylus acts on the internal display, not an external display
xsetwacom set "$device" MapToOutput "$display"


code:
#!/usr/bin/env bash

# Copyright (C) 2016 Paul Kocialkowski <contact@paulk.fr>
#
# 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/>.

arguments() {
	local project=$1

	if [[ -z "$project" ]]
	then
		ls -A "$root/$PROJECTS/" | while read project
		do
			printf '%s\n' "$project"
		done
	else
		shift
		project_action_helper "arguments" "$project" "$@"
	fi
}

usage() {
	tool_usage_actions "$tool" "verify"
	tool_usage_arguments "$tool" "$@"
}

update() {
	local tool_path=$(tool_path "$tool")
	local sources_path=$(tool_sources_path "$tool")
	local deblob_check_path="$sources_path/deblob-check"
	local patches_path="$tool_path/$PATCHES/$WILDDOTPATCH"

	wget "https://www.fsfla.org/svn/fsfla/software/linux-libre/scripts/deblob-check" -O "$deblob_check_path"
	perl -0777 -i -pe "s/  blobna \(\) \{[^\}]*\}/  blobna () \{\n    true\n  \}/" "$deblob_check_path"
	perl -0777 -i -pe "s/  blobname \(\) \{[^\}]*\}/  blobname () \{\n    true\n  \}/" "$deblob_check_path"
	chmod a+x "$deblob_check_path"

	cd "$sources_path"

	path_wildcard_expand "$patches_path" | while read patch_path
	do
		if ! [[ -f "$patch_path" ]]
		then
			continue
		fi

		patch -p1 < "$patch_path"
	done
}

verify() {
	local project=$1
	shift

	local project_path=$(project_path "$project")
	local project_sources_path=$(project_sources_path "$project" "$repository" "$@")
	local project_blobs_path=$(project_blobs_path "$project" "$@")
	local project_blobs_ignore_path=$(project_blobs_ignore_path "$project" "$@")
	local project_blobs_discover_path

	local ifs_save
	local file
	local choice

	requirements "sort"

	if [[ -n "$project_blobs_path" ]]
	then
		project_blobs_discover_path="$(dirname $project_blobs_path)/$BLOBS_DISCOVER"
	else
		project_blobs_discover_path="$project_path/$CONFIGS/$BLOBS_DISCOVER"
	fi

	file_exists_check "$project_blobs_discover_path"

	# This it to allow space characters in arguments.
	ifs_save=$IFS
	IFS=$'\n'

	for file in $(cat "$project_blobs_discover_path")
	do
		(
			IFS=$ifs_save

			printf '\n%s\n' "Discovered blob: $file"

			$EDITOR "$project_sources_path/$file"

			printf '%s' "Type \"blob\" to keep or press enter to discard: "
			read choice

			if [[ "$choice" = "blob" ]]
			then
				printf '%s\n' "$file" >> "$project_blobs_path"
			else
				printf '%s\n' "$file" >> "$project_blobs_ignore_path"
			fi

			sed "\|^$file$|d" -i "$project_blobs_discover_path"
		) < /dev/tty
	done

	IFS=$ifs_save

	rm "$project_blobs_discover_path"

	sort -o "$project_blobs_path" "$project_blobs_path"
	sort -o "$project_blobs_ignore_path" "$project_blobs_ignore_path"
}

execute() {
	local project=$1
	shift

	local repository=$project
	local repository_path=$(git_project_repository_path "$repository")

	# This assumes that the repository is the project, which is not always the case.
	project_sources_directory_missing_empty_error "$project" "$repository"

	local sources_path=$(tool_sources_path "$tool")
	local project_path=$(project_path "$project")
	local project_sources_path=$(project_sources_path "$project" "$repository" "$@")
	local project_blobs_path=$(project_blobs_path "$project" "$@")
	local project_blobs_ignore_path=$(project_blobs_ignore_path "$project" "$@")
	local project_blobs_directory_path

	if [[ -n "$project_blobs_path" ]]
	then
		project_blobs_discover_path="$(dirname $project_blobs_path)/$BLOBS_DISCOVER"
	else
		project_blobs_discover_path="$project_path/$CONFIGS/$BLOBS_DISCOVER"
	fi

	local deblob_check_path="$sources_path/deblob-check"

	if git_project_check "$repository"
	then
		git_project_checkout "$project" "$repository" "$@"
		git_clean "$repository_path"
	fi

	printf '\n%s\n' 'Discovering new blobs, this may take a while...'

	files=$(find "$project_sources_path" -type f | grep -vP "\.git/|\.tar|\.patch")

	touch "$project_blobs_discover_path"

	printf '%s\n' "$files" | while read file
	do
		if [[ -n "$project_blobs_ignore_path" ]]
		then
			match=$( grep "$file" "$project_blobs_ignore_path" || true)
			if [[ ! -z "$match" ]]
			then
				continue
			fi
		fi

		match=$("$deblob_check_path" -l -i "" "$file" || true)
		if [[ -n "$match" ]]
		then
			printf '%s\n' "$match" >> "$project_blobs_discover_path"
		fi
	done

	printf '\n%s\n' "Discovered blobs were stored in $project_blobs_discover_path"
}

execute_check() {
	local project=$1
	shift

	local project_path=$(project_path "$project")
	local project_blobs_path=$(project_blobs_path "$project" "$@")
	local project_blobs_ignore_path=$(project_blobs_ignore_path "$project" "$@")
	local project_blobs_discover_path

	if [[ -n "$project_blobs_path" ]]
	then
		project_blobs_discover_path="$(dirname $project_blobs_path)/$BLOBS_DISCOVER"
	else
		project_blobs_discover_path="$project_path/$CONFIGS/$BLOBS_DISCOVER"
	fi

	file_exists_check "$project_blobs_discover_path"
}

path: tools/blobs-discover/blobs-discover


code:
#!/usr/bin/env bash

# Copyright (C) 2016 Paul Kocialkowski <contact@paulk.fr>
#
# 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/>.

usage() {
	tool_usage_actions "$tool" "generate" "sign" "verify"
}

generate() {
	local type=$(boot_keys_type "$@")

	if [[ -z "$type" ]]
	then
		printf 1>&2 '%s\n' 'Unable to determine keys type'
		return 1
	fi

	case $type in
		"cros"*)
			boot_keys_cros "cros-boot-keys" "generate"
			;;
	esac
}

sign() {
	local project=$1

	local prepare_files=$(boot_keys_files "$@")
	local type=$(boot_keys_type "$@")
	local install_path
	local firmware_path
	local kernel_path
	local media

	if [[ -z "$type" ]]
	then
		printf 1>&2 '%s\n' 'Unable to determine keys type'
		return 1
	fi

	printf '%s\n' "$prepare_files" | while read install_path
	do
		case $type in
			"cros-firmware")
				firmware_path="$install_path/$project.$ROM"

				boot_keys_cros "$type-prepare" "sign" "$firmware_path"
				;;
			"cros-kernel")
				media=$(project_action "media" "$@")

				for medium in $media
				do
					kernel_path="$install_path/$KERNEL-$medium.$IMG"

					if [[ -f "$kernel_path" ]]
					then
						boot_keys_cros "$type-prepare" "sign" "$kernel_path"
					else
						boot_keys_cros "$type-prepare" "pack" "$install_path" "$medium"
					fi
				done
				;;
		esac
	done
}

verify() {
	local project=$1

	local prepare_files=$(boot_keys_files "$@")
	local type=$(boot_keys_type "$@")
	local install_path
	local firmware_path
	local kernel_path
	local media

	if [[ -z "$type" ]]
	then
		printf 1>&2 '%s\n' 'Unable to determine keys type'
		return 1
	fi

	printf '%s\n' "$prepare_files" | while read install_path
	do
		case $type in
			"cros-firmware")
				firmware_path="$install_path/$project.$ROM"

				boot_keys_cros "$type-prepare" "verify" "$firmware_path"
				;;
			"cros-kernel")
				media=$(project_action "media" "$@")

				for medium in $media
				do
					kernel_path="$install_path/$KERNEL-$medium.$IMG"

					boot_keys_cros "$type-prepare" "verify" "$kernel_path"
				done
				;;
		esac
	done
}

path: tools/boot-keys/boot-keys


code:
#!/usr/bin/env bash

KERNEL="kernel"
TYPE="type"
ROM="rom"
IMG="img"

boot_keys_cros() {
	local cros_script=$1
	shift

	local vboot_tools_path=$(project_install_path "vboot" "tools")
	local cros_scripts_path=$(project_install_path "cros-scripts")
	local cros_script_path="$cros_scripts_path/$cros_script"

	if ! [[ -x "$cros_script_path" ]]
	then
		printf 1>&2 '%s' "$cros_script script missing from cros-scripts install"
		return 1
	fi

	VBOOT_KEYS_PATH=$VBOOT_KEYS_PATH VBOOT_TOOLS_PATH=$vboot_tools_path $cros_script_path "$@"
}

boot_keys_type() {
	tool_file_contents "$tool" "$CONFIGS" "$TYPE" "$@"
}

boot_keys_files_install_path() {
	local project=$1
	shift

	local helper_arguments
	local argument
	local ifs_save

	helper_arguments=$(project_action_helper "arguments" "$project" "$@")

	if [[ $? -ne 0 ]] || [[ -z "$helper_arguments" ]]
	then
		project_install_path "$project" "$@"
	else
		# This it to allow space characters in arguments.
		ifs_save=$IFS
		IFS=$'\n'

		for argument in $(printf '%s\n' "$helper_arguments")
		do
			(
				IFS=$ifs_save

				# Only a single argument at a time is returned by the helper.
				boot_keys_files_install_path "$project" "$@" "$argument"
			)
		done

		IFS=$ifs_save
	fi
}

boot_keys_files() {
	local project=$1
	shift

	local cros_scripts_path=$(project_install_path "cros-scripts")
	local cros_boot_keys="$cros_scripts_path/cros-boot-keys"

	project_action_arguments_verify_recursive "install" "$project" "$@"

	boot_keys_files_install_path "$project" "$@"
}

path: tools/boot-keys/boot-keys-helper


code: cros-kernel

path: tools/boot-keys/configs/linux/nyan/type


code:
nyan
veyron

path: tools/boot-keys/configs/linux/targets


code:
coreboot
linux
linux-cros

path: tools/boot-keys/configs/targets


code:
Each file in this directory contains a list of dependencies that
should be installed before compiling the program indicated by the
filename's suffix, with a few exceptions; these exceptions being
"deps-documentation", "deps-download", and "deps-generic" for reasons
noted below:

* "deps-documentation" contains a general list of packages that are
  needed to build Libreboot documentation.
* "deps-download" contains packages necessary for downloading either
  source code repositories and/or supporting files from a remote
  source.
* "deps-generic" contains generic dependencies that didn't quite fit
  (i.e. listed) under any of the other dependency lists but are
  necessary nonetheless.

It is expected that these files are updated whenever upstream projects
change dependency requirements.

Any duplications between files are intentional; in order to provide a
clear picture as to which dependencies are needed by individual
programs, any attempt to consolidate these lists is dissuaded.

This README is released under Creative Commons Zero 1.0:
https://creativecommons.org/publicdomain/zero/1.0/


code:
bison
doxygen
flex
gcc
gdb
g++
iasl
make
ncurses
openssl
pkg-config


code:
fontforge
perl-font-ttf
perl-io-string


code:
libftdi
libftdi-compat
libusb
make
pciutils
pkg-config
zlib


code:
autogen
binutils
coreutils
fakeroot
gawk
help2man
libfaketime
m4
texinfo
xz


code:
autoconf
automake
bdf-unifont
bison
device-mapper
flex
freetype2
gcc
gettext
glibc
libpciaccess
libusb
make
pciutils
python
qemu
sdl


code:
gcc-libs-multilib
gcc-multilib
lib32-fakeroot
lib32-glibc
lib32-libltdl
lib32-libpciaccess
lib32-libstdc++5
lib32-openssl
lib32-ncurses


code:
parabola
trisquel7

path: tools/dependencies/configs/targets


code:
gcc
libpci3
libpci-dev
make
zlib1g
zlib1g-dev


code:
bison
doxygen
flex
gcc
gdb
g++
iasl
libncurses5
libncurses5-dev
libssl-dev
make
ncurses-base
pkg-config


code:
libftdi1
libftdi-dev
libpci3
libpci-dev
libusb-1.0-0
libusb-1.0-0-dev
pciutils
pkg-config
zlib1g
zlib1g-dev


code:
autogen
binutils
build-essential
coreutils
fakeroot
gawk
help2man
libfakeroot
libfaketime
libltdl-dev
liblzma-dev
libopts25
libopts25-dev
libtool
m4
texinfo
xz-utils


code:
autoconf
automake
bison
flex
gcc
gettext
libdevmapper-dev
libfreetype6
libfreetype6-dev
libpciaccess0
libpciaccess-dev
libusb-1.0-0
libusb-1.0-0-dev
python
qemu-system-x86
ttf-unifont
xorriso


code:
gcc-multilib
lib32ncurses5
lib32ncurses5-dev
lib32stdc++6
lib32tinfo-dev
lib32tinfo5
lib32z1
lib32z1-dev
libc6-dev-i386
libc6-i386


code:
#!/usr/bin/env bash

# Copyright (C) 2017 Andrew Robbins <contact@andrewrobbins.info>
#
# 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/>.

arguments() {
	tool_arguments_targets "$tool" "$@"
}

usage() {
	tool_usage_actions "$tool" 'print'
	tool_usage_arguments "$tool" "$@"
}

print() {
	local distro="$1"

	local arch="$(uname -i || uname -m)"
	local tool_path="$(tool_path "$tool")"

	if [[ -z "$arch" ]]; then
		printf '\n%s\n' 'uname(1) produced no output.  Exiting' 1>&2

		return 1
	fi

	dependencies_host_supported "$distro" "$arch" || return

	local -a dependencies

	for dependency_file in "$tool_path/$CONFIGS/$distro/$arch"/*; do
		if [[ "${dependency_file##*/}" != 'README' ]]; then
			local -i origin="${#dependencies[@]}"

			mapfile -tO "$origin" dependencies < "$dependency_file"
		else
			continue
		fi
	done

	local -a sorted
	mapfile -t sorted < <(printf '%s\n' "${dependencies[@]}" | sort | uniq)

	dependencies_print "$distro" "${sorted[@]}"
}

path: tools/dependencies/dependencies


code:
#!/usr/bin/env bash

# Copyright (C) 2017 Andrew Robbins <contact@andrewrobbins.info>
#
# 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/>.

dependencies_print() {
	local distro="$1"
	shift

	if [[ "$distro" == 'parabola' ]]; then
		printf '\n%s\n' 'Enable the multilib repository in /etc/pacman.conf'
		printf '\n%s\n' 'Then, run the following command as root:'
		printf '\n%s%s\n' 'pacman -S --needed ' "$*"
	else
		printf '\n%s\n' 'You will need to run the following command as root:'
		printf '\n%s%s\n' 'apt-get -y install ' "$*"
	fi
}

dependencies_host_supported() {
	local distro="$1"
	local arch="$2"

	dependencies_distro_supported "$distro" || return
	dependencies_arch_supported "$distro" "$arch" || return
}

dependencies_arch_supported() {
	local distro="$1"
	local arch="$2"

	local tool_path="$(tool_path "$tool")"
	local distro_dir="$tool_path/$CONFIGS/$distro"

	if ! [[ -d "$distro_dir/$arch" ]]; then
		printf '\n%s\n'  "Architecture \"$arch\" is not supported" 1>&2

		return 1
	fi
}

dependencies_distro_supported() {
	local distro="$1"

	local tool_path="$(tool_path "$tool")"
	local targets_path="$tool_path/$CONFIGS/$TARGETS"

	local -a targets_list
	mapfile -t targets_list < "$targets_path"

	# Necessary to properly format the string for extglob use below
	IFS='|' eval 'local distro_list="${targets_list[*]}"'

	if [[ "$distro" != @($distro_list) ]]; then
		printf '\n%s'  "Argument \"$distro\" is not supported.  " 1>&2
		printf '%s\n'  'Check spelling?' 1>&2

		usage
		return 1
	fi
}

path: tools/dependencies/dependencies-helper


code:
#!/usr/bin/env bash

# Copyright (C) 2016 Paul Kocialkowski <contact@paulk.fr>
#
# 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/>.

usage() {
	tool_usage_actions "$tool" "verify" "sign"
}

verify() {
	release_external_files | while read path
	do
		file_verification_check "$path"
	done
}

sign() {
	release_external_files | while read path
	do
		file_signature_create "$path"
	done
}

path: tools/release-external/release-external


code:
#!/usr/bin/env bash

release_external_files() {
	find "$root/$RELEASE" -type f | grep -vP "\.$DSIG|\.$CHECKSUM"
}


code:
# Copyright (C) 2017 Michael Reed <michael@michaelreed.io>
#
# 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/>.

MD_MAIN != find -L . -name '*.md' -and ! -path '*/news/*'
HTML_MAIN = $(MD_MAIN:.md=.html)

MD_NEWS != cat news/MANIFEST
HTML_NEWS = $(MD_NEWS:.md=.html)
HTML_BARE_NEWS = $(MD_NEWS:.md=.bare.html)

# news/index.html implies the building of $(HTML_BARE_NEWS).
all: $(HTML_MAIN) $(HTML_NEWS) news/index.html

.SUFFIXES: .md .html .bare.html
.md.html:
	./publish.sh $<

.md.bare.html:
	pandoc $(<) > $(<:.md=.bare.html)

# Unlike all the other markdown files, news/index.md does not exist at first:
# it must be generated by index.sh. Also note that index.sh generates the RSS
# feed, which requires the bare HTML versions of all news items.
news/index.md: $(HTML_BARE_NEWS)
	./index.sh

clean:
	rm -f	$(HTML_MAIN) $(HTML_NEWS) $(HTML_BARE_NEWS) \
		news/index.md news/index.html news/index.bare.html \
		feed.xml news/feed.xml

.PHONY: clean

path: www/Makefile


code:
[Update](https://yro.slashdot.org/story/17/07/19/1459244/amd-has-no-plans-to-release-psp-code): unfortunatly AMD has no plans to release the source code and instead trusts third-party "hackers" to audit the "feature", too much pressure from govererment agencies? who knows?

---
title: We call on AMD to release source code and specs for Ryzen platform
...

Recently in the Libreboot project, we've been informed about the new
Ryzen platforms being released and sold by AMD. They are currently
taking input from the community. Here are ways you can contact AMD to
tell them that you demand libre hardware:

-   <https://www.reddit.com/r/Amd/comments/5x4hxu/we_are_amd_creators_of_athlon_radeon_and_other/def5h1b/>
-   <https://twitter.com/amd?lang=en>
-   <https://www.facebook.com/AMD/>
-   <https://community.amd.com/places?filterID=all%7Eobjecttype%7Espace>
-   <https://www.amd.com/en-us/who-we-are/contact> (has contact links
    for multiple countries)

-   **AMD's CEO, Lisa Su, can be contacted directly via email. Tell her
    that you demand libre hardware: <lisa.su@amd.com>**

Libreboot aims to provide fully *free software* initialization firmware
on Intel, AMD, ARM, POWER and RISC-V platforms, and already does so on
some older platforms.

As documented in the [Libreboot FAQ section](../faq.md#amd), AMD is
currently uncooperative in the libre software movement. Specifically, it
releases non-free binary-only firmware for its platforms, along with
tyrant technologies like the [AMD Platform Security
Processor](../faq.md#amdpsp).

We in the Libreboot project call on AMD to release source code and start
cooperating with our upstream, [coreboot](https://coreboot.org/) (and
[librecore](http://librecore.info)) for its new Ryzen platform and
existing Zen platforms. This includes source code for all initialization
firmware (typically referred to as the BIOS or UEFI firmware, by some
members of the community), and in particular, the *AMD Platform Security
Processor*, to allow the free/libre software community to use AMD
hardware that is entirely freedom-respecting. If it's not too much to
ask, we also would like source code and signing keys, including for the
PSP and microcode for the CPU.

We would also like to have board design guides, datasheets and
footprints for CPUs/southbridges and so on.

We especially need the signing keys to be released, for those components
which are signed (PSP, CPU microcode, SMU, etc). This will make
utilising any released source code possible (at present, some components
will not run unless the firmware is signed by a certain signature,
usually under lock and key by the hardware manufacturer).

We in the community need freedom-respecting hardware! We call on AMD to
work with us in the Libreboot, Coreboot and Librecore projects on
bringing about a world where computing technology is no longer under
lock and key from the manufacturer, and instead in the control and
ownership of users.

This has several benefits for AMD. There is currently a huge demand in
the market for libre hardware. At present, the only companies providing
it are ones like libreboot suppliers where systems are sold with entirely free
software, including the boot firmware and operating system, without any signed
firmware for which no keys are available to the public.

The problem? These companies are selling much older systems that are
made libre mostly through reverse engineering. At present, the systems
sold by such companies are using older hardware designs from 5-10 years
ago, which means that most people who wish to use all libre software
cannot do so, due to practicality concerns. There are some people who
will use these older systems, but that is not without a huge sacrifice
to their convenience since they end up using older, obsolete hardware
and certain tasks (especially serious software development) becomes
impractical for a lot of people.

AMD has the power to reverse this trend, and there is a potential for a
great amount of profit to be made. The free/libre and open source
software communities would jump head over heels to support such a move.
In other words, AMD can make money from investing in the libre software
community.

There is even a precedent already set. AMD previously did release source
code for all of their newer platforms, to the coreboot project, but then
they stopped. We're calling for this to resume, and to expand further
than before.

Here are some examples of popular campaigns, some of which were
successful:

-   <https://www.crowdsupply.com/sutajio-kosagi/novena>
-   <https://www.crowdsupply.com/eoma68/micro-desktop>
-   <https://www.crowdsupply.com/raptor-computing-systems/talos-secure-workstation>

In all of these cases, the campaigns were popular and this was despite
the hardware either being low-end and unsuitable for most people, or too
expensive for most people to afford.

Then look at the popularity of the Libreboot project.

Just imagine what would happen if AMD started to produce cheap,
affordable libre hardware, to the point where Libreboot could start
supporting newer systems from AMD. The possibilities are endless! People
would jump towards AMD and AMD's sales would go through the roof, while
we in the libre hardware community would finally have systems from a
manufacturer that cares for our freedoms to use our computers without
proprietary software.

Even low-end hardware like the BeagleBone or Raspberry Pi ([which can be
liberated](https://blog.rosenzweig.io/blobless-linux-on-the-pi.md))
shows that libre technology is profitable, and desired by the community.

Then look at the Google Chromebooks. These devices come with coreboot
preinstalled by default! There are even some ARM chromebooks that we
support in Libreboot, which are still produced and sold brand new by
resellers (e.g. Amazon, Newegg, etc). These devices are sold in the
millions! This just shows that it's not only possible, but profitable,
for AMD to start releasing systems which respect the freedom of users.

It's not just commercial benefits that are made possible. There are all
kinds of possibilities for scientific research if systems are libre at
the hardware/firmware level. For instance, at present, universities do
not teach BIOS / boot firmware development in their computer science
courses, because this technology is currently restricted by
manufacturers and available only to a privileged few.

AMD has the power to do the right thing. We in Libreboot call on AMD to
work with us in building a world where users of technology can use their
computers without relying on any proprietary software. We want - need -
a world of highly secure, libre, owner-controlled hardware, from
companies that care about software freedom.

We in the Libreboot project are available to contact, using the details
on the homepage. We look forward to working with AMD :)


code:
Attribution-ShareAlike 4.0 International

=======================================================================

Creative Commons Corporation ("Creative Commons") is not a law firm and
does not provide legal services or legal advice. Distribution of
Creative Commons public licenses does not create a lawyer-client or
other relationship. Creative Commons makes its licenses and related
information available on an "as-is" basis. Creative Commons gives no
warranties regarding its licenses, any material licensed under their
terms and conditions, or any related information. Creative Commons
disclaims all liability for damages resulting from their use to the
fullest extent possible.

Using Creative Commons Public Licenses

Creative Commons public licenses provide a standard set of terms and
conditions that creators and other rights holders may use to share
original works of authorship and other material subject to copyright
and certain other rights specified in the public license below. The
following considerations are for informational purposes only, are not
exhaustive, and do not form part of our licenses.

     Considerations for licensors: Our public licenses are
     intended for use by those authorized to give the public
     permission to use material in ways otherwise restricted by
     copyright and certain other rights. Our licenses are
     irrevocable. Licensors should read and understand the terms
     and conditions of the license they choose before applying it.
     Licensors should also secure all rights necessary before
     applying our licenses so that the public can reuse the
     material as expected. Licensors should clearly mark any
     material not subject to the license. This includes other CC-
     licensed material, or material used under an exception or
     limitation to copyright. More considerations for licensors:
	wiki.creativecommons.org/Considerations_for_licensors

     Considerations for the public: By using one of our public
     licenses, a licensor grants the public permission to use the
     licensed material under specified terms and conditions. If
     the licensor's permission is not necessary for any reason--for
     example, because of any applicable exception or limitation to
     copyright--then that use is not regulated by the license. Our
     licenses grant only permissions under copyright and certain
     other rights that a licensor has authority to grant. Use of
     the licensed material may still be restricted for other
     reasons, including because others have copyright or other
     rights in the material. A licensor may make special requests,
     such as asking that all changes be marked or described.
     Although not required by our licenses, you are encouraged to
     respect those requests where reasonable. More_considerations
     for the public:
	wiki.creativecommons.org/Considerations_for_licensees

=======================================================================

Creative Commons Attribution-ShareAlike 4.0 International Public
License

By exercising the Licensed Rights (defined below), You accept and agree
to be bound by the terms and conditions of this Creative Commons
Attribution-ShareAlike 4.0 International Public License ("Public
License"). To the extent this Public License may be interpreted as a
contract, You are granted the Licensed Rights in consideration of Your
acceptance of these terms and conditions, and the Licensor grants You
such rights in consideration of benefits the Licensor receives from
making the Licensed Material available under these terms and
conditions.

Section 1 -- Definitions.

  a. Adapted Material means material subject to Copyright and Similar
     Rights that is derived from or based upon the Licensed Material
     and in which the Licensed Material is translated, altered,
     arranged, transformed, or otherwise modified in a manner requiring
     permission under the Copyright and Similar Rights held by the
     Licensor. For purposes of this Public License, where the Licensed
     Material is a musical work, performance, or sound recording,
     Adapted Material is always produced where the Licensed Material is
     synched in timed relation with a moving image.

  b. Adapter's License means the license You apply to Your Copyright
     and Similar Rights in Your contributions to Adapted Material in
     accordance with the terms and conditions of this Public License.

  c. BY-SA Compatible License means a license listed at
     creativecommons.org/compatiblelicenses, approved by Creative
     Commons as essentially the equivalent of this Public License.

  d. Copyright and Similar Rights means copyright and/or similar rights
     closely related to copyright including, without limitation,
     performance, broadcast, sound recording, and Sui Generis Database
     Rights, without regard to how the rights are labeled or
     categorized. For purposes of this Public License, the rights
     specified in Section 2(b)(1)-(2) are not Copyright and Similar
     Rights.

  e. Effective Technological Measures means those measures that, in the
     absence of proper authority, may not be circumvented under laws
     fulfilling obligations under Article 11 of the WIPO Copyright
     Treaty adopted on December 20, 1996, and/or similar international
     agreements.

  f. Exceptions and Limitations means fair use, fair dealing, and/or
     any other exception or limitation to Copyright and Similar Rights
     that applies to Your use of the Licensed Material.

  g. License Elements means the license attributes listed in the name
     of a Creative Commons Public License. The License Elements of this
     Public License are Attribution and ShareAlike.

  h. Licensed Material means the artistic or literary work, database,
     or other material to which the Licensor applied this Public
     License.

  i. Licensed Rights means the rights granted to You subject to the
     terms and conditions of this Public License, which are limited to
     all Copyright and Similar Rights that apply to Your use of the
     Licensed Material and that the Licensor has authority to license.

  j. Licensor means the individual(s) or entity(ies) granting rights
     under this Public License.

  k. Share means to provide material to the public by any means or
     process that requires permission under the Licensed Rights, such
     as reproduction, public display, public performance, distribution,
     dissemination, communication, or importation, and to make material
     available to the public including in ways that members of the
     public may access the material from a place and at a time
     individually chosen by them.

  l. Sui Generis Database Rights means rights other than copyright
     resulting from Directive 96/9/EC of the European Parliament and of
     the Council of 11 March 1996 on the legal protection of databases,
     as amended and/or succeeded, as well as other essentially
     equivalent rights anywhere in the world.

  m. You means the individual or entity exercising the Licensed Rights
     under this Public License. Your has a corresponding meaning.

Section 2 -- Scope.

  a. License grant.

       1. Subject to the terms and conditions of this Public License,
          the Licensor hereby grants You a worldwide, royalty-free,
          non-sublicensable, non-exclusive, irrevocable license to
          exercise the Licensed Rights in the Licensed Material to:

            a. reproduce and Share the Licensed Material, in whole or
               in part; and

            b. produce, reproduce, and Share Adapted Material.

       2. Exceptions and Limitations. For the avoidance of doubt, where
          Exceptions and Limitations apply to Your use, this Public
          License does not apply, and You do not need to comply with
          its terms and conditions.

       3. Term. The term of this Public License is specified in Section
          6(a).

       4. Media and formats; technical modifications allowed. The
          Licensor authorizes You to exercise the Licensed Rights in
          all media and formats whether now known or hereafter created,
          and to make technical modifications necessary to do so. The
          Licensor waives and/or agrees not to assert any right or
          authority to forbid You from making technical modifications
          necessary to exercise the Licensed Rights, including
          technical modifications necessary to circumvent Effective
          Technological Measures. For purposes of this Public License,
          simply making modifications authorized by this Section 2(a)
          (4) never produces Adapted Material.

       5. Downstream recipients.

            a. Offer from the Licensor -- Licensed Material. Every
               recipient of the Licensed Material automatically
               receives an offer from the Licensor to exercise the
               Licensed Rights under the terms and conditions of this
               Public License.

            b. Additional offer from the Licensor -- Adapted Material.
               Every recipient of Adapted Material from You
               automatically receives an offer from the Licensor to
               exercise the Licensed Rights in the Adapted Material
               under the conditions of the Adapter's License You apply.

            c. No downstream restrictions. You may not offer or impose
               any additional or different terms or conditions on, or
               apply any Effective Technological Measures to, the
               Licensed Material if doing so restricts exercise of the
               Licensed Rights by any recipient of the Licensed
               Material.

       6. No endorsement. Nothing in this Public License constitutes or
          may be construed as permission to assert or imply that You
          are, or that Your use of the Licensed Material is, connected
          with, or sponsored, endorsed, or granted official status by,
          the Licensor or others designated to receive attribution as
          provided in Section 3(a)(1)(A)(i).

  b. Other rights.

       1. Moral rights, such as the right of integrity, are not
          licensed under this Public License, nor are publicity,
          privacy, and/or other similar personality rights; however, to
          the extent possible, the Licensor waives and/or agrees not to
          assert any such rights held by the Licensor to the limited
          extent necessary to allow You to exercise the Licensed
          Rights, but not otherwise.

       2. Patent and trademark rights are not licensed under this
          Public License.

       3. To the extent possible, the Licensor waives any right to
          collect royalties from You for the exercise of the Licensed
          Rights, whether directly or through a collecting society
          under any voluntary or waivable statutory or compulsory
          licensing scheme. In all other cases the Licensor expressly
          reserves any right to collect such royalties.

Section 3 -- License Conditions.

Your exercise of the Licensed Rights is expressly made subject to the
following conditions.

  a. Attribution.

       1. If You Share the Licensed Material (including in modified
          form), You must:

            a. retain the following if it is supplied by the Licensor
               with the Licensed Material:

                 i. identification of the creator(s) of the Licensed
                    Material and any others designated to receive
                    attribution, in any reasonable manner requested by
                    the Licensor (including by pseudonym if
                    designated);

                ii. a copyright notice;

               iii. a notice that refers to this Public License;

                iv. a notice that refers to the disclaimer of
                    warranties;

                 v. a URI or hyperlink to the Licensed Material to the
                    extent reasonably practicable;

            b. indicate if You modified the Licensed Material and
               retain an indication of any previous modifications; and

            c. indicate the Licensed Material is licensed under this
               Public License, and include the text of, or the URI or
               hyperlink to, this Public License.

       2. You may satisfy the conditions in Section 3(a)(1) in any
          reasonable manner based on the medium, means, and context in
          which You Share the Licensed Material. For example, it may be
          reasonable to satisfy the conditions by providing a URI or
          hyperlink to a resource that includes the required
          information.

       3. If requested by the Licensor, You must remove any of the
          information required by Section 3(a)(1)(A) to the extent
          reasonably practicable.

  b. ShareAlike.

     In addition to the conditions in Section 3(a), if You Share
     Adapted Material You produce, the following conditions also apply.

       1. The Adapter's License You apply must be a Creative Commons
          license with the same License Elements, this version or
          later, or a BY-SA Compatible License.

       2. You must include the text of, or the URI or hyperlink to, the
          Adapter's License You apply. You may satisfy this condition
          in any reasonable manner based on the medium, means, and
          context in which You Share Adapted Material.

       3. You may not offer or impose any additional or different terms
          or conditions on, or apply any Effective Technological
          Measures to, Adapted Material that restrict exercise of the
          rights granted under the Adapter's License You apply.

Section 4 -- Sui Generis Database Rights.

Where the Licensed Rights include Sui Generis Database Rights that
apply to Your use of the Licensed Material:

  a. for the avoidance of doubt, Section 2(a)(1) grants You the right
     to extract, reuse, reproduce, and Share all or a substantial
     portion of the contents of the database;

  b. if You include all or a substantial portion of the database
     contents in a database in which You have Sui Generis Database
     Rights, then the database in which You have Sui Generis Database
     Rights (but not its individual contents) is Adapted Material,

     including for purposes of Section 3(b); and
  c. You must comply with the conditions in Section 3(a) if You Share
     all or a substantial portion of the contents of the database.

For the avoidance of doubt, this Section 4 supplements and does not
replace Your obligations under this Public License where the Licensed
Rights include other Copyright and Similar Rights.

Section 5 -- Disclaimer of Warranties and Limitation of Liability.

  a. UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE
     EXTENT POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS
     AND AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF
     ANY KIND CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS,
     IMPLIED, STATUTORY, OR OTHER. THIS INCLUDES, WITHOUT LIMITATION,
     WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR
     PURPOSE, NON-INFRINGEMENT, ABSENCE OF LATENT OR OTHER DEFECTS,
     ACCURACY, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT
     KNOWN OR DISCOVERABLE. WHERE DISCLAIMERS OF WARRANTIES ARE NOT
     ALLOWED IN FULL OR IN PART, THIS DISCLAIMER MAY NOT APPLY TO YOU.

  b. TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE
     TO YOU ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION,
     NEGLIGENCE) OR OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT,
     INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY, OR OTHER LOSSES,
     COSTS, EXPENSES, OR DAMAGES ARISING OUT OF THIS PUBLIC LICENSE OR
     USE OF THE LICENSED MATERIAL, EVEN IF THE LICENSOR HAS BEEN
     ADVISED OF THE POSSIBILITY OF SUCH LOSSES, COSTS, EXPENSES, OR
     DAMAGES. WHERE A LIMITATION OF LIABILITY IS NOT ALLOWED IN FULL OR
     IN PART, THIS LIMITATION MAY NOT APPLY TO YOU.

  c. The disclaimer of warranties and limitation of liability provided
     above shall be interpreted in a manner that, to the extent
     possible, most closely approximates an absolute disclaimer and
     waiver of all liability.

Section 6 -- Term and Termination.

  a. This Public License applies for the term of the Copyright and
     Similar Rights licensed here. However, if You fail to comply with
     this Public License, then Your rights under this Public License
     terminate automatically.

  b. Where Your right to use the Licensed Material has terminated under
     Section 6(a), it reinstates:

       1. automatically as of the date the violation is cured, provided
          it is cured within 30 days of Your discovery of the
          violation; or

       2. upon express reinstatement by the Licensor.

     For the avoidance of doubt, this Section 6(b) does not affect any
     right the Licensor may have to seek remedies for Your violations
     of this Public License.

  c. For the avoidance of doubt, the Licensor may also offer the
     Licensed Material under separate terms or conditions or stop
     distributing the Licensed Material at any time; however, doing so
     will not terminate this Public License.

  d. Sections 1, 5, 6, 7, and 8 survive termination of this Public
     License.

Section 7 -- Other Terms and Conditions.

  a. The Licensor shall not be bound by any additional or different
     terms or conditions communicated by You unless expressly agreed.

  b. Any arrangements, understandings, or agreements regarding the
     Licensed Material not stated herein are separate from and
     independent of the terms and conditions of this Public License.

Section 8 -- Interpretation.

  a. For the avoidance of doubt, this Public License does not, and
     shall not be interpreted to, reduce, limit, restrict, or impose
     conditions on any use of the Licensed Material that could lawfully
     be made without permission under this Public License.

  b. To the extent possible, if any provision of this Public License is
     deemed unenforceable, it shall be automatically reformed to the
     minimum extent necessary to make it enforceable. If the provision
     cannot be reformed, it shall be severed from this Public License
     without affecting the enforceability of the remaining terms and
     conditions.

  c. No term or condition of this Public License will be waived and no
     failure to comply consented to unless expressly agreed to by the
     Licensor.

  d. Nothing in this Public License constitutes or may be interpreted
     as a limitation upon, or waiver of, any privileges and immunities
     that apply to the Licensor or You, including from the legal
     processes of any jurisdiction or authority.

=======================================================================

Creative Commons is not a party to its public licenses.
Notwithstanding, Creative Commons may elect to apply one of its public
licenses to material it publishes and in those instances will be
considered the "Licensor." Except for the limited purpose of indicating
that material is shared under a Creative Commons public license or as
otherwise permitted by the Creative Commons policies published at
creativecommons.org/policies, Creative Commons does not authorize the
use of the trademark "Creative Commons" or any other trademark or logo
of Creative Commons without its prior written consent including,
without limitation, in connection with any unauthorized modifications
to any of its public licenses or any other arrangements,
understandings, or agreements concerning use of licensed material. For
the avoidance of doubt, this paragraph does not form part of the public
licenses.

Creative Commons may be contacted at creativecommons.org.


code:
% Guidelines for Good Conduct

Our Pledge
----------

In the interest of fostering an open and welcoming environment, we as
contributors and maintainers wish that participation in our project and our
community will be a harassment-free experience for everyone, regardless of age,
body size, disability, ethnicity, gender identity and expression, level of
experience, nationality, personal appearance, race, religion, or sexual identity
and orientation.

Our Standards
-------------

Examples of behavior that contributes to creating a positive environment
include:

* Using welcoming and inclusive language
* Being respectful of differing viewpoints and experiences
* Gracefully accepting constructive criticism
* Focusing on what is best for the community
* Showing empathy towards other community members

Examples of unacceptable behavior by participants include:

* The use of sexualized language or imagery and unwelcome sexual attention or
advances
* Trolling, insulting/derogatory comments, and personal or political attacks
* Public or private harassment
* Publishing others' private information, such as a physical or electronic
  address, without explicit permission
* Other conduct which could reasonably be considered inappropriate in a
  professional setting

Our Responsibilities
--------------------

Project maintainers are responsible for clarifying the standards of acceptable
behavior and are expected to take appropriate and fair corrective action in
response to any instances of unacceptable behavior.

Project maintainers have the right and responsibility to remove, edit, or
reject comments, commits, code, wiki edits, issues, and other contributions
that are not aligned to these conduct guidelines, or to ban temporarily or
permanently any contributor for other behaviors that they deem inappropriate,
threatening, offensive, or harmful.

Scope
-----

These conduct guidelines apply both within project spaces and in public spaces
when an individual is representing the project or its community. Examples of
representing a project or community include using an official project e-mail
address, posting via an official social media account, or acting as an appointed
representative at an online or offline event. Representation of a project may be
further defined and clarified by project maintainers.

Specifically, in normal circumstances, the scope of these guidelines apply
directly to:

* The IRC channel and mailing lists
* The subreddit (r/libreboot on reddit.com)
* The notabug instance (at <https://notabug.org/libreboot>), which also
  includes bug reports and code review
* The contents of any contributions to Libreboot, including commits to the Git
  repository

Other communications channels are unofficial, and not part of the Libreboot
project.

Complaints
----------

All complaints will be reviewed and investigated and will result in a response
that is deemed necessary and appropriate to the circumstances. The project team
is obligated to maintain confidentiality with regard to the reporter of an
incident. Further details of specific enforcement policies may be posted
separately.

Instances of abusive, harassing, or otherwise unacceptable behavior may be
reported by contacting one of the moderators privately via IRC private message
(see list below):

* Andrew Robbins: **and\_who** on Freenode, email
  [andrew@libreboot.org](mailto:andrew@libreboot.org)
* Leah Rowe: **unoccupied** on Freenode, email
  [leah@libreboot.org](mailto:leah@libreboot.org)
* Paul Kocialkowski: **paulk-X** Freenode (X is variable, for this
  person, email [paul@libreboot.org](mailto:paul@libreboot.org)
  check in the channel)
* Swift Geek: **swiftgeek** on Freenode, email
  [swiftgeek@libreboot.org](mailto:swiftgeek@libreboot.org)

If the complaint is for abuses on the Libreboot subreddit at
[r/libreboot](https://www.reddit.com/r/libreboot/) then there are a separate
group of moderators whom you can contact, via private message on the Reddit
website. The subreddit has a public list of moderators on it.

If you deviate from these guidelines, make sure that it is with good reason.
Treatment of each case will be handled pragmatically, on a case-by-case basis.

These are guidelines, and are not set in stone. We, as moderators, may choose
to enforce or not enforce these guidelines, in whole or in part, at our own
discretion. We are, after all, only human ourselves and we sometimes make
mistakes.

Attribution
-----------

These guidelines are adapted from the
[Contributor Covenant](http://contributor-covenant.org/), version 1.4,
available at <http://contributor-covenant.org/version/1/4>

The Contributor Covenant is made available under [Creative Commons Attribution
4.0 International Public License](https://creativecommons.org/licenses/by/4.0/)

External links
--------------

[Contributor Covenant homepage](http://contributor-covenant.org)             --
[version that this is based on](http://contributor-covenant.org/version/1/4/)


code:
---
title: Project contributors
...

If we forgot to mention you here, let us know and we'll add you. (or if
you don't want to be mentioned, let us know and we'll remove your
entry)

Alyssa Rosenzweig
-----------------

Switched the website to use markdown in lieu of handwritten HTML and custom
PHP. Additionally assisted with [booting
Linux](https://blog.rosenzweig.io/blobless-linux-on-the-pi.md) on the Raspberry
Pi without blobs. Current sysadmin and assists with project management.

Andrew Robbins
--------------

Works on large parts of Libreboot's build system and related documentation.
Andrew joined the Libreboot project as part of core management on 4 June 2017.
IRC nick `and_who` on #libreboot IRC.

Arthur Heymans
--------------

Merged a patch from coreboot into libreboot, enabling C3 and C4 power
states to work correctly on GM45 laptops. This was a long-standing issue
before Athur's contribution. Arthur also fixed VRAM size on i945 on
GM45 systems, allowing maximum VRAM allocation for the onboard GPUs on
these systems, another longstanding issue in libreboot. Contact **apvh**
in the \#libreboot IRC channel.

Damien Zammit
-------------

Maintains the Gigabyte GA-G41M-ES2L coreboot port, which is integrated
in libreboot. Also works on other hardware for the benefit of the
libreboot project. Contact **damo22** on the freenode IRC network. This
person's website is [zammit.org](http://www.zammit.org/).

Denis Carikli
-------------

Based on the work done by Peter Stuge, Vladimir Serbineko and others in
the coreboot project, got native graphics initialization to work on the
ThinkPad X60, allowing it to be supported in libreboot. Denis gave
a lot of advice and helped found the libreboot project. Contact
**GNUtoo-irssi** in the \#libreboot IRC channel. Denis is also one of
the founders of the [Replicant](http://replicant.us/) project.

Jeroen Quint
------------

Contributed several fixes to the libreboot documentation, relating to
installing Parabola with full disk encryption on libreboot systems.
Contact **Jezza** in the \#libreboot IRC channel.

Klemens Nanni
-------------

Made many fixes and improvements to the GRUB configuration used in
libreboot, and several tweaks to the build system. Contact **kl3** in
the \#libreboot IRC channel.

Leah Rowe
---------

Founder of the Libreboot project, and a current maintainer.

Leah is also responsible for [vimuser.org](https://vimuser.org/)
(personal website) and [transit.org.uk](https://transit.org.uk/)
(support group for transgender people).

Marcus Moeller
--------------

Made the libreboot logo.

Patrick "P. J." McDermott
---------------------------

Patrick also did a lot of research and wrote the libreboot FAQ section
relating to the [Intel Management Engine](../faq.md#intelme), in addition
to making several improvements to the build system in libreboot.

Paul Kocialkowski
-----------------

Ported the ARM (Rockchip RK3288 SoC) based *Chromebook* laptops to
libreboot. Also one of the main [Replicant](http://www.replicant.us/)
developers. Contact Paul on the libreboot IRC channel by the alias
**paulk** or **paulk-<hostname>** (hostname is variable).

Paul Menzel
-----------

Investigated and fixed a bug in coreboot on the ThinkPad X60/T60 exposed
by Linux kernel 3.12 and up, which caused 3D acceleration to stop
working and video generally to become unstable. Paul worked with Libreboot on
this, sending patches to test periodically until the bug was fixed
in coreboot, and then helped her integrate the fix in libreboot. Contact
**PaulePanter** in the \#libreboot IRC channel.

Peter Stuge
-----------

Helped write the [FAQ section about DMA](../faq.md#hddssd-firmware), and provided
general advice in early days of the project. Contact **CareBear\\** in
the \#coreboot IRC channel on freenode.

Steve Shenton
-------------

Ported the ThinkPad X200 to libreboot, by figuring out how to deactive
the Intel Management Engine on that laptop, and remove the firmware
while still making the system boot correctly. The ThinkPad T400, T500,
R400 and R500 were also ported to libreboot, based on this work.

Swift Geek
----------

Contributed a patch for ich9gen to generate 16MiB descriptors. Contact
**swiftgeek** in the IRC channel.

Timothy Pearson
---------------

Ported the ASUS KGPE-D16 board to coreboot for the company Raptor
Engineering of which Timothy is the CEO.
Timothy maintains this code in coreboot,
helping the project with the libreboot integration for it. This person's
contact details are on the raptor site, or you can ping **tpearson** on
the freenode IRC network.

Vladimir Serbinenko
-------------------

Ported many of the thinkpads supported in libreboot, to coreboot, and
made many fixes in coreboot which benefited the libreboot project.
Contact **phcoder** in the \#coreboot IRC channel on freenode.

Zyliwax
-------------------

Wrote the grubeditor.sh script and associated documentation. Contact
**zyliwax** in the \#libreboot channel.


code:
---
title: Downloads
...

**The latest stable release is 20160907, released on 2016-09-07 and can
be found at [\#https](#https).**

Information about specific changes in each Libreboot release, can be found
at [docs/release.md](docs/release.md)

If you're more interested in libreboot development, go to the
[libreboot development page](../git.md), which also includes links to the
Git repositories.

GPG signing key
---------------

Releases are signed with GPG.

    gpg --recv-keys 0x969A979505E8C5B2

Full key fingerprint: CDC9 CAE3 2CB4 B7FC 84FD  C804 969A 9795 05E8 C5B2

The GPG key can also be downloaded with this exported dump of the
pubkey: [lbkey.asc](lbkey.asc).

    $ sha512sum -c sha512sum.txt
    $ gpg --verify sha512sum.txt.sig

Do you have a mirror?
---------------------

Let us know! We will add it here.

If you wish to create a new mirror of the Libreboot releases, you can use
*rsync*. See: [rsync mirror list](#rsync).

HTTPS mirrors {#https}
-------------

These mirrors are recommended, since they use TLS (https://) encryption.

<https://www.mirrorservice.org/sites/libreboot.org/release/> (University
of Kent, UK)

<https://mirror.math.princeton.edu/pub/libreboot/> (Princeton
university, USA)

<https://mirror.splentity.com/libreboot/> (Splentity Software, USA)

<https://mirror.sugol.org/libreboot/> (sugol.org)
(formerly nephelai.zanity.net/mirror/libreboot)

<https://elgrande74.net/libreboot/> (elgrande74.net, France)

<https://mirror.koddos.net/libreboot/> (koddos.net, Netherlands)

<https://mirror.swordarmor.fr/libreboot/> (swordarmor.fr, France)

<https://mirror-hk.koddos.net/libreboot/> (koddos.net, Hong Kong)

<https://mirror.cyberbits.eu/libreboot/> (cyberbits.eu, France)

RSYNC mirrors {#rsync}
-------------

Useful for mirroring Libreboot's entire set of release archives. You can put
an rsync command into crontab and pull the files into a directory on your
web server.

*It is highly recommended that you use the libreboot.org mirror*, if you wish
to host an official mirror. Otherwise, if you simply want to create your own
local mirror, you should use one of the other mirrors, which sync from
libreboot.org.

<rsync://rsync.libreboot.org/mirrormirror/> (Libreboot project official mirror)

<rsync://rsync.mirrorservice.org/libreboot.org/release/> (University of Kent,
UK)

<rsync://mirror.math.princeton.edu/pub/libreboot/> (Princeton university, USA)

<rsync://ftp.linux.ro/libreboot/> (linux.ro, Romania)

<rsync://mirror.koddos.net/libreboot/> (koddos.net, Netherlands)

<rsync://mirror-hk.koddos.net/libreboot/> (koddos.net, Hong Kong)

Are you running a mirror? Contact the libreboot project, and the link will be
added to this page!

HTTP mirrors {#http}
------------

WARNING: these mirrors are non-HTTPS which means that they are
unencrypted. Your traffic could be subject to interference by
adversaries. Make especially sure to check the GPG signatures, assuming
that you have the right key. Of course, you should do this anyway, even
if using HTTPS.

<http://mirrors.mit.edu/libreboot/> (MIT university, USA)

<http://mirror.linux.ro/libreboot/> (linux.ro, Romania)

<http://mirror.helium.in-berlin.de/libreboot/> (in-berlin.de, Germany)

<http://mirror.cyberbits.eu/libreboot/> (cyberbits.eu, France)

FTP mirrors {#ftp}
-----------

WARNING: FTP is also unencrypted, like HTTP. The same risks are present.

<ftp://ftp.mirrorservice.org/sites/libreboot.org/release/> (University
of Kent, UK)

<ftp://ftp.linux.ro/libreboot/> (linux.ro, Romania)

Statically linked
------------------

Libreboot includes statically linked executables. If you need the
sources for those statically linked dependencies inside the executables,
then you can contact the libreboot project using the details on the home
page; source code will be provided. You can download this source code
from [the "ccsource" directory](ccsource/) on libreboot.org.