2007-07-11 05:04:35 +04:00
|
|
|
# This file defines what ends up on the Haiku image (respectively in the Haiku
|
|
|
|
# installation directory) and it executes the rules building the image
|
|
|
|
# (respectively installing the files in the installation directory).
|
2005-10-29 20:27:43 +04:00
|
|
|
|
2007-07-11 05:04:35 +04:00
|
|
|
local X86_ONLY = ;
|
|
|
|
local PPC_ONLY = ;
|
2008-07-25 01:38:11 +04:00
|
|
|
local M68K_ONLY = ;
|
2006-01-07 23:29:50 +03:00
|
|
|
if $(TARGET_ARCH) = x86 {
|
|
|
|
X86_ONLY = "" ;
|
|
|
|
} else if $(TARGET_ARCH) = ppc {
|
2008-07-25 01:38:11 +04:00
|
|
|
PPC_ONLY = "" ;
|
|
|
|
} else if $(TARGET_ARCH) = m68k {
|
|
|
|
M68K_ONLY = "" ;
|
2006-01-07 23:29:50 +03:00
|
|
|
}
|
|
|
|
|
2007-07-11 05:04:35 +04:00
|
|
|
local GPL_ONLY = ;
|
2009-12-20 16:55:45 +03:00
|
|
|
if $(HAIKU_INCLUDE_GPL_ADDONS) = 1 {
|
2006-05-10 00:05:27 +04:00
|
|
|
GPL_ONLY = "" ;
|
|
|
|
}
|
|
|
|
|
2009-04-30 04:04:08 +04:00
|
|
|
#HACK: remove when old ide code is removed!
|
|
|
|
local ATA_ONLY = ;
|
|
|
|
local IDE_ONLY = ;
|
|
|
|
if $(HAIKU_ATA_STACK) = 1 {
|
|
|
|
ATA_ONLY = "" ;
|
|
|
|
} else {
|
|
|
|
IDE_ONLY = "" ;
|
|
|
|
}
|
|
|
|
|
2011-01-04 22:23:24 +03:00
|
|
|
SYSTEM_BIN = "[" addattr alert arp base64 basename bash bc beep bzip2
|
2010-01-09 02:38:50 +03:00
|
|
|
cal cat catattr checkfs checkitout chgrp chmod chop chown chroot cksum clear
|
2009-09-19 02:23:34 +04:00
|
|
|
clockconfig cmp collectcatkeys comm compress copyattr CortexAddOnHost cp
|
2012-01-24 02:47:46 +04:00
|
|
|
csplit cut date dc dd desklink df diff diff3 dircolors dirname
|
2009-09-19 02:23:34 +04:00
|
|
|
draggers driveinfo dstcheck du dumpcatalog
|
2009-05-02 19:39:49 +04:00
|
|
|
echo eject env error expand expr
|
2009-04-21 20:50:53 +04:00
|
|
|
factor false fdinfo ffm filepanel find finddir fmt fold fortune frcode
|
2009-09-19 02:23:34 +04:00
|
|
|
ftp ftpd funzip fwcontrol
|
2009-05-25 05:21:32 +04:00
|
|
|
gawk $(X86_ONLY)gdb getlimits grep groups gzip gzexe
|
2009-05-21 23:42:01 +04:00
|
|
|
hd head hey hostname
|
2009-09-12 10:11:11 +04:00
|
|
|
id ident ifconfig <bin>install installsound iroster isvolume
|
|
|
|
$(IDE_ONLY)ideinfo $(IDE_ONLY)idestatus
|
2010-04-10 20:28:53 +04:00
|
|
|
join kernel_debugger keymap kill
|
2009-09-19 02:23:34 +04:00
|
|
|
less lessecho lesskey link linkcatkeys listarea listattr listimage listdev
|
2011-07-09 08:29:20 +04:00
|
|
|
listport listres listsem listusb ln locale locate logger login logname ls
|
|
|
|
lsindex
|
2009-09-20 01:14:56 +04:00
|
|
|
mail2mbox makebootable mbox2mail md5sum merge message mimeset mkdos mkdir
|
2010-04-22 00:06:51 +04:00
|
|
|
mkfifo mkfs mkindex mktemp modifiers mount mount_nfs mountvolume mv
|
2010-05-27 18:48:27 +04:00
|
|
|
netcat netstat nl nohup notify nproc
|
2009-04-30 16:56:45 +04:00
|
|
|
od open
|
* Reworked the complete stack to allow more than one address per network
interface - this caused quite a number of changes.
* Network interfaces, and its addresses are now reference counted (not yet
complete, though, InterfaceAddresses need to hold references to their
interface as well).
* There are two known regressions of this commit that I will fix later:
- you cannot remove interfaces anymore
- IPv4 multicast was broken anyway, but now it's disabled, too.
* Moved a device_interfaces.cpp|h out of interfaces.cpp.
* The datalink layer chain is now instantiated per domain per interface,
not just per interface anymore.
* When a buffer reaches the network layer, it has no known interface yet, ie.
the ipv4|6|whatever modules need to set this manually.
* Added more debug output, and some new debugger commands, the control option
is now printed in clear text.
* Added hash_address() function to the address modules. Added "const" to
set_to_defaults() where needed.
* Fixed net_buffer's restore header functions offset use as reported by Atis.
* Improved buffer dump output, use the domain module to print the address if
available.
* Moved net_buffer::type into the union, as it's not needed by the upper layers
anymore.
* Moved IPv6 specific code from {add|remove}_default_route() to where it
belongs, but disabled it for the time being.
* Completely discarded useless ipv4_datagram module.
* Added ping6 to the build.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37794 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-07-28 21:38:23 +04:00
|
|
|
passwd paste patch pathchk pc ping ping6 play playfile playsound playwav
|
2010-11-08 21:34:43 +03:00
|
|
|
pr prio printenv printf profile ps ptx pwd
|
2009-04-30 16:56:45 +04:00
|
|
|
query quit
|
2010-01-21 18:14:20 +03:00
|
|
|
rc readlink ReadOnlyBootPrompt reindex release renice rlog rm rmattr
|
|
|
|
rmindex rmdir roster route
|
2011-12-16 00:44:12 +04:00
|
|
|
safemode screen_blanker screenmode screenshot sdiff setdecor setmime settype
|
2010-12-15 00:07:56 +03:00
|
|
|
setversion setvolume seq sha1sum shar shred shuf shutdown sleep sort
|
2010-07-13 14:51:57 +04:00
|
|
|
spamdbm
|
2010-04-07 08:37:00 +04:00
|
|
|
split stat strace stty su sum sync sysinfo
|
2010-03-13 20:55:41 +03:00
|
|
|
tac tail tcpdump tcptester tee telnet telnetd test timeout top touch
|
2010-01-13 11:30:35 +03:00
|
|
|
tput tr traceroute translate trash true truncate tsort tty
|
2009-05-21 23:42:01 +04:00
|
|
|
uname unchop unexpand unmount uniq unlink unrar unshar unzip unzipsfx
|
|
|
|
<bin>updatedb uptime urlwrapper useradd uudecode uuencode
|
2012-01-15 18:51:33 +04:00
|
|
|
vdir version vmstat
|
|
|
|
waitfor watch wc wget whoami $(X86_ONLY)writembr xargs xres yes
|
2008-09-15 17:46:40 +04:00
|
|
|
zdiff zforce zgrep zip zipcloak <bin>zipgrep zipnote zipsplit zmore znew
|
2005-10-29 20:27:43 +04:00
|
|
|
;
|
|
|
|
|
2011-01-08 16:48:52 +03:00
|
|
|
SYSTEM_APPS = AboutSystem ActivityMonitor $(X86_ONLY)BootManager CharacterMap
|
|
|
|
CodyCam DeskCalc Devices DiskProbe DiskUsage DriveSetup CDPlayer Expander
|
2011-01-04 22:23:24 +03:00
|
|
|
Icon-O-Matic Installer LaunchBox Magnify Mail MediaConverter MediaPlayer
|
|
|
|
MidiPlayer NetworkStatus PackageInstaller People PoorMan PowerStatus
|
|
|
|
ProcessController Screenshot ShowImage SoundRecorder StyledEdit Terminal
|
2011-11-30 04:50:27 +04:00
|
|
|
TextSearch TV WebWatch Workspaces
|
2005-10-29 20:27:43 +04:00
|
|
|
;
|
2009-09-30 01:47:45 +04:00
|
|
|
SYSTEM_PREFERENCES = Appearance Backgrounds CPUFrequency DataTranslations
|
|
|
|
<preference>Deskbar E-mail FileTypes Fonts Keyboard Keymap Locale Media
|
2012-02-02 21:04:11 +04:00
|
|
|
Mouse Network Notifications $(X86_ONLY)3DRendering Printers Screen ScreenSaver
|
2012-01-14 03:42:45 +04:00
|
|
|
Shortcuts Sounds Time Touchpad <preference>Tracker VirtualMemory
|
2009-09-04 14:50:38 +04:00
|
|
|
;
|
2012-01-14 03:42:45 +04:00
|
|
|
SYSTEM_DEMOS = BSnow Chart Clock Cortex FontDemo $(X86_ONLY)GLTeapot
|
|
|
|
$(HAIKU_INCLUDE_TRADEMARKS)$(X86_ONLY)Haiku3d Mandelbrot OverlayImage Pairs
|
|
|
|
Playground Pulse Sudoku
|
2006-10-24 17:54:53 +04:00
|
|
|
;
|
2009-10-12 01:06:59 +04:00
|
|
|
SYSTEM_LIBS =
|
|
|
|
libbe.so libbsd.so libbnetapi.so
|
|
|
|
libdebug.so libdevice.so
|
2010-01-31 23:53:29 +03:00
|
|
|
libfreetype.so
|
2012-01-14 03:42:45 +04:00
|
|
|
libgame.so $(X86_ONLY)libGL.so libgnu.so
|
2009-10-12 01:06:59 +04:00
|
|
|
libjpeg.so
|
2010-01-31 23:53:29 +03:00
|
|
|
liblocale.so
|
2009-10-12 01:06:59 +04:00
|
|
|
libmail.so libmedia.so libmidi.so libmidi2.so
|
|
|
|
libnetwork.so
|
|
|
|
libpng.so
|
2010-07-24 03:13:00 +04:00
|
|
|
<revisioned>libroot.so libroot-addon-icu.so
|
2009-10-12 01:06:59 +04:00
|
|
|
libscreensaver.so
|
2010-03-14 17:13:12 +03:00
|
|
|
libtextencoding.so libtiff.so libtracker.so libtranslation.so
|
2009-08-21 06:17:42 +04:00
|
|
|
libz.so
|
2010-01-28 02:13:49 +03:00
|
|
|
$(HAIKU_SHARED_LIBSTDC++) $(HAIKU_SHARED_LIBSUPC++)
|
|
|
|
;
|
|
|
|
PRIVATE_SYSTEM_LIBS =
|
2011-02-10 02:25:11 +03:00
|
|
|
libalm.so
|
2010-01-31 23:53:29 +03:00
|
|
|
libfluidsynth.so
|
|
|
|
libilmimf.so
|
2010-10-04 23:32:35 +04:00
|
|
|
liblpsolve55.so
|
2005-10-29 20:27:43 +04:00
|
|
|
;
|
2009-08-14 21:55:28 +04:00
|
|
|
SYSTEM_SERVERS = app_server cddb_daemon debug_server input_server mail_daemon
|
2009-10-13 11:17:34 +04:00
|
|
|
media_addon_server media_server midi_server mount_server net_server
|
2011-10-29 02:07:04 +04:00
|
|
|
notification_server power_daemon print_server print_addon_server registrar syslog_daemon
|
2005-10-29 20:27:43 +04:00
|
|
|
;
|
|
|
|
|
2009-04-03 13:02:44 +04:00
|
|
|
SYSTEM_NETWORK_DEVICES = ethernet loopback ;
|
2011-07-06 20:51:01 +04:00
|
|
|
SYSTEM_NETWORK_DATALINK_PROTOCOLS = ethernet_frame <module>arp loopback_frame
|
|
|
|
ipv6_datagram ;
|
2009-04-03 13:02:44 +04:00
|
|
|
#SYSTEM_NETWORK_PPP = ipcp modem pap pppoe ;
|
2011-07-06 20:51:01 +04:00
|
|
|
SYSTEM_NETWORK_PROTOCOLS = ipv4 tcp udp icmp unix icmp6 ipv6 ;
|
2005-10-29 20:27:43 +04:00
|
|
|
|
2009-04-03 13:02:44 +04:00
|
|
|
SYSTEM_ADD_ONS_ACCELERANTS = $(X86_ONLY)radeon.accelerant
|
|
|
|
$(X86_ONLY)nvidia.accelerant $(X86_ONLY)matrox.accelerant
|
|
|
|
$(X86_ONLY)neomagic.accelerant $(X86_ONLY)intel_extreme.accelerant
|
|
|
|
$(X86_ONLY)s3.accelerant $(X86_ONLY)vesa.accelerant
|
2009-06-05 06:50:25 +04:00
|
|
|
$(X86_ONLY)ati.accelerant
|
2010-06-29 00:43:37 +04:00
|
|
|
$(X86_ONLY)3dfx.accelerant
|
2011-10-20 18:22:30 +04:00
|
|
|
$(X86_ONLY)radeon_hd.accelerant
|
2008-03-28 12:24:29 +03:00
|
|
|
#$(X86_ONLY)via.accelerant
|
2007-03-28 20:39:29 +04:00
|
|
|
#$(X86_ONLY)vmware.accelerant
|
2005-10-29 20:27:43 +04:00
|
|
|
;
|
2009-04-03 13:02:44 +04:00
|
|
|
SYSTEM_ADD_ONS_TRANSLATORS = BMPTranslator EXRTranslator GIFTranslator
|
2010-03-29 04:30:07 +04:00
|
|
|
HVIFTranslator ICOTranslator JPEGTranslator JPEG2000Translator
|
2009-10-12 01:06:59 +04:00
|
|
|
PCXTranslator PNGTranslator PPMTranslator
|
2009-04-03 13:02:44 +04:00
|
|
|
RAWTranslator RTF-Translator SGITranslator STXTTranslator TGATranslator
|
2010-11-19 18:45:37 +03:00
|
|
|
TIFFTranslator WebPTranslator WonderBrushTranslator
|
2005-10-29 20:27:43 +04:00
|
|
|
;
|
2009-09-19 02:23:34 +04:00
|
|
|
SYSTEM_ADD_ONS_LOCALE_CATALOGS = <catalog-addon>zeta <catalog-addon>plaintext ;
|
2010-01-13 11:30:35 +03:00
|
|
|
SYSTEM_ADD_ONS_MEDIA = cortex_audioadapter.media_addon
|
|
|
|
cortex_flanger.media_addon
|
2008-03-30 05:41:10 +04:00
|
|
|
dvb.media_addon
|
2008-03-19 19:19:47 +03:00
|
|
|
hmulti_audio.media_addon
|
|
|
|
mixer.media_addon
|
2007-11-25 21:15:43 +03:00
|
|
|
opensound.media_addon
|
2008-03-30 05:41:10 +04:00
|
|
|
tone_producer_demo.media_addon
|
2008-03-10 23:38:54 +03:00
|
|
|
usb_webcam.media_addon
|
|
|
|
video_producer_demo.media_addon
|
|
|
|
video_window_demo.media_addon
|
2008-10-11 08:52:20 +04:00
|
|
|
firewire_dv.media_addon
|
2008-11-19 01:58:20 +03:00
|
|
|
#legacy.media_addon
|
2005-10-29 20:27:43 +04:00
|
|
|
;
|
2010-09-22 15:10:51 +04:00
|
|
|
SYSTEM_ADD_ONS_MEDIA_PLUGINS = $(X86_ONLY)ffmpeg raw_decoder ;
|
2010-11-19 18:45:37 +03:00
|
|
|
SYSTEM_ADD_ONS_PRINT =
|
|
|
|
Canon\ LIPS3\ Compatible
|
2010-10-16 23:56:34 +04:00
|
|
|
Canon\ LIPS4\ Compatible
|
2010-10-30 22:05:09 +04:00
|
|
|
Gutenprint
|
2010-10-16 23:56:34 +04:00
|
|
|
PCL5\ Compatible
|
|
|
|
PCL6\ Compatible
|
|
|
|
PDF\ Writer
|
|
|
|
PS\ Compatible
|
|
|
|
Preview
|
2006-10-07 23:21:22 +04:00
|
|
|
;
|
2011-05-29 22:02:21 +04:00
|
|
|
SYSTEM_ADD_ONS_PRINT_TRANSPORT = HP\ JetDirect IPP LPR
|
2011-05-16 18:50:26 +04:00
|
|
|
# Parallel\ Port
|
2007-03-28 20:39:29 +04:00
|
|
|
Print\ To\ File Serial\ Port USB\ Port
|
2006-10-07 23:21:22 +04:00
|
|
|
;
|
2012-01-14 03:42:45 +04:00
|
|
|
SYSTEM_ADD_ONS_SCREENSAVERS = Butterfly DebugNow $(X86_ONLY)Flurry
|
2011-01-04 09:20:44 +03:00
|
|
|
$(HAIKU_INCLUDE_TRADEMARKS)Haiku Icons IFS Leaves Message Spider ;
|
2011-01-23 21:47:57 +03:00
|
|
|
SYSTEM_ADD_ONS_DRIVERS_AUDIO = auich auvia echo3g emuxki hda sis7018 ;
|
|
|
|
SYSTEM_ADD_ONS_DRIVERS_AUDIO_OLD = ; #cmedia usb_audio ;
|
2009-04-03 13:02:44 +04:00
|
|
|
SYSTEM_ADD_ONS_DRIVERS_GRAPHICS = $(X86_ONLY)radeon $(X86_ONLY)nvidia
|
2007-06-21 14:14:11 +04:00
|
|
|
$(X86_ONLY)neomagic $(X86_ONLY)matrox $(X86_ONLY)intel_extreme
|
2008-06-11 01:53:00 +04:00
|
|
|
$(X86_ONLY)s3 $(X86_ONLY)vesa #$(X86_ONLY)via #$(X86_ONLY)vmware
|
2011-10-20 18:22:30 +04:00
|
|
|
$(X86_ONLY)ati $(X86_ONLY)3dfx $(X86_ONLY)radeon_hd
|
2005-10-29 20:27:43 +04:00
|
|
|
;
|
2009-06-30 23:07:26 +04:00
|
|
|
SYSTEM_ADD_ONS_DRIVERS_MIDI = emuxki usb_midi ;
|
2010-04-20 22:44:54 +04:00
|
|
|
SYSTEM_ADD_ONS_DRIVERS_NET = $(X86_ONLY)3com $(X86_ONLY)atheros813x
|
|
|
|
$(X86_ONLY)ar81xx $(X86_ONLY)attansic_l1 $(X86_ONLY)attansic_l2
|
2011-07-09 03:00:38 +04:00
|
|
|
$(X86_ONLY)broadcom440x $(X86_ONLY)broadcom570x $(X86_ONLY)dec21xxx etherpci
|
2010-04-20 22:44:54 +04:00
|
|
|
$(X86_ONLY)ipro100 $(X86_ONLY)ipro1000 $(X86_ONLY)jmicron2x0
|
2011-06-24 19:37:51 +04:00
|
|
|
$(X86_ONLY)marvell_yukon $(X86_ONLY)nforce $(X86_ONLY)pcnet pegasus
|
2012-01-27 15:58:17 +04:00
|
|
|
$(X86_ONLY)rtl8139 $(X86_ONLY)rtl81xx $(X86_ONLY)sis19x sis900
|
2011-09-13 00:34:19 +04:00
|
|
|
$(X86_ONLY)syskonnect usb_davicom usb_asix usb_ecm $(X86_ONLY)via_rhine
|
2010-04-20 22:44:54 +04:00
|
|
|
$(X86_ONLY)vt612x wb840
|
2009-12-15 23:46:49 +03:00
|
|
|
|
2010-01-16 19:25:11 +03:00
|
|
|
# WLAN drivers
|
2010-03-01 03:43:13 +03:00
|
|
|
$(X86_ONLY)aironetwifi $(X86_ONLY)atheroswifi $(X86_ONLY)broadcom43xx
|
|
|
|
$(X86_ONLY)ipw2100 $(X86_ONLY)iprowifi2200 $(X86_ONLY)iprowifi3945
|
|
|
|
$(X86_ONLY)iprowifi4965 $(X86_ONLY)marvell88w8363 $(X86_ONLY)marvell88w8335
|
2010-10-24 00:34:26 +04:00
|
|
|
$(X86_ONLY)ralink2860 $(X86_ONLY)ralinkwifi $(X86_ONLY)wavelanwifi
|
2011-03-07 00:38:00 +03:00
|
|
|
|
2011-11-03 07:13:11 +04:00
|
|
|
# WWAN drivers
|
|
|
|
#$(GPL_ONLY)usb_beceemwmx
|
2005-10-29 20:27:43 +04:00
|
|
|
;
|
2011-10-29 02:07:04 +04:00
|
|
|
SYSTEM_ADD_ONS_DRIVERS_POWER = $(X86_ONLY)acpi_button ;
|
2009-04-30 19:45:19 +04:00
|
|
|
SYSTEM_ADD_ONS_BUS_MANAGERS = $(ATA_ONLY)ata pci $(X86_ONLY)ps2 $(X86_ONLY)isa
|
|
|
|
$(IDE_ONLY)ide scsi config_manager agp_gart usb firewire $(X86_ONLY)acpi
|
2006-05-02 23:10:10 +04:00
|
|
|
;
|
2011-02-28 22:47:38 +03:00
|
|
|
SYSTEM_ADD_ONS_FILE_SYSTEMS = bfs btrfs cdda exfat ext2 fat iso9660 nfs
|
2011-01-27 00:50:39 +03:00
|
|
|
attribute_overlay write_overlay ntfs reiserfs udf googlefs ;
|
2005-10-29 20:27:43 +04:00
|
|
|
|
2010-03-01 02:57:28 +03:00
|
|
|
# wifi firmware
|
|
|
|
for driver in $(SYSTEM_ADD_ONS_DRIVERS_NET) {
|
|
|
|
local package = [ on $(driver) return $(HAIKU_WIFI_FIRMWARE_PACKAGE) ] ;
|
|
|
|
local archive = [ on $(driver) return $(HAIKU_WIFI_FIRMWARE_ARCHIVE) ] ;
|
2010-03-03 20:23:06 +03:00
|
|
|
local extract = [ on $(driver) return $(HAIKU_WIFI_FIRMWARE_DO_EXTRACT) ] ;
|
2010-03-01 02:57:28 +03:00
|
|
|
if $(archive) {
|
2010-04-20 22:44:54 +04:00
|
|
|
AddWifiFirmwareToHaikuImage $(driver) : $(package) : $(archive)
|
2010-03-03 20:23:06 +03:00
|
|
|
: $(extract) ;
|
2010-03-01 02:57:28 +03:00
|
|
|
}
|
2010-09-20 02:02:21 +04:00
|
|
|
local packages = [ on $(driver) return $(HAIKU_WIFI_FIRMWARE_PACKAGES) ] ;
|
|
|
|
local archives = [ on $(driver) return $(HAIKU_WIFI_FIRMWARE_ARCHIVES) ] ;
|
|
|
|
for archive in $(archives) {
|
|
|
|
AddWifiFirmwareToHaikuImage $(driver) : $(packages[1]) : $(archive)
|
|
|
|
: $(extract) ;
|
|
|
|
packages = $(packages[2-]) ;
|
|
|
|
}
|
2010-03-01 02:57:28 +03:00
|
|
|
}
|
2005-10-29 20:27:43 +04:00
|
|
|
|
2010-03-03 20:23:06 +03:00
|
|
|
|
2005-10-29 20:27:43 +04:00
|
|
|
# modules
|
2009-04-03 13:02:44 +04:00
|
|
|
AddFilesToHaikuImage system add-ons kernel bus_managers
|
|
|
|
: $(SYSTEM_ADD_ONS_BUS_MANAGERS) ;
|
|
|
|
AddFilesToHaikuImage system add-ons kernel busses agp_gart
|
2008-02-05 15:36:18 +03:00
|
|
|
: $(X86_ONLY)<agp_gart>intel ;
|
2009-05-10 13:22:35 +04:00
|
|
|
|
|
|
|
if $(HAIKU_ATA_STACK) = 1 {
|
|
|
|
AddFilesToHaikuImage system add-ons kernel busses ata
|
|
|
|
: generic_ide_pci it8211 legacy_sata silicon_image_3112
|
|
|
|
$(X86_ONLY)ide_isa ;
|
|
|
|
} else {
|
|
|
|
AddFilesToHaikuImage system add-ons kernel busses ide
|
|
|
|
: generic_ide_pci it8211 legacy_sata silicon_image_3112
|
|
|
|
$(X86_ONLY)ide_isa ;
|
|
|
|
}
|
|
|
|
|
2009-04-03 13:02:44 +04:00
|
|
|
AddFilesToHaikuImage system add-ons kernel busses scsi
|
2007-08-24 03:29:08 +04:00
|
|
|
: ahci ;
|
2009-04-03 13:02:44 +04:00
|
|
|
AddFilesToHaikuImage system add-ons kernel busses usb
|
2008-05-20 00:41:58 +04:00
|
|
|
: <usb>uhci <usb>ohci <usb>ehci ;
|
2009-04-03 13:02:44 +04:00
|
|
|
AddFilesToHaikuImage system add-ons kernel console : vga_text ;
|
|
|
|
AddFilesToHaikuImage system add-ons kernel debugger
|
2011-10-30 18:07:57 +04:00
|
|
|
: <kdebug>demangle $(X86_ONLY)<kdebug>disasm <kdebug>hangman
|
2009-06-04 05:47:05 +04:00
|
|
|
<kdebug>invalidate_on_exit <kdebug>usb_keyboard <kdebug>run_on_exit ;
|
2009-04-03 13:02:44 +04:00
|
|
|
AddFilesToHaikuImage system add-ons kernel file_systems
|
|
|
|
: $(SYSTEM_ADD_ONS_FILE_SYSTEMS) ;
|
|
|
|
AddFilesToHaikuImage system add-ons kernel generic
|
2009-04-30 19:45:19 +04:00
|
|
|
: $(ATA_ONLY)ata_adapter dpc $(IDE_ONLY)ide_adapter locked_pool mpu401
|
2011-06-14 01:35:52 +04:00
|
|
|
scsi_periph <module>tty ;
|
2009-04-03 13:02:44 +04:00
|
|
|
AddFilesToHaikuImage system add-ons kernel partitioning_systems
|
2009-07-23 16:10:09 +04:00
|
|
|
: amiga_rdb apple efi_gpt intel session ;
|
2009-04-03 13:02:44 +04:00
|
|
|
AddFilesToHaikuImage system add-ons kernel interrupt_controllers
|
2006-02-07 05:42:38 +03:00
|
|
|
: $(PPC_ONLY)openpic ;
|
2005-10-29 20:27:43 +04:00
|
|
|
|
2005-12-12 20:20:32 +03:00
|
|
|
if $(TARGET_ARCH) = x86 {
|
2009-04-03 13:02:44 +04:00
|
|
|
AddFilesToHaikuImage system add-ons kernel cpu : generic_x86 ;
|
2005-12-12 20:20:32 +03:00
|
|
|
}
|
|
|
|
|
2005-10-29 20:27:43 +04:00
|
|
|
# drivers
|
2008-08-08 15:26:58 +04:00
|
|
|
AddNewDriversToHaikuImage disk scsi : scsi_cd scsi_disk ;
|
2009-04-19 07:31:13 +04:00
|
|
|
AddNewDriversToHaikuImage power : $(X86_ONLY)enhanced_speedstep ;
|
2009-07-21 23:27:29 +04:00
|
|
|
AddNewDriversToHaikuImage power : $(X86_ONLY)acpi_battery ;
|
2008-08-08 15:26:58 +04:00
|
|
|
|
|
|
|
# legacy drivers
|
2010-04-14 17:06:12 +04:00
|
|
|
AddDriversToHaikuImage : console dprintf null
|
2006-01-07 23:29:50 +03:00
|
|
|
random <driver>tty zero ;
|
2009-04-03 13:02:44 +04:00
|
|
|
AddDriversToHaikuImage audio hmulti : $(SYSTEM_ADD_ONS_DRIVERS_AUDIO) ;
|
|
|
|
AddDriversToHaikuImage audio old : $(SYSTEM_ADD_ONS_DRIVERS_AUDIO_OLD) ;
|
|
|
|
AddDriversToHaikuImage midi : $(SYSTEM_ADD_ONS_DRIVERS_MIDI) ;
|
2008-07-06 11:45:09 +04:00
|
|
|
AddDriversToHaikuImage bus : usb_raw fw_raw ;
|
2008-06-21 04:53:51 +04:00
|
|
|
AddDriversToHaikuImage disk floppy : $(X86_ONLY)pc_floppy ;
|
2008-04-03 22:54:10 +04:00
|
|
|
AddDriversToHaikuImage disk usb : usb_disk ;
|
2010-08-28 12:57:29 +04:00
|
|
|
AddDriversToHaikuImage disk usb : usb_floppy ;
|
2009-10-10 19:08:58 +04:00
|
|
|
AddDriversToHaikuImage printer usb : usb_printer ;
|
2007-05-15 21:58:12 +04:00
|
|
|
AddDriversToHaikuImage disk virtual : nbd ;
|
2007-04-16 02:44:37 +04:00
|
|
|
AddDriversToHaikuImage dvb : cx23882 ;
|
2009-04-03 13:02:44 +04:00
|
|
|
AddDriversToHaikuImage graphics : $(SYSTEM_ADD_ONS_DRIVERS_GRAPHICS) ;
|
2008-01-20 23:38:57 +03:00
|
|
|
AddDriversToHaikuImage input : ps2_hid usb_hid wacom ;
|
2010-02-14 22:42:46 +03:00
|
|
|
AddDriversToHaikuImage misc : <driver>poke <driver>mem ;
|
2009-04-03 13:02:44 +04:00
|
|
|
AddDriversToHaikuImage net : $(SYSTEM_ADD_ONS_DRIVERS_NET) ;
|
2011-06-14 01:35:52 +04:00
|
|
|
AddDriversToHaikuImage ports : usb_serial ;
|
2011-10-29 02:07:04 +04:00
|
|
|
AddDriversToHaikuImage power : $(SYSTEM_ADD_ONS_DRIVERS_POWER) ;
|
2005-10-29 20:27:43 +04:00
|
|
|
|
|
|
|
# kernel
|
2009-04-03 13:02:44 +04:00
|
|
|
AddFilesToHaikuImage system : <revisioned>kernel_$(TARGET_ARCH) ;
|
2005-10-29 20:27:43 +04:00
|
|
|
|
|
|
|
# libs
|
2010-01-28 02:13:49 +03:00
|
|
|
AddLibrariesToHaikuHybridImage system lib
|
|
|
|
: $(SYSTEM_LIBS) $(PRIVATE_SYSTEM_LIBS) ;
|
2008-02-06 16:22:14 +03:00
|
|
|
|
2006-10-06 21:20:50 +04:00
|
|
|
# libnetwork.so replaces quite a few libraries
|
2009-04-03 13:02:44 +04:00
|
|
|
SYSTEM_LIBS_LIBNETWORK_ALIASES
|
2008-05-14 03:41:09 +04:00
|
|
|
= libsocket.so libbind.so libnet.so ;
|
2008-02-06 16:22:14 +03:00
|
|
|
|
2009-06-21 14:59:34 +04:00
|
|
|
if $(HAIKU_GCC_VERSION[1]) = 2 {
|
|
|
|
local lib ;
|
|
|
|
for lib in $(SYSTEM_LIBS_LIBNETWORK_ALIASES) {
|
|
|
|
AddSymlinkToHaikuHybridImage system lib : libnetwork.so : $(lib)
|
|
|
|
: : true ;
|
|
|
|
}
|
|
|
|
|
|
|
|
AddSymlinkToHaikuHybridImage system lib : libbnetapi.so : libnetapi.so
|
|
|
|
: : true ;
|
2008-02-06 16:22:14 +03:00
|
|
|
}
|
|
|
|
|
2008-05-14 17:49:48 +04:00
|
|
|
|
2008-07-26 17:26:37 +04:00
|
|
|
# libGL.so has GLU (like BeOS) *and* GLUT API built-in
|
2009-04-03 13:02:44 +04:00
|
|
|
SYSTEM_LIBS_LIBGL_ALIASES
|
2008-07-26 17:26:37 +04:00
|
|
|
= libGLU.so libglut.so ;
|
|
|
|
|
2008-07-29 02:13:34 +04:00
|
|
|
if $(TARGET_ARCH) = x86 {
|
2009-05-27 05:12:34 +04:00
|
|
|
local lib ;
|
|
|
|
for lib in $(SYSTEM_LIBS_LIBGL_ALIASES) {
|
2009-06-21 14:59:34 +04:00
|
|
|
AddSymlinkToHaikuHybridImage system lib : libGL.so : $(lib) : : true ;
|
2009-05-27 05:12:34 +04:00
|
|
|
}
|
2007-07-30 22:43:32 +04:00
|
|
|
}
|
2009-06-19 06:06:30 +04:00
|
|
|
|
2009-06-20 12:44:54 +04:00
|
|
|
SYSTEM_LIBS_ALIASES =
|
|
|
|
$(SYSTEM_LIBS_LIBNETWORK_ALIASES)
|
|
|
|
libnetapi.so
|
|
|
|
$(SYSTEM_LIBS_LIBGL_ALIASES)
|
|
|
|
;
|
2005-10-29 20:27:43 +04:00
|
|
|
|
|
|
|
# servers
|
2009-04-03 13:02:44 +04:00
|
|
|
AddFilesToHaikuImage system servers : $(SYSTEM_SERVERS) ;
|
2005-10-29 20:27:43 +04:00
|
|
|
|
|
|
|
# apps
|
2009-04-03 13:02:44 +04:00
|
|
|
AddFilesToHaikuImage system : runtime_loader Deskbar Tracker ;
|
|
|
|
AddFilesToHaikuImage system bin : $(SYSTEM_BIN) consoled ;
|
|
|
|
AddFilesToHaikuImage system apps : $(SYSTEM_APPS) ;
|
|
|
|
AddFilesToHaikuImage system preferences : $(SYSTEM_PREFERENCES) ;
|
|
|
|
AddFilesToHaikuImage system demos : $(SYSTEM_DEMOS) ;
|
2005-10-29 20:27:43 +04:00
|
|
|
|
2008-04-26 21:41:53 +04:00
|
|
|
SEARCH on which = [ FDirName $(HAIKU_TOP) data bin ] ;
|
2009-04-03 13:02:44 +04:00
|
|
|
AddFilesToHaikuImage system bin : which ;
|
2010-01-13 11:30:35 +03:00
|
|
|
SEARCH on installoptionalpackage = [ FDirName $(HAIKU_TOP) data bin ] ;
|
|
|
|
AddFilesToHaikuImage system bin : installoptionalpackage ;
|
2010-03-01 02:57:28 +03:00
|
|
|
SEARCH on install-wifi-firmwares.sh = [ FDirName $(HAIKU_TOP) data bin ] ;
|
|
|
|
AddFilesToHaikuImage system bin : install-wifi-firmwares.sh ;
|
2011-08-13 06:34:16 +04:00
|
|
|
SEARCH on welcome = [ FDirName $(HAIKU_TOP) data bin ] ;
|
|
|
|
AddFilesToHaikuImage system bin : welcome ;
|
|
|
|
AddSymlinkToHaikuImage home Desktop
|
|
|
|
: /boot/system/bin/welcome : Welcome ;
|
|
|
|
SEARCH on userguide = [ FDirName $(HAIKU_TOP) data bin ] ;
|
|
|
|
AddFilesToHaikuImage system bin : userguide ;
|
|
|
|
AddSymlinkToHaikuImage home Desktop
|
|
|
|
: /boot/system/bin/userguide : User\ Guide ;
|
2008-04-26 21:41:53 +04:00
|
|
|
|
2010-07-11 02:38:47 +04:00
|
|
|
# Add the files to be used by installoptionalpackage.
|
2010-06-24 01:27:45 +04:00
|
|
|
AddDirectoryToHaikuImage common data optional-packages ;
|
2010-07-11 02:38:47 +04:00
|
|
|
local optional-pkg-files = OptionalBuildFeatures OptionalPackageDependencies
|
2010-10-30 11:22:17 +04:00
|
|
|
OptionalPackages OptionalLibPackages ;
|
2010-07-11 02:38:47 +04:00
|
|
|
for name in $(optional-pkg-files) {
|
|
|
|
local file = [ FDirName $(HAIKU_TOP) build jam $(name) ] ;
|
|
|
|
AddFilesToHaikuImage common data optional-packages : $(file) ;
|
|
|
|
}
|
2010-06-24 01:27:45 +04:00
|
|
|
AddInstalledPackagesFileToHaikuImage ;
|
|
|
|
|
2009-04-05 13:14:21 +04:00
|
|
|
AddSymlinkToHaikuImage system bin : bash : sh ;
|
2009-04-24 20:54:36 +04:00
|
|
|
AddSymlinkToHaikuImage system bin : trash : untrash ;
|
2008-03-27 04:02:30 +03:00
|
|
|
|
2005-11-27 01:29:29 +03:00
|
|
|
AddSymlinkToHaikuImage home Desktop : /boot/home : Home ;
|
|
|
|
|
2009-09-20 03:33:20 +04:00
|
|
|
# Mailbox folders and symlink
|
2010-04-27 18:15:21 +04:00
|
|
|
AddDirectoryToHaikuImage home mail draft ;
|
2009-09-20 03:33:20 +04:00
|
|
|
AddDirectoryToHaikuImage home mail in ;
|
|
|
|
AddDirectoryToHaikuImage home mail out ;
|
|
|
|
|
2011-12-01 13:39:32 +04:00
|
|
|
AddSymlinkToHaikuImage home config : settings/deskbar : be ;
|
2007-06-09 16:07:55 +04:00
|
|
|
# Deskbar Application links
|
2011-11-22 05:44:32 +04:00
|
|
|
AddDirectoryToHaikuImage home config settings deskbar Applications ;
|
2009-03-31 19:00:40 +04:00
|
|
|
DESKBAR_APPLICATIONS = ActivityMonitor CharacterMap CodyCam CDPlayer DeskCalc
|
2009-10-18 21:59:07 +04:00
|
|
|
Devices DiskProbe DriveSetup DiskUsage Expander Icon-O-Matic Installer
|
2010-12-05 20:40:50 +03:00
|
|
|
Magnify Mail MediaConverter MediaPlayer MidiPlayer People PoorMan
|
|
|
|
Screenshot SoundRecorder StyledEdit Terminal TV
|
2008-04-18 19:26:39 +04:00
|
|
|
;
|
2009-03-27 14:55:52 +03:00
|
|
|
local linkTarget ;
|
|
|
|
for linkTarget in $(DESKBAR_APPLICATIONS) {
|
2011-11-22 05:44:32 +04:00
|
|
|
AddSymlinkToHaikuImage home config settings deskbar Applications
|
2009-04-03 13:02:44 +04:00
|
|
|
: /boot/system/apps/$(linkTarget) : $(linkTarget) ;
|
2008-04-18 19:26:39 +04:00
|
|
|
}
|
2007-06-09 16:07:55 +04:00
|
|
|
|
2010-01-13 13:49:58 +03:00
|
|
|
# Deskbar Desktop applets links
|
2011-11-22 05:44:32 +04:00
|
|
|
AddDirectoryToHaikuImage home config settings deskbar Desktop\ applets ;
|
2008-04-18 19:26:39 +04:00
|
|
|
DESKBAR_DESKTOP_APPLETS = LaunchBox NetworkStatus PowerStatus ProcessController
|
|
|
|
Workspaces
|
|
|
|
;
|
2009-03-27 14:55:52 +03:00
|
|
|
for linkTarget in $(DESKBAR_DESKTOP_APPLETS) {
|
2011-11-22 05:44:32 +04:00
|
|
|
AddSymlinkToHaikuImage home config settings deskbar Desktop\ applets
|
2009-04-03 13:02:44 +04:00
|
|
|
: /boot/system/apps/$(linkTarget) : $(linkTarget) ;
|
2008-04-18 19:26:39 +04:00
|
|
|
}
|
2007-06-09 16:07:55 +04:00
|
|
|
|
2009-03-27 14:55:52 +03:00
|
|
|
# Deskbar Preferences links
|
2011-11-22 05:44:32 +04:00
|
|
|
AddDirectoryToHaikuImage home config settings deskbar Preferences ;
|
2009-06-08 13:40:58 +04:00
|
|
|
DESKBAR_PREFERENCES = $(SYSTEM_PREFERENCES:B) ;
|
2009-03-27 14:55:52 +03:00
|
|
|
for linkTarget in $(DESKBAR_PREFERENCES) {
|
2011-11-22 05:44:32 +04:00
|
|
|
AddSymlinkToHaikuImage home config settings deskbar Preferences
|
|
|
|
: /boot/system/preferences/$(linkTarget)
|
|
|
|
: $(linkTarget) ;
|
2009-03-27 14:55:52 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
# Deskbar Demo links
|
2011-11-22 05:44:32 +04:00
|
|
|
AddDirectoryToHaikuImage home config settings deskbar Demos ;
|
2009-04-03 13:02:44 +04:00
|
|
|
for linkTarget in $(SYSTEM_DEMOS) {
|
2011-11-22 05:44:32 +04:00
|
|
|
AddSymlinkToHaikuImage home config settings deskbar Demos
|
2009-04-03 13:02:44 +04:00
|
|
|
: /boot/system/demos/$(linkTarget) : $(linkTarget) ;
|
2009-03-27 14:55:52 +03:00
|
|
|
}
|
2005-11-27 01:04:33 +03:00
|
|
|
|
2009-04-03 13:02:44 +04:00
|
|
|
AddSymlinkToHaikuImage system bin : bzip2 : bunzip2 ;
|
|
|
|
AddSymlinkToHaikuImage system bin : less : more ;
|
|
|
|
AddSymlinkToHaikuImage system bin : gzip : gunzip ;
|
|
|
|
AddSymlinkToHaikuImage system bin : gzip : zcat ;
|
|
|
|
AddSymlinkToHaikuImage system bin : zdiff : zcmp ;
|
|
|
|
AddSymlinkToHaikuImage system bin : unzip : zipinfo ;
|
|
|
|
AddSymlinkToHaikuImage system bin : gawk : awk ;
|
|
|
|
AddSymlinkToHaikuImage system bin : grep : egrep ;
|
|
|
|
AddSymlinkToHaikuImage system bin : grep : fgrep ;
|
2005-10-29 20:27:43 +04:00
|
|
|
|
|
|
|
|
|
|
|
# scripts and data files
|
2010-01-13 11:30:35 +03:00
|
|
|
local bootScripts = Bootscript Bootscript.cd SetupEnvironment Netscript
|
|
|
|
InstallerInitScript InstallerFinishScript ;
|
2005-10-29 20:27:43 +04:00
|
|
|
SEARCH on $(bootScripts) = [ FDirName $(HAIKU_TOP) data system boot ] ;
|
2009-04-03 13:02:44 +04:00
|
|
|
AddFilesToHaikuImage system boot : $(bootScripts) ;
|
2005-10-29 20:27:43 +04:00
|
|
|
|
2009-08-20 23:21:18 +04:00
|
|
|
local userBootScripts = UserBootscript UserSetupEnvironment.sample ;
|
2009-03-31 13:21:31 +04:00
|
|
|
SEARCH on $(userBootScripts) = [ FDirName $(HAIKU_TOP) data config boot ] ;
|
|
|
|
AddFilesToHaikuImage home config boot : $(userBootScripts) ;
|
|
|
|
|
2009-08-20 23:21:18 +04:00
|
|
|
# Add boot launch directory
|
|
|
|
AddDirectoryToHaikuImage home config boot launch ;
|
2009-08-20 01:26:36 +04:00
|
|
|
|
2010-07-26 00:34:17 +04:00
|
|
|
local logoArtwork =
|
|
|
|
$(HAIKU_INCLUDE_TRADEMARKS)"HAIKU logo - white on blue - big.png"
|
|
|
|
$(HAIKU_INCLUDE_TRADEMARKS)"HAIKU logo - white on blue - normal.png" ;
|
2006-05-29 18:45:45 +04:00
|
|
|
SEARCH on $(logoArtwork) = [ FDirName $(HAIKU_TOP) data artwork ] ;
|
2009-04-03 13:02:44 +04:00
|
|
|
AddFilesToHaikuImage system data artwork : $(logoArtwork) ;
|
2006-05-29 18:45:45 +04:00
|
|
|
|
2009-04-03 13:02:44 +04:00
|
|
|
AddDirectoryToHaikuImage system data sounds ;
|
2008-05-08 15:17:09 +04:00
|
|
|
|
2009-04-06 22:07:31 +04:00
|
|
|
# Add mail provider infos.
|
2009-10-12 01:06:59 +04:00
|
|
|
AddFilesToHaikuImage home config settings Mail ProviderInfo :
|
2009-09-19 02:23:34 +04:00
|
|
|
$(HAIKU_PROVIDER_INFOS) ;
|
2009-04-06 22:07:31 +04:00
|
|
|
|
2007-08-29 23:31:32 +04:00
|
|
|
# Mail spell check dictionaries
|
|
|
|
local spellFiles = words geekspeak ;
|
|
|
|
spellFiles = $(spellFiles:G=spell) ;
|
|
|
|
SEARCH on $(spellFiles)
|
|
|
|
= [ FDirName $(HAIKU_TOP) src apps mail ] ;
|
2009-11-10 19:29:47 +03:00
|
|
|
AddFilesToHaikuImage system data spell_check word_dictionary : $(spellFiles) ;
|
2007-08-29 23:31:32 +04:00
|
|
|
|
2011-06-20 01:19:36 +04:00
|
|
|
local etcDir = [ FDirName $(HAIKU_TOP) data etc ] ;
|
2011-06-21 22:12:58 +04:00
|
|
|
local etcFiles = inputrc profile ;
|
2005-10-29 20:27:43 +04:00
|
|
|
etcFiles = $(etcFiles:G=etc) ;
|
2011-06-20 01:19:36 +04:00
|
|
|
SEARCH on $(etcFiles) = [ FDirName $(etcDir) ] ;
|
2008-06-19 18:32:25 +04:00
|
|
|
etcFiles += <etc>termcap <etc>sysless <etc>sysless.in ;
|
2009-11-10 17:26:42 +03:00
|
|
|
AddFilesToHaikuImage common etc : $(etcFiles) ;
|
2005-10-29 20:27:43 +04:00
|
|
|
|
2011-06-20 01:19:36 +04:00
|
|
|
local profileFiles = [ Glob $(etcDir)/profile.d : *.sh ] ;
|
|
|
|
profileFiles = $(profileFiles:G=profile-d) ;
|
|
|
|
AddDirectoryToHaikuImage common etc profile.d ;
|
|
|
|
AddFilesToHaikuImage common etc profile.d : $(profileFiles) ;
|
|
|
|
|
2011-06-21 22:12:58 +04:00
|
|
|
#local bashCompletionFiles = [ Glob $(etcDir)/bash_completion.d : * ] ;
|
|
|
|
#local bashCompletionHelperFiles
|
|
|
|
# = [ Glob $(etcDir)/bash_completion.d/helpers : * ] ;
|
|
|
|
#bashCompletionFiles = $(bashCompletionFiles:G=bash-completion) ;
|
|
|
|
#bashCompletionHelperFiles = $(bashCompletionHelperFiles:G=bash-completion-hlp) ;
|
|
|
|
#AddDirectoryToHaikuImage common etc bash_completion.d ;
|
|
|
|
#AddDirectoryToHaikuImage common etc bash_completion.d helpers ;
|
|
|
|
#AddFilesToHaikuImage common etc bash_completion.d : $(bashCompletionFiles) ;
|
|
|
|
#AddFilesToHaikuImage common etc bash_completion.d helpers
|
|
|
|
# : $(bashCompletionHelperFiles) ;
|
2011-06-20 01:19:36 +04:00
|
|
|
|
2009-11-10 16:09:32 +03:00
|
|
|
local fortuneFiles = [ Glob $(HAIKU_TOP)/data/system/data/fortunes
|
|
|
|
: [a-zA-Z0-9]* ] ;
|
|
|
|
fortuneFiles = $(fortuneFiles:G=data!fortunes) ;
|
|
|
|
AddFilesToHaikuImage system data fortunes : $(fortuneFiles) ;
|
2007-01-06 23:52:49 +03:00
|
|
|
|
2009-11-10 15:30:06 +03:00
|
|
|
local fontDir = [ FDirName $(HAIKU_TOP) data system data fonts ] ;
|
2005-10-29 20:27:43 +04:00
|
|
|
local psFonts = [ Glob $(fontDir)/psfonts : *.afm *.pfb ] ;
|
|
|
|
local ttFonts = [ Glob $(fontDir)/ttfonts : *.ttf ] ;
|
2009-11-10 15:30:06 +03:00
|
|
|
AddFilesToHaikuImage system data fonts psfonts : $(psFonts) ;
|
|
|
|
AddFilesToHaikuImage system data fonts ttfonts : $(ttFonts) ;
|
2005-10-29 20:27:43 +04:00
|
|
|
|
2009-04-05 18:55:59 +04:00
|
|
|
local cannaDir = [ FDirName $(HAIKU_TOP) data system data Canna ] ;
|
2009-04-04 17:35:46 +04:00
|
|
|
local cannaDefault = [ Glob $(cannaDir)/default : *.canna *.gz ] ;
|
|
|
|
local cannaDic = [ Glob $(cannaDir)/dic : *.cbp ] ;
|
|
|
|
local cannaDicCanna = [ Glob $(cannaDir)/dic/canna
|
2005-10-29 20:27:43 +04:00
|
|
|
: *.cld *.ctd *.cbd *.dir ] ;
|
2009-04-04 17:35:46 +04:00
|
|
|
AddFilesToHaikuImage system data Canna default : $(cannaDefault) ;
|
|
|
|
AddFilesToHaikuImage system data Canna dic : $(cannaDic) ;
|
|
|
|
AddFilesToHaikuImage system data Canna dic canna : $(cannaDicCanna) ;
|
|
|
|
AddDirectoryToHaikuImage system data Canna dic group ;
|
|
|
|
AddDirectoryToHaikuImage system data Canna dic user ;
|
2005-10-29 20:27:43 +04:00
|
|
|
|
2009-11-10 16:48:56 +03:00
|
|
|
local keymapFiles = [ Glob [ FDirName $(HAIKU_TOP) src data keymaps ]
|
2007-03-28 20:39:29 +04:00
|
|
|
: *.keymap ] ;
|
2005-10-29 20:27:43 +04:00
|
|
|
keymapFiles = $(keymapFiles:BG=keymap) ;
|
2009-04-03 13:02:44 +04:00
|
|
|
AddFilesToHaikuImage system data Keymaps : $(keymapFiles) ;
|
|
|
|
AddSymlinkToHaikuImage system data Keymaps : Swedish : Finnish ;
|
|
|
|
AddSymlinkToHaikuImage system data Keymaps : Slovene : Croatian ;
|
|
|
|
AddSymlinkToHaikuImage system data Keymaps : US-International : Brazilian ;
|
2005-10-29 20:27:43 +04:00
|
|
|
|
2011-11-02 08:30:44 +04:00
|
|
|
# Copy keyboard layout files to the image one-by-one.
|
2009-04-05 19:59:08 +04:00
|
|
|
local keyboardLayoutsDir
|
|
|
|
= [ FDirName $(HAIKU_TOP) data system data KeyboardLayouts ] ;
|
2011-11-02 08:30:44 +04:00
|
|
|
local keyboardLayoutFiles =
|
|
|
|
"Generic 104-key"
|
|
|
|
"Generic 105-key International"
|
|
|
|
"Kinesis Advantage"
|
|
|
|
"Kinesis Ergo Elan International"
|
|
|
|
"TypeMatrix 2030" ;
|
|
|
|
keyboardLayoutFiles = $(keyboardLayoutFiles:G=keyboard-layout) ;
|
|
|
|
SEARCH on $(keyboardLayoutFiles) = $(keyboardLayoutsDir) ;
|
|
|
|
AddFilesToHaikuImage system data KeyboardLayouts
|
|
|
|
: $(keyboardLayoutFiles) ;
|
|
|
|
|
|
|
|
# Add Apple Aluminum keyboard layout files to the image in an Apple Aluminum
|
|
|
|
# subdirectory. The subdirectory is turned into a submenu in the Layout menu
|
|
|
|
# of the Keymap preference app.
|
|
|
|
local appleAluminumDir
|
|
|
|
= [ FDirName $(HAIKU_TOP) data system data KeyboardLayouts
|
|
|
|
Apple\ Aluminum ] ;
|
|
|
|
local appleAluminumFiles =
|
|
|
|
"Apple Aluminium Extended International"
|
|
|
|
"Apple Aluminium International"
|
|
|
|
"Apple Aluminum (US)"
|
|
|
|
"Apple Aluminum Extended (US)" ;
|
|
|
|
appleAluminumFiles = $(appleAluminumFiles:G=keyboard-layout) ;
|
|
|
|
SEARCH on $(appleAluminumFiles) = $(appleAluminumDir) ;
|
|
|
|
AddFilesToHaikuImage system data KeyboardLayouts Apple\ Aluminum
|
|
|
|
: $(appleAluminumFiles) ;
|
2009-04-05 19:59:08 +04:00
|
|
|
|
2011-11-02 08:51:30 +04:00
|
|
|
# Add ThinkPad keyboard layout files to the image in a ThinkPad
|
|
|
|
# subdirectory. The subdirectory is turned into a submenu in the Layout menu
|
|
|
|
# of the Keymap preference app.
|
|
|
|
local thinkpadDir
|
|
|
|
= [ FDirName $(HAIKU_TOP) data system data KeyboardLayouts ThinkPad ] ;
|
|
|
|
local thinkPadFiles =
|
|
|
|
"ThinkPad (US)"
|
|
|
|
"ThinkPad International"
|
|
|
|
"ThinkPad T400s (US)"
|
|
|
|
"ThinkPad T400s International"
|
|
|
|
"ThinkPad X1 (US)"
|
|
|
|
"ThinkPad X1 International"
|
|
|
|
"ThinkPad X100e (US)"
|
|
|
|
"ThinkPad X100e International" ;
|
|
|
|
thinkPadFiles = $(thinkPadFiles:G=keyboard-layout) ;
|
|
|
|
SEARCH on $(thinkPadFiles) = $(thinkpadDir) ;
|
|
|
|
AddFilesToHaikuImage system data KeyboardLayouts ThinkPad
|
|
|
|
: $(thinkPadFiles) ;
|
|
|
|
|
2005-10-29 20:27:43 +04:00
|
|
|
local driverSettingsFiles = <driver-settings>kernel ;
|
|
|
|
SEARCH on $(driverSettingsFiles)
|
|
|
|
= [ FDirName $(HAIKU_TOP) data settings kernel drivers ] ;
|
|
|
|
AddFilesToHaikuImage home config settings kernel drivers
|
|
|
|
: $(driverSettingsFiles) ;
|
|
|
|
|
2007-07-05 02:26:42 +04:00
|
|
|
local networkSettingsFiles = <network-settings>services ;
|
|
|
|
SEARCH on $(networkSettingsFiles)
|
|
|
|
= [ FDirName $(HAIKU_TOP) data settings network ] ;
|
2008-02-25 19:57:47 +03:00
|
|
|
AddFilesToHaikuImage common settings network : $(networkSettingsFiles) ;
|
2007-07-05 02:26:42 +04:00
|
|
|
|
2008-05-04 17:10:42 +04:00
|
|
|
# post install scripts and fresh install indicator file
|
2011-03-31 11:31:56 +04:00
|
|
|
local postInstallFiles = add_catalog_entry_attributes.sh
|
|
|
|
default_deskbar_items.sh mime_update.sh ;
|
2008-05-04 17:10:42 +04:00
|
|
|
postInstallFiles = $(postInstallFiles:G=post-install) ;
|
|
|
|
SEARCH on $(postInstallFiles)
|
2008-05-07 02:47:38 +04:00
|
|
|
= [ FDirName $(HAIKU_TOP) data common boot post_install ] ;
|
|
|
|
SEARCH on <post-install>fresh_install
|
|
|
|
= [ FDirName $(HAIKU_TOP) data common settings ] ;
|
|
|
|
AddFilesToHaikuImage common boot post_install : $(postInstallFiles) ;
|
|
|
|
AddFilesToHaikuImage common settings : <post-install>fresh_install ;
|
2008-03-06 01:25:33 +03:00
|
|
|
|
2005-10-29 20:27:43 +04:00
|
|
|
# boot loader
|
2009-04-03 13:02:44 +04:00
|
|
|
AddFilesToHaikuImage system : haiku_loader ;
|
2005-10-29 20:27:43 +04:00
|
|
|
|
|
|
|
# boot module links
|
2008-03-19 19:19:47 +03:00
|
|
|
AddBootModuleSymlinksToHaikuImage
|
2009-09-23 01:10:18 +04:00
|
|
|
$(X86_ONLY)acpi $(ATA_ONLY)ata pci $(X86_ONLY)isa config_manager dpc
|
2009-04-30 19:45:19 +04:00
|
|
|
$(IDE_ONLY)ide scsi usb
|
2008-03-04 04:01:00 +03:00
|
|
|
$(PPC_ONLY)openpic
|
2009-04-30 19:45:19 +04:00
|
|
|
$(ATA_ONLY)ata_adapter $(IDE_ONLY)ide_adapter locked_pool scsi_periph
|
2010-01-13 11:30:35 +03:00
|
|
|
ahci generic_ide_pci it8211 legacy_sata silicon_image_3112
|
|
|
|
$(X86_ONLY)ide_isa
|
2008-06-07 14:48:49 +04:00
|
|
|
<usb>uhci <usb>ohci <usb>ehci
|
|
|
|
scsi_cd scsi_disk usb_disk
|
2012-02-11 01:55:45 +04:00
|
|
|
efi_gpt
|
2008-03-04 04:01:00 +03:00
|
|
|
intel
|
|
|
|
bfs
|
2005-10-29 20:27:43 +04:00
|
|
|
;
|
|
|
|
|
|
|
|
# add-ons
|
2009-04-03 13:02:44 +04:00
|
|
|
AddFilesToHaikuImage system add-ons accelerants
|
|
|
|
: $(SYSTEM_ADD_ONS_ACCELERANTS) ;
|
2012-01-14 03:42:45 +04:00
|
|
|
if $(TARGET_ARCH) = x86 {
|
|
|
|
AddFilesToHaikuHybridImage system add-ons opengl
|
|
|
|
: Mesa\ Software\ Renderer : : true ;
|
|
|
|
}
|
2009-05-27 05:12:34 +04:00
|
|
|
AddFilesToHaikuHybridImage system add-ons Translators
|
|
|
|
: $(SYSTEM_ADD_ONS_TRANSLATORS) : : true ;
|
2009-11-10 16:44:22 +03:00
|
|
|
AddFilesToHaikuImage system add-ons locale catalogs
|
|
|
|
: $(SYSTEM_ADD_ONS_LOCALE_CATALOGS) ;
|
2010-07-13 14:51:57 +04:00
|
|
|
AddFilesToHaikuHybridImage system add-ons locale catalogs
|
|
|
|
: $(SYSTEM_ADD_ONS_LOCALE_CATALOGS) : : true ;
|
2009-04-03 13:02:44 +04:00
|
|
|
AddFilesToHaikuImage system add-ons mail_daemon inbound_protocols : POP3 IMAP ;
|
|
|
|
AddFilesToHaikuImage system add-ons mail_daemon outbound_protocols : SMTP ;
|
2009-11-10 16:44:22 +03:00
|
|
|
AddFilesToHaikuImage system add-ons mail_daemon inbound_filters
|
2011-02-09 04:49:01 +03:00
|
|
|
: MatchHeader SpamFilter NewMailNotification ;
|
2009-04-03 13:02:44 +04:00
|
|
|
AddFilesToHaikuImage system add-ons mail_daemon outbound_filters : Fortune ;
|
|
|
|
AddFilesToHaikuImage system add-ons media : $(SYSTEM_ADD_ONS_MEDIA) ;
|
|
|
|
AddFilesToHaikuImage system add-ons media plugins
|
|
|
|
: $(SYSTEM_ADD_ONS_MEDIA_PLUGINS) ;
|
|
|
|
AddFilesToHaikuImage system add-ons Tracker
|
2010-01-13 11:30:35 +03:00
|
|
|
: FileType-F Mark\ as… Mark\ as\ Read-R Open\ Target\ Folder-O
|
|
|
|
Open\ Terminal-T ZipOMatic-Z ;
|
2009-04-03 13:02:44 +04:00
|
|
|
AddSymlinkToHaikuImage system add-ons Tracker
|
|
|
|
: /boot/system/preferences/Backgrounds : Background-B ;
|
|
|
|
AddSymlinkToHaikuImage system add-ons Tracker
|
|
|
|
: /boot/system/apps/TextSearch : TextSearch-G ;
|
|
|
|
AddSymlinkToHaikuImage system add-ons Tracker
|
|
|
|
: /boot/system/apps/DiskUsage : DiskUsage-I ;
|
|
|
|
AddFilesToHaikuImage system add-ons input_server devices
|
2011-06-06 03:58:35 +04:00
|
|
|
: <input>keyboard <input>mouse <input>tablet <input>wacom ;
|
2009-11-09 16:17:47 +03:00
|
|
|
AddFilesToHaikuImage system add-ons input_server filters
|
2009-10-31 00:42:18 +03:00
|
|
|
: screen_saver shortcut_catcher ;
|
2009-04-03 13:02:44 +04:00
|
|
|
AddFilesToHaikuImage system add-ons kernel network
|
2008-12-27 23:48:28 +03:00
|
|
|
: <net>notifications stack ;
|
2009-04-03 13:02:44 +04:00
|
|
|
AddFilesToHaikuImage system add-ons kernel network devices
|
|
|
|
: $(SYSTEM_NETWORK_DEVICES) ;
|
|
|
|
AddFilesToHaikuImage system add-ons kernel network datalink_protocols
|
|
|
|
: $(SYSTEM_NETWORK_DATALINK_PROTOCOLS) ;
|
|
|
|
AddFilesToHaikuImage system add-ons kernel network ppp
|
|
|
|
: $(SYSTEM_NETWORK_PPP) ;
|
|
|
|
AddFilesToHaikuImage system add-ons kernel network protocols
|
|
|
|
: $(SYSTEM_NETWORK_PROTOCOLS) ;
|
|
|
|
AddFilesToHaikuImage system add-ons Print : $(SYSTEM_ADD_ONS_PRINT) ;
|
|
|
|
AddFilesToHaikuImage system add-ons Print transport
|
|
|
|
: $(SYSTEM_ADD_ONS_PRINT_TRANSPORT) ;
|
|
|
|
AddFilesToHaikuImage system add-ons Screen\ Savers
|
|
|
|
: $(SYSTEM_ADD_ONS_SCREENSAVERS) ;
|
|
|
|
|
|
|
|
AddFilesToHaikuImage system add-ons disk_systems
|
2007-11-10 23:43:00 +03:00
|
|
|
: <disk_system>intel <disk_system>bfs ;
|
|
|
|
|
2010-08-03 14:32:19 +04:00
|
|
|
# decorators
|
2010-09-13 07:52:26 +04:00
|
|
|
AddDirectoryToHaikuImage home config add-ons decorators ;
|
2011-07-27 02:18:55 +04:00
|
|
|
#AddFilesToHaikuImage home config add-ons decorators : ;
|
2010-08-03 14:32:19 +04:00
|
|
|
|
2009-01-14 17:26:23 +03:00
|
|
|
# create directories that will remain empty
|
|
|
|
AddDirectoryToHaikuImage common bin ;
|
|
|
|
AddDirectoryToHaikuImage common include ;
|
|
|
|
AddDirectoryToHaikuImage common lib ;
|
|
|
|
AddDirectoryToHaikuImage home Desktop ;
|
|
|
|
AddDirectoryToHaikuImage home config bin ;
|
|
|
|
AddDirectoryToHaikuImage home config lib ;
|
|
|
|
AddDirectoryToHaikuImage home mail ;
|
2010-01-16 20:17:07 +03:00
|
|
|
AddDirectoryToHaikuImage common var empty ;
|
|
|
|
AddDirectoryToHaikuImage common var log ;
|
|
|
|
AddDirectoryToHaikuImage common cache tmp ;
|
2009-01-14 17:26:23 +03:00
|
|
|
|
2008-11-05 19:17:33 +03:00
|
|
|
AddDirectoryToHaikuImage home config add-ons kernel drivers bin ;
|
|
|
|
AddDirectoryToHaikuImage home config add-ons kernel drivers dev ;
|
2008-09-04 22:44:01 +04:00
|
|
|
AddDirectoryToHaikuImage home config add-ons input_server devices ;
|
|
|
|
AddDirectoryToHaikuImage home config add-ons input_server filters ;
|
|
|
|
AddDirectoryToHaikuImage home config add-ons input_server methods ;
|
2010-09-07 14:19:35 +04:00
|
|
|
AddDirectoryToHaikuImage home config add-ons media plugins ;
|
2006-06-03 19:13:39 +04:00
|
|
|
AddDirectoryToHaikuImage home config add-ons Tracker ;
|
2009-10-10 18:58:54 +04:00
|
|
|
AddDirectoryToHaikuImage home config add-ons Print ;
|
2006-06-03 19:13:39 +04:00
|
|
|
AddDirectoryToHaikuImage home config add-ons Screen\ Savers ;
|
|
|
|
AddDirectoryToHaikuImage home config add-ons Translators ;
|
2009-04-03 13:02:44 +04:00
|
|
|
AddDirectoryToHaikuImage system data synth ;
|
|
|
|
AddDirectoryToHaikuImage system add-ons input_server methods ;
|
2006-06-03 19:13:39 +04:00
|
|
|
|
2008-04-02 18:02:52 +04:00
|
|
|
# optional
|
2009-04-03 13:02:44 +04:00
|
|
|
AddFilesToHaikuImage optional system add-ons input_server methods : canna ;
|
2006-09-18 16:25:36 +04:00
|
|
|
|
2007-07-28 11:17:23 +04:00
|
|
|
# printers
|
|
|
|
AddDirectoryToHaikuImage home config settings printers Preview
|
2009-06-20 12:44:54 +04:00
|
|
|
: home-config-settings-printers-preview.rdef ;
|
2007-07-31 20:36:28 +04:00
|
|
|
AddDirectoryToHaikuImage home config settings printers "Save as PDF"
|
2009-06-20 12:44:54 +04:00
|
|
|
: home-config-settings-printers-save-as-pdf.rdef ;
|
2007-07-28 11:17:23 +04:00
|
|
|
|
2010-07-26 22:30:36 +04:00
|
|
|
# PDF Writer enconding files
|
2010-07-27 18:45:25 +04:00
|
|
|
CopyDirectoryToHaikuImage system data
|
2010-07-26 22:30:36 +04:00
|
|
|
: [ FDirName $(HAIKU_TOP) src add-ons print drivers pdf encoding ]
|
|
|
|
: "PDF Writer" : -x .svn -x Jamfile ;
|
|
|
|
|
2010-10-30 21:40:46 +04:00
|
|
|
# Gutenprint data files
|
|
|
|
CopyDirectoryToHaikuImage common data
|
|
|
|
: [ FDirName $(HAIKU_TOP) src libs print libgutenprint src xml ]
|
|
|
|
: gutenprint : -x .svn -x *.c -x Makefile.am -x Makefile.in ;
|
|
|
|
|
2010-12-18 00:54:06 +03:00
|
|
|
# dvb channel settings
|
|
|
|
CopyDirectoryToHaikuImage home config settings Media
|
|
|
|
: [ FDirName $(HAIKU_TOP) data settings media dvb ]
|
|
|
|
: dvb : -x .svn -x Jamfile ;
|
|
|
|
|
2008-04-19 19:55:54 +04:00
|
|
|
# licenses
|
2009-04-03 13:02:44 +04:00
|
|
|
CopyDirectoryToHaikuImage system data
|
2009-04-05 18:55:59 +04:00
|
|
|
: [ FDirName $(HAIKU_TOP) data system data licenses ]
|
2008-04-19 19:55:54 +04:00
|
|
|
: licenses : -x .svn ;
|
|
|
|
|
2010-06-07 12:03:09 +04:00
|
|
|
# Copy documentation as per DiskUsage's license requirement.
|
|
|
|
CopyDirectoryToHaikuImage system documentation
|
|
|
|
: [ FDirName $(HAIKU_TOP) docs apps diskusage ]
|
|
|
|
: diskusage : -x .svn ;
|
|
|
|
|
2010-03-30 21:59:56 +04:00
|
|
|
# Copy documentation as per PDFlib Lite's license requirement.
|
|
|
|
CopyDirectoryToHaikuImage system documentation
|
|
|
|
: [ FDirName $(HAIKU_TOP) src libs pdflib doc ]
|
|
|
|
: pdflib : -x .svn ;
|
|
|
|
|
|
|
|
# Copy sample programs as per PDFlib Lite's license requirement.
|
|
|
|
CopyDirectoryToHaikuImage develop sample-code
|
|
|
|
: [ FDirName $(HAIKU_TOP) src libs pdflib bind pdflib ]
|
|
|
|
: pdflib : -x .svn ;
|
2007-07-28 11:17:23 +04:00
|
|
|
|
2012-01-12 02:56:28 +04:00
|
|
|
# Copy Mesa3D GL headers into image
|
2012-01-14 03:42:45 +04:00
|
|
|
if $(TARGET_ARCH) = x86 {
|
|
|
|
CopyDirectoryToHaikuImage develop headers os opengl
|
|
|
|
: [ FDirName $(HAIKU_MESA_HEADERS) GL ] : : -x .svn ;
|
|
|
|
}
|
2012-01-12 02:56:28 +04:00
|
|
|
|
2009-05-27 05:12:34 +04:00
|
|
|
#pragma mark - Optional Packages
|
|
|
|
|
|
|
|
|
|
|
|
HAIKU_IMAGE_OPTIONAL_PACKAGE_DESCRIPTIONS = ;
|
|
|
|
|
|
|
|
include [ FDirName $(HAIKU_BUILD_RULES_DIR) OptionalPackages ] ;
|
|
|
|
include [ FDirName $(HAIKU_BUILD_RULES_DIR) OptionalTestPackages ] ;
|
2010-10-30 11:22:17 +04:00
|
|
|
include [ FDirName $(HAIKU_BUILD_RULES_DIR) OptionalLibPackages ] ;
|
2009-05-27 05:12:34 +04:00
|
|
|
|
|
|
|
local optionalPackageDescriptions ;
|
|
|
|
if $(HAIKU_IMAGE_OPTIONAL_PACKAGE_DESCRIPTIONS) {
|
|
|
|
optionalPackageDescriptions = <haiku-image>optional_package_descriptions ;
|
|
|
|
MakeLocate $(optionalPackageDescriptions)
|
|
|
|
: $(HAIKU_COMMON_PLATFORM_OBJECT_DIR) ;
|
|
|
|
|
|
|
|
Depends $(optionalPackageDescriptions)
|
|
|
|
: $(HAIKU_IMAGE_OPTIONAL_PACKAGE_DESCRIPTIONS) ;
|
|
|
|
|
|
|
|
actions together BuildOptionalPackageDescriptions
|
|
|
|
{
|
|
|
|
cat $(2) > $(1)
|
|
|
|
}
|
|
|
|
|
|
|
|
BuildOptionalPackageDescriptions $(optionalPackageDescriptions)
|
|
|
|
: $(HAIKU_IMAGE_OPTIONAL_PACKAGE_DESCRIPTIONS) ;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2008-05-18 03:47:39 +04:00
|
|
|
#pragma mark - Alternative GCC Libraries
|
|
|
|
|
|
|
|
|
2009-05-25 05:21:32 +04:00
|
|
|
# We build a zip archive containing the libraries built with the alternative
|
|
|
|
# GCC and unzip onto our image. Building the archive is done by a sub-jam.
|
|
|
|
include [ FDirName $(HAIKU_BUILD_RULES_DIR) AlternativeGCCArchive ] ;
|
2008-05-18 03:47:39 +04:00
|
|
|
|
2010-04-20 22:44:54 +04:00
|
|
|
if $(HAIKU_ADD_ALTERNATIVE_GCC_LIBS) = 1
|
|
|
|
&& $(HAIKU_ALTERNATIVE_GCC_OUTPUT_DIR) {
|
2008-05-18 03:47:39 +04:00
|
|
|
# let another jam build a zip with the system libraries
|
|
|
|
rule InvokeSubJam target : directory : jamLine
|
|
|
|
{
|
|
|
|
DIRECTORY on $(target) = $(directory) ;
|
|
|
|
COMMAND_LINE on $(target) = $(jamLine) ;
|
2009-05-27 05:12:34 +04:00
|
|
|
local optionalPackages = $(HAIKU_ADDED_OPTIONAL_PACKAGES:J=/) ;
|
|
|
|
OPTIONAL_PACKAGES on $(target) = $(optionalPackages:E="") ;
|
2008-05-18 03:47:39 +04:00
|
|
|
Always $(target) ;
|
|
|
|
InvokeSubJam1 $(target) ;
|
|
|
|
}
|
|
|
|
|
|
|
|
actions InvokeSubJam1
|
|
|
|
{
|
|
|
|
cd $(DIRECTORY)
|
2009-05-27 05:12:34 +04:00
|
|
|
export HAIKU_IGNORE_USER_BUILD_CONFIG=1
|
|
|
|
export HAIKU_ADD_OPTIONAL_PACKAGES=$(OPTIONAL_PACKAGES)
|
2010-10-11 21:51:44 +04:00
|
|
|
export HAIKU_PRIMARY_GCC=$(HAIKU_GCC_VERSION[1])
|
2011-12-24 05:27:11 +04:00
|
|
|
# NOTE: depending on when InvokeSubJam is called, you may end up with
|
|
|
|
# 2 * n - 1 jobs in total.
|
|
|
|
$(JAM:E=jam) -q -j$(JAMJOBS) $(COMMAND_LINE) ;
|
2008-05-18 03:47:39 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
local otherAlternativeSystemLibsZip
|
|
|
|
= <other-image>alternative_system_libs.zip ;
|
|
|
|
MakeLocate $(otherAlternativeSystemLibsZip)
|
|
|
|
: $(HAIKU_ALTERNATIVE_GCC_OUTPUT_DIR) ;
|
|
|
|
|
|
|
|
InvokeSubJam $(otherAlternativeSystemLibsZip)
|
|
|
|
: $(HAIKU_ALTERNATIVE_GCC_OUTPUT_DIR)
|
2009-05-25 05:21:32 +04:00
|
|
|
: "haiku-alternative-gcc-archive" ;
|
2008-05-18 03:47:39 +04:00
|
|
|
|
|
|
|
# install the alternative libs in the right directory
|
2010-02-27 20:48:12 +03:00
|
|
|
ExtractArchiveToHaikuImage : $(otherAlternativeSystemLibsZip) ;
|
2008-05-18 03:47:39 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2008-04-02 18:02:52 +04:00
|
|
|
#pragma mark - User/Group Setup
|
|
|
|
|
|
|
|
|
|
|
|
# add the root user and the root and users groups
|
|
|
|
AddUserToHaikuImage $(HAIKU_ROOT_USER_NAME:E=baron) : 0 : 0 : /boot/home
|
|
|
|
: /bin/bash : $(HAIKU_ROOT_USER_REAL_NAME:E="Root User") ;
|
|
|
|
AddGroupToHaikuImage root : 0 : ;
|
|
|
|
AddGroupToHaikuImage users : 100 : ;
|
|
|
|
|
|
|
|
|
2008-04-20 18:00:31 +04:00
|
|
|
#pragma mark - Host Name
|
|
|
|
|
|
|
|
|
|
|
|
if $(HAIKU_IMAGE_HOST_NAME) {
|
|
|
|
actions BuildHaikuImageHostnameFile
|
|
|
|
{
|
2008-05-26 20:52:27 +04:00
|
|
|
echo "$(HAIKU_IMAGE_HOST_NAME)" > $(1)
|
2008-04-20 18:00:31 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
local file = <haiku-image>hostname ;
|
|
|
|
Always $(file) ;
|
|
|
|
MakeLocate $(file) : $(HAIKU_COMMON_PLATFORM_OBJECT_DIR) ;
|
|
|
|
BuildHaikuImageHostnameFile $(file) ;
|
|
|
|
AddFilesToHaikuImage common settings network : $(file) ;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2007-01-27 15:54:10 +03:00
|
|
|
#pragma mark - Build The Image
|
2005-10-29 20:27:43 +04:00
|
|
|
|
2007-09-05 22:36:17 +04:00
|
|
|
|
2008-12-03 05:02:28 +03:00
|
|
|
# Execute pre-image user config rules.
|
|
|
|
UserBuildConfigRulePreImage ;
|
|
|
|
|
2005-10-29 20:27:43 +04:00
|
|
|
# Set image name and directory defaults and locate the image.
|
2008-04-03 00:29:43 +04:00
|
|
|
HAIKU_IMAGE_NAME ?= $(HAIKU_DEFAULT_IMAGE_NAME) ;
|
|
|
|
HAIKU_IMAGE_DIR ?= $(HAIKU_DEFAULT_IMAGE_DIR) ;
|
|
|
|
HAIKU_IMAGE = $(HAIKU_IMAGE_NAME) ;
|
2011-08-25 01:04:55 +04:00
|
|
|
HAIKU_IMAGE_SIZE ?= $(HAIKU_DEFAULT_IMAGE_SIZE) ; # 300 MB
|
2008-10-13 05:48:00 +04:00
|
|
|
HAIKU_IMAGE_LABEL ?= $(HAIKU_DEFAULT_IMAGE_LABEL) ;
|
2005-10-29 20:27:43 +04:00
|
|
|
MakeLocate $(HAIKU_IMAGE) : $(HAIKU_IMAGE_DIR) ;
|
|
|
|
|
|
|
|
# Set the default installation directory.
|
2008-04-03 00:29:43 +04:00
|
|
|
HAIKU_INSTALL_DIR ?= $(HAIKU_DEFAULT_INSTALL_DIR) ;
|
2005-10-29 20:27:43 +04:00
|
|
|
|
|
|
|
# the pseudo target all image contents is attached to
|
2007-07-11 05:04:35 +04:00
|
|
|
NotFile $(HAIKU_IMAGE_CONTAINER_NAME) ;
|
2005-10-29 20:27:43 +04:00
|
|
|
|
2010-04-24 23:52:36 +04:00
|
|
|
# Detect a hybrid GCC2/GCC4 image.
|
|
|
|
local isHybridBuild ;
|
|
|
|
if $(HAIKU_ADD_ALTERNATIVE_GCC_LIBS) = 1
|
|
|
|
&& $(HAIKU_ALTERNATIVE_GCC_OUTPUT_DIR) {
|
|
|
|
isHybridBuild = 1 ;
|
|
|
|
}
|
|
|
|
|
2005-10-29 20:27:43 +04:00
|
|
|
# prepare the script that initializes the shell variables
|
|
|
|
HAIKU_IMAGE_INIT_VARIABLES_SCRIPT = <HaikuImage>haiku.image-init-vars ;
|
|
|
|
local script = $(HAIKU_IMAGE_INIT_VARIABLES_SCRIPT) ;
|
|
|
|
MakeLocate $(script) : $(HAIKU_OUTPUT_DIR) ;
|
|
|
|
Always $(script) ;
|
|
|
|
|
|
|
|
AddVariableToScript $(script) : sourceDir : $(HAIKU_TOP) ;
|
|
|
|
AddVariableToScript $(script) : outputDir : $(HAIKU_OUTPUT_DIR) ;
|
|
|
|
AddVariableToScript $(script) : tmpDir : $(HAIKU_TMP_DIR) ;
|
|
|
|
AddVariableToScript $(script) : installDir : $(HAIKU_INSTALL_DIR) ;
|
|
|
|
#AddVariableToScript $(script) : isImage : 1 ;
|
|
|
|
AddVariableToScript $(script) : imageSize : $(HAIKU_IMAGE_SIZE) ;
|
2008-09-19 21:32:57 +04:00
|
|
|
AddVariableToScript $(script) : imageLabel : $(HAIKU_IMAGE_LABEL) ;
|
2005-10-29 20:27:43 +04:00
|
|
|
AddVariableToScript $(script) : addBuildCompatibilityLibDir
|
|
|
|
: $(HOST_ADD_BUILD_COMPATIBILITY_LIB_DIR) ;
|
2007-10-01 21:27:13 +04:00
|
|
|
AddVariableToScript $(script) : dontClearImage : $(HAIKU_DONT_CLEAR_IMAGE) ;
|
2007-07-18 03:37:40 +04:00
|
|
|
AddVariableToScript $(script) : updateOnly : [ IsUpdateHaikuImageOnly ] ;
|
2011-05-29 22:02:21 +04:00
|
|
|
AddVariableToScript $(script) : stripOptionalPackageDebugSymbols
|
|
|
|
: $(HAIKU_STRIP_DEBUG_FROM_OPTIONAL_PACKAGES) ;
|
2008-04-19 19:55:54 +04:00
|
|
|
AddTargetVariableToScript $(script) : <build>addattr ;
|
2007-05-02 18:12:04 +04:00
|
|
|
AddTargetVariableToScript $(script) : <build>bfs_shell : bfsShell ;
|
|
|
|
AddTargetVariableToScript $(script) : <build>fs_shell_command : fsShellCommand ;
|
2005-10-29 20:27:43 +04:00
|
|
|
AddTargetVariableToScript $(script) : <build>copyattr ;
|
2009-04-12 13:18:18 +04:00
|
|
|
AddTargetVariableToScript $(script) : <build>create_image : createImage ;
|
2005-10-29 20:27:43 +04:00
|
|
|
AddTargetVariableToScript $(script) : <build>makebootable ;
|
|
|
|
AddTargetVariableToScript $(script) : <build>rc ;
|
|
|
|
AddTargetVariableToScript $(script) : <build>resattr ;
|
2007-09-05 01:50:00 +04:00
|
|
|
AddTargetVariableToScript $(script) : <build>unzip ;
|
2008-04-04 01:18:18 +04:00
|
|
|
AddTargetVariableToScript $(script) : <build>vmdkimage ;
|
* BuildPlatformMain supports overriding HOST_LIBROOT on the target now,
so one can set it to the static libroot, if desired.
* Generic attribute emulation:
- Added build tool rm_attrs, a simple "rm" replacement, which also
removes the attributes directory for a given file.
- Added build/scripts/rm_attrs shell script, which wraps the
invocation of the rm_attrs tool. If it doesn't exist yet, the
ordinary rm is used.
- The RM jam variable refers to the rm_attrs script now, i.e. whenever
something is removed by the build system, the attributes are removed
too (if the build tool has already been built, that is).
- Removed the shell function attrrmrf() in build_haiku_image. We use
the rm_attrs tool instead, if necessary.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24528 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-03-23 00:05:03 +03:00
|
|
|
if $(HOST_RM_ATTRS_TARGET) {
|
|
|
|
AddTargetVariableToScript $(script) : $(HOST_RM_ATTRS_TARGET) : rmAttrs ;
|
|
|
|
} else {
|
|
|
|
AddVariableToScript $(script) : rmAttrs : rm ;
|
|
|
|
}
|
2008-05-04 20:06:41 +04:00
|
|
|
if $(optionalPackageDescriptions) {
|
|
|
|
AddTargetVariableToScript $(script) : $(optionalPackageDescriptions)
|
|
|
|
: optionalPackageDescriptions ;
|
|
|
|
}
|
* BuildPlatformMain supports overriding HOST_LIBROOT on the target now,
so one can set it to the static libroot, if desired.
* Generic attribute emulation:
- Added build tool rm_attrs, a simple "rm" replacement, which also
removes the attributes directory for a given file.
- Added build/scripts/rm_attrs shell script, which wraps the
invocation of the rm_attrs tool. If it doesn't exist yet, the
ordinary rm is used.
- The RM jam variable refers to the rm_attrs script now, i.e. whenever
something is removed by the build system, the attributes are removed
too (if the build tool has already been built, that is).
- Removed the shell function attrrmrf() in build_haiku_image. We use
the rm_attrs tool instead, if necessary.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24528 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-03-23 00:05:03 +03:00
|
|
|
|
2005-10-29 20:27:43 +04:00
|
|
|
|
|
|
|
# create the other scripts
|
|
|
|
HAIKU_IMAGE_MAKE_DIRS_SCRIPT = <HaikuImage>haiku.image-make-dirs ;
|
|
|
|
HAIKU_IMAGE_COPY_FILES_SCRIPT = <HaikuImage>haiku.image-copy-files ;
|
2010-02-27 20:48:12 +03:00
|
|
|
HAIKU_IMAGE_EXTRACT_FILES_SCRIPT = <HaikuImage>haiku.image-extract-files ;
|
2005-10-29 20:27:43 +04:00
|
|
|
MakeLocate $(HAIKU_IMAGE_MAKE_DIRS_SCRIPT) $(HAIKU_IMAGE_COPY_FILES_SCRIPT)
|
2010-02-27 20:48:12 +03:00
|
|
|
$(HAIKU_IMAGE_EXTRACT_FILES_SCRIPT) : $(HAIKU_OUTPUT_DIR) ;
|
2005-10-29 20:27:43 +04:00
|
|
|
|
|
|
|
CreateHaikuImageMakeDirectoriesScript $(HAIKU_IMAGE_MAKE_DIRS_SCRIPT) ;
|
|
|
|
CreateHaikuImageCopyFilesScript $(HAIKU_IMAGE_COPY_FILES_SCRIPT) ;
|
2010-02-27 20:48:12 +03:00
|
|
|
CreateHaikuImageExtractFilesScript $(HAIKU_IMAGE_EXTRACT_FILES_SCRIPT) ;
|
2005-10-29 20:27:43 +04:00
|
|
|
|
|
|
|
# Convenience wrapper rule around BuildHaikuImage.
|
2008-02-17 16:54:32 +03:00
|
|
|
rule _BuildHaikuImage image : isImage : isVMwareImage
|
2005-10-29 20:27:43 +04:00
|
|
|
{
|
2008-02-17 16:54:32 +03:00
|
|
|
# _BuildHaikuImage <image target> : <isImage> : <isVMwareImage> ;
|
2005-10-29 20:27:43 +04:00
|
|
|
#
|
|
|
|
|
|
|
|
# build the image
|
|
|
|
# HAIKU_IMAGE_EARLY_USER_SCRIPTS, HAIKU_IMAGE_LATE_USER_SCRIPTS can be
|
|
|
|
# specified by the user.
|
|
|
|
BuildHaikuImage $(image) :
|
|
|
|
$(HAIKU_IMAGE_INIT_VARIABLES_SCRIPT)
|
|
|
|
$(HAIKU_IMAGE_EARLY_USER_SCRIPTS)
|
|
|
|
$(HAIKU_IMAGE_MAKE_DIRS_SCRIPT)
|
|
|
|
$(HAIKU_IMAGE_COPY_FILES_SCRIPT)
|
2010-02-27 20:48:12 +03:00
|
|
|
$(HAIKU_IMAGE_EXTRACT_FILES_SCRIPT)
|
2005-10-29 20:27:43 +04:00
|
|
|
$(HAIKU_IMAGE_LATE_USER_SCRIPTS)
|
|
|
|
: $(isImage)
|
2008-02-17 16:54:32 +03:00
|
|
|
: $(isVMwareImage)
|
2005-10-29 20:27:43 +04:00
|
|
|
;
|
|
|
|
|
|
|
|
# remove the scripts we have generated
|
|
|
|
RmTemps $(image) :
|
|
|
|
$(HAIKU_IMAGE_INIT_VARIABLES_SCRIPT)
|
|
|
|
$(HAIKU_IMAGE_MAKE_DIRS_SCRIPT)
|
|
|
|
$(HAIKU_IMAGE_COPY_FILES_SCRIPT)
|
2010-02-27 20:48:12 +03:00
|
|
|
$(HAIKU_IMAGE_EXTRACT_FILES_SCRIPT)
|
2005-10-29 20:27:43 +04:00
|
|
|
;
|
|
|
|
}
|
|
|
|
|
|
|
|
# build the image
|
|
|
|
_BuildHaikuImage $(HAIKU_IMAGE) : true ;
|
|
|
|
NotFile haiku-image ;
|
|
|
|
Depends haiku-image : $(HAIKU_IMAGE) ;
|
|
|
|
|
2008-02-17 16:54:32 +03:00
|
|
|
|
2005-10-29 20:27:43 +04:00
|
|
|
# install Haiku into a directory
|
|
|
|
NotFile install-haiku ;
|
|
|
|
_BuildHaikuImage install-haiku : 0 ;
|
2007-01-27 15:54:10 +03:00
|
|
|
|
|
|
|
|
2008-02-17 16:54:32 +03:00
|
|
|
# build the VMware image
|
2008-04-03 00:29:43 +04:00
|
|
|
HAIKU_VMWARE_IMAGE_NAME ?= $(HAIKU_DEFAULT_VMWARE_IMAGE_NAME) ;
|
|
|
|
HAIKU_VMWARE_IMAGE = $(HAIKU_VMWARE_IMAGE_NAME) ;
|
2007-01-27 15:54:10 +03:00
|
|
|
MakeLocate $(HAIKU_VMWARE_IMAGE) : $(HAIKU_IMAGE_DIR) ;
|
|
|
|
|
2008-02-17 16:54:32 +03:00
|
|
|
_BuildHaikuImage $(HAIKU_VMWARE_IMAGE) : true : true ;
|
2007-01-27 15:54:10 +03:00
|
|
|
NotFile haiku-vmware-image ;
|
|
|
|
Depends haiku-vmware-image : $(HAIKU_VMWARE_IMAGE) ;
|
2008-12-03 05:02:28 +03:00
|
|
|
|
|
|
|
# Execute post-image user config rules.
|
|
|
|
UserBuildConfigRulePostImage ;
|