# Common configuration options for all images.
#
# Note that you might find it useful to create a config/local file and
# override settings from this file there instead of modifying this file for
# local setting such as EXTRAFILES. That way you won't accidentially commit
# your local changes.

# set DEBUG to y if you want to get the source for and compile 
# debug versions of the needed udebs
#DEBUG = y

# Default kernel ABI version to use. Append a kernel flavour to
# produce KERNELVERSION.
LINUX_KERNEL_ABI ?= 7.0.13+deb14

# Make sure the mirror is sufficiently up-to-date, by checking minimal
# version (list of package_version):
CHECK_MINIMAL_VERSION ?=

# Always "di" these days
KERNEL_FLAVOUR ?= di

# List here any extra udebs that are not in the list file but that
# should still be included on the system.
EXTRAS ?=

# This variable can be used to copy in additional files from the system
# that is doing the build. Useful if you need to include strace, or gdb,
# etc.
#EXTRAFILES = /usr/bin/strace

# This variable can be used to add a preseed file to the initrd itself.
# It will be loaded by the initrd-preseed udeb.
PRESEED = 

# Normally the sources.list for building d-i will be derived from your
# "normal" sources.list. However, you can specify a mirror here to override
# this. You can use copy:/ to use a local mirror
#MIRROR = http://deb.debian.org/debian

# Options to pass to dpkg when it is unpacking the udebs to create the
# image. None should be needed, but --force-overwrite might need to be
# enabled from time to time if udebs have conflicting files.
DPKG_UNPACK_OPTIONS =

# The codename of the Debian release that should be installed by default.
DEBIAN_RELEASE = forky

# The version (number and codename) of the Debian release targeted by the
# installation images. (Only the codename is used while the version number
# has not yet been determined.)
DEBIAN_VERSION = 14 (forky)
DEBIAN_VERSION ?= forky

# Define here from what release (codename!) components (udebs) should be taken
# to build debian-installer. By default this is set to 'unstable' for building
# daily images. For official builds this is overruled in debian/rules.
USE_UDEBS_FROM ?= unstable

# Archive components from which to fetch debian-installer modules.
UDEB_COMPONENTS ?= main/debian-installer

# The date the installer source was last changed;  we prefer that the
# caller defines a meaningful value, but below is a safe fallback.
SOURCE_DATE_EPOCH ?= $(shell date '+%s')

# The date the installer was built. We use second-level resolution to ensure
# the generated image implicitly contains the SOURCE_DATE_EPOCH value required
# to reproduce the build.
BUILD_DATE ?= $(shell date -u '+%Y%m%d-%H:%M:%S' -d '@$(SOURCE_DATE_EPOCH)')

# Set consistent file creation modes for a reproducible build, taking care
# not to modify existing executable bits on files.
DIR_MODE = 755
FILE_MODE = u+rw,g+r-w,o+r-w

# Produce a beep at boot menu
BOOTMENU_BEEP ?= n

# Filesystem type for the initrd, currently valid values are ext2, cramfs,
# and initramfs.
# NOTE: Your kernel must support this filesystem, not just a module. 
INITRD_FS = initramfs

# What device to write floppies on
FLOPPYDEV = /dev/fd0

# What qemu to use, with any options.
QEMU = qemu

# media where images may be written to (via dd).
WRITE_MEDIA = floppy

# HACK Alert:
# pkg-lists is still sorted by type, so we have to provide
# some mapping MEDIUM -> TYPE
TYPE = $(MEDIUM)

# Used to write a /etc/lsb-release file in the installer initrd
# and to brand the installer menu.
LSB_DISTRIB_ID=Debian
LSB_DISTRIB_DESCRIPTION=Debian $(shell uname -o) installer
# Inlude the build date of the installer in here.
LSB_DISTRIB_RELEASE=$(DEBIAN_VERSION) - installer build $(BUILD_DATE)

# This keyring is only used to verify udeb downloads using apt. Since the
# build process does not run as root, apt cannot read /etc/apt/trusted.gpg.
KEYRING=/usr/share/keyrings/debian-archive-keyring.gpg

# All images that include cdebconf should include symbols needed by these
# plugins.
EXTRAUDEBS=cdebconf-newt-entropy cdebconf-text-entropy

# List of languages only supported with the graphical cdebconf frontend.
GI_LANGS = '(am|bn|dz|ka|gu|hi|km|ml|mr|ne|pa|ta)'
# They should be dropped by default, so this must be set only in targets
# that build graphical installer images.
KEEP_GI_LANGS =
