##
## Setup file for various definitions
##
architecture	:= $(shell dpkg-architecture -qDEB_HOST_ARCH)
debianversion	:= 2.2
debname		:= potato
arches		:= alpha arm i386 m68k powerpc sparc

##
## Kernel
##
# kver      = main kernel for bootdisks
# altkver   = alternate kernel for more bootdisks (may be empty)
ifeq "$(architecture)" "alpha"
    kver	:= 2.2.19pre13
endif
ifeq "$(architecture)" "arm"
    kver	:= 2.2.19
endif
ifeq "$(architecture)" "i386"
    kver	:= 2.2.19
endif
ifeq "$(architecture)" "m68k"
    kver	:= 2.2.17
endif
ifeq "$(architecture)" "powerpc"
    kver	:= 2.2.19
    pcmcia_kver := 2.2.19-pmac
    apuskver	:= 2.2.10
endif
ifeq "$(architecture)" "sparc"
    kver	:= 2.2.19pre11
endif

# `true' or `false'
official_debian := false


##
## mirroring base and needed packages
##

# set this to 'yes' if you are not an official Debian developer
anonymous_rsync	:= no

# define this to point to a non-standard mirror user and/or site.
mirror_user	:= aph

# rsync site for official Debian developers
mirror_site	:= ftp-master.debian.org
mirror_dir	:= org/ftp.debian.org/ftp/dists/potato/main

# anonymous rsync site for everyone else
ifeq	($(anonymous_rsync), yes)
	mirror_site     := download.sourceforge.net::debian
	mirror_dir	:= dists/potato/main
endif

## 
## file locations
##

# Customize this to refer to the path of the Debian archive.
# It has to be an absolute PATH or else the basedisks.sh script will fail.
ftp_archive	:= /archive/debian

# files from Incoming; note they must be named *_all.deb or *_<arch>.deb
incoming	:= $(ftp_archive)/Incoming

# if you want another place to look for updates, i.e., local packages;
# these files are just *.deb
local_dir	:= $(ftp_archive)/local

# tools, such as rawrite2 (i386 only)
tools_dir	:= $(ftp_archive)/tools

# where the local copy of the archive is located
#   -- use 'make mirror' to mirror it if you don't have it yet
archive		:= $(ftp_archive)/dists/$(debname)/main/binary-$(architecture)



##
## Internationalization
##

# whether to use the language chooser in dbootstrap for kernel flavours that
# support it, `true' or `false'
export USE_LANGUAGE_CHOOSER := false

ifeq ($(USE_LANGUAGE_CHOOSER),true)
ifneq ($(LINGUA),C)
# It looks like this is a MUST
#error Since you are about to use language chooser you must set LINGUA variable to C 
endif
endif

# complete list of all available languages (i.e. available .po files)
# (maybe this could just read from scripts/rootdisk/messages/languages)
langs		:= C cs de eo es fi fr hr hu it ja pl pt ru sk sv tr
# default language
LINGUA		:= C

# languages that use Latin-1 charset with accentuation, tilde, etc
LATIN1		:= pt es
# languages that use Latin-2 charset
LATIN2		:= cs hr hu pl sk
# languages that use Latin-3 charset
LATIN3		:= eo
# languages that use KOI8-R charset
KOI8-R		:= ru

# Use KBD := C for US English keyboard, fr_FR, de_DE, es_ES, etc...
# see utilities/dbootstrap/kbdconfig.[ch] for the complete list of
# available keyboards.
KBD		:= C

##
## alpha-specific configuration (other archs can ignore this)
##

# Milo, APB, UP1000 PALCode and associated tools (alpha only).
alpha_tools_dir	:= $(ftp_archive)/alpha-tools
alpha_apb_dir   := $(alpha_tools_dir)/apb

# MILO executables can be obtained from:
milo_ftp_source := ftp://genie.ucd.ie/pub/alpha/milo/milo-latest
# Just download them directory into $(alpha_tools_dir)
# You will also need the MILO utilities 'miloctl' and 'srmbootfat'
# which are in the MILO source - you don't need to build all of MILO
# to build them.

# APB and PALCode can be obtained from:
apb_http_source := \
http://www.alpha-processor.com/products/downloads/customer_support/UP1000/up1000.zip
# Unfortunately this stuff is in zip format.  Unzip it into
# $(alpha_apb_dir)

# To build the network-bootable (bootp) image, we need an unpacked and built
# Linux source tree in $(linux_source_dir).
# Since kver is not defined at this stage, version has to be hardcoded.  That's
# OK so long as it points to a 2.2.x kernel.
linux_source_dir := /usr/src/linux-2.2.14

# set this to NO (or something else) to build the full set of rescue disks
alpha_reduced_rescue_set := YES

# set this to YES to include MILO on the rescue disks (no-op unless above is NO)
write_milo		 := NO

# set this to NO if you don't want to build MILO disk images
build_milo_disks	 := NO

### end alpha-specific configuration

# Empty string for no, anything else for yes.
CLEAN_RELEASE_DIR_AFTER_TAR =

# export MAINTAINER="1name 2name <XXXX@debian.org>"

# For debuging set these defines
#
#TESTLANG=de
#KVER=2.2.9
#CFLAGS += -DLOG
#CFLAGS += -DTEST

# Local Variables:
# mode: makefile
# End:
