X-Git-Url: https://hackdaworld.org/gitweb/?p=hdw-linux%2Fhdw-linux.git;a=blobdiff_plain;f=Config;h=6f73b55531978475b7413dc2adf1d652187fe4f1;hp=9350fe099955eda3a7c3bd989f3e3811daf4f179;hb=4dfe4bc90c6670e31d52449b3294467e879eda28;hpb=173274383447f84f061832b27e433e3c25c9a336 diff --git a/Config b/Config index 9350fe0..6f73b55 100644 --- a/Config +++ b/Config @@ -2,68 +2,134 @@ # # this file contains build options # -# author: hackbard + +### hdw-linux user definable build options ### + +# hdw build dir +# choose the hdw-linux build directory # +# ! make sure it exists and there is enough free space available ! +# +export hdw_build_dir="" -# start +# hdw make package +# create binary packages during build procedure +# +# possible values: +# 0 : just install in hdw build dir +# 1 : create binary tar packages in addition +# +export hdw_make_package="0" -export hdw_version="0.3" # version of hdw-linux +# hdw target +# choose a target (collection of packages) +# +# stable targets: +# toolchain - the toolchain (binutils, gcc, libc) +# default - pure base (including compiler) +# desktop - all packages suited for a desktop environment +# mobile - desktop + notebook specific packages +# router - packages suited for routers +# all-stable - all hdw packages that build properly +# fai-server - all packages to run a fai (see docs) server +# +# develeopment targets: +# all-dev - all existing hdw packages +# fefe - dietlibc based target (this needs major hacking) +# +export hdw_target="all-stable" + +# hdw arch +# choose your target architecture +# +# supported architectures: +# ia32 - the famous x86 architecture +# sparc - 32 bit scalable processor architecture +# sparc64 - 64 bit scalable processor architecture +# ppc - apple, ibm and motorola 32 bit powerpc arch +# ppc64 - apple, ibm and motorola 64 bit powerpc arch +# mips - uprocessor without interlocked pipeline stages +# +export hdw_arch="ia32" -export hdw_target="default" # which target to build - # currently: - # toolchain - just the toolchain (stable) - # default - pure base (stable) - # mobile - my mobile hackstation (stable) - # desktop - all packages (stable) - # router - packages need for routers - # (stable) - # fai-server - packages needed for - # automated install of hdw - # (devel) - # all-dev - all possible packages (devel) - # fefe - dietlibc based target (devel) +# hdw arch opt +# build for a special optimized processor +# see: http://gcc.gnu.org/onlinedocs - hardware models and configurations +# +# examples: +# for ia32 : i386, i586, i686 +# for sparc : v7, v8, supersparc +# for sparc64 : v9, ultrasparc +# for ppc : 603e, 604, 740 +# for ppc64 : power5, powerpc64 +# for mips : r2000, r3000, r4000 +# +export hdw_arch_opt="" -export hdw_arch="ia32" # which architecture to build for - # currently: ia32 - x86 architectures - # sparc - 32bit sparc - # sparc64 - 64bit sparc - # ppc - powerpc's - -export hdw_arch_opt="i686" # choose optimization - # currently: ia32 : i[3-6]86 - # sparc64 : sparc_v9 - # sparc : sparc_v[7-8] - # ppc : "" (still in dev) +# hdw opt +# choose the applied optimization level (default: 3) +# +export hdw_opt="3" -export hdw_use_dietlibc="0" # 0: use gnu c library (glibc) - # 1: use dietlibc +# hdw abort +# continue/abort the distribution build when a package build fails +# +# possible values: +# 0 : continue +# 1 : abort +# +export hdw_abort="1" -export hdw_opt="3" # choose -O optimization value - # default : 3 +# hdw tc name +# specify the name for the toolchain (will appear as a symlink in / ) +# +# default: toolchain +# +export hdw_tc_name="" -export hdw_crossbuild="0" # 0: native build - # 1: crossbuild - warning: devel! +### more advanced hdw build options ### -export hdw_real_build="" # set real build arch in case hdw_crossbuild is - # set to 1 & the scripts guess wrong build arch - # (example: sparc64 with 32 bit userland) +# hdw crossbuild +# choose between native or crossbuild +# +# possible values: +# 0 : native build +# 1 : crossbuild +# +export hdw_crossbuild="0" -export hdw_build_id="$hdw_target-$hdw_arch-$hdw_arch_opt-$hdw_version" # id +# hdw use dietlibc +# choose whether to use the gnu c library or fefe's dietlibc (devel!) +# +# possible values: +# 0 : use gnu c library +# 1 : use dietlibc (warning: devel!) +# +export hdw_use_dietlibc="0" -export hdw_build_dir="" # mountpoint of your partition on which you - # want to build hdw-linux, eg: /mnt/hdw-linux - # make sure it exists and has enough space! +# hdw real build +# set the real build architecture of your host +# +# explanation: uname output may not match available compilers +# +export hdw_real_build="" -export hdw_make_package="0" # 0: just install on $hdw_build_dir - # 1: also make binary tars +# hdw debug buildenv +# print environment variables directly before the build starts +# +# possible values: +# 0 : do not output environment variables +# 1 : print envirenment variables +# +export hdw_debug_buildenv="1" -export hdw_abort="1" # 0: continue building when package build fails - # 1: abort when package build fails +### hdw build specific variables ( do not edit) ### -export hdw_debug_buildenv="1" # 0: do not output environment variables - # 1: print env variables before build +# hdw version +export hdw_version="1.0" -export hdw_stage1_prefix="" # specify the default prefix used in stage 1 - # default: static (historical reason) +# hdw build id +export hdw_build_id="$hdw_target-$hdw_arch-$hdw_arch_opt" +export hdw_build_id="hdw-linux-$hdw_version-$hdw_build_id" # end