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 = ;
|
2006-05-10 00:05:27 +04:00
|
|
|
if $(INCLUDE_GPL_ADDONS) = 1 {
|
|
|
|
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 = "" ;
|
|
|
|
}
|
|
|
|
|
2009-04-05 13:14:21 +04:00
|
|
|
SYSTEM_BIN = "[" addattr alert arp base64 basename bash bc beep bootman bzip2
|
2008-11-01 20:28:10 +03:00
|
|
|
cal cat catattr checkfs chgrp chmod chop chown chroot cksum clear
|
2009-09-04 14:50:38 +04:00
|
|
|
clockconfig cmp comm compress copyattr CortexAddOnHost cp
|
2007-03-28 20:39:29 +04:00
|
|
|
csplit ctags cut date dc dd desklink df diff diff3 dircolors dirname
|
2009-09-04 14:50:38 +04:00
|
|
|
draggers driveinfo dstcheck du
|
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
|
|
|
|
ftp ftpd
|
2008-07-06 11:45:09 +04:00
|
|
|
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
|
2008-11-07 12:25:41 +03:00
|
|
|
id ident ideinfo idestatus ifconfig <bin>install installsound iroster
|
|
|
|
isvolume
|
|
|
|
join
|
2009-09-04 14:50:38 +04:00
|
|
|
keymap kill less lessecho lesskey link listarea listattr
|
2009-05-02 19:39:49 +04:00
|
|
|
listimage listdev
|
2009-02-12 03:41:05 +03:00
|
|
|
listport listres listsem listusb ln locate logger login logname ls lsindex
|
2009-07-29 14:13:20 +04:00
|
|
|
makebootable md5sum merge message mimeset mkdos mkdir mkfifo mkfs mkindex
|
2008-11-04 02:33:15 +03:00
|
|
|
modifiers mount mount_nfs mountvolume mv
|
2009-04-30 16:56:45 +04:00
|
|
|
nc netstat nl nohup
|
|
|
|
od open
|
|
|
|
passwd paste patch pathchk pc ping play playfile playsound playwav pr prio
|
|
|
|
printenv printf profile ps ptx pwd
|
|
|
|
query quit
|
|
|
|
rc readlink reindex release renice rescan rlog rm rmattr rmindex rmdir roster
|
|
|
|
route
|
2008-09-15 17:46:40 +04:00
|
|
|
safemode screen_blanker screenmode sed setdecor settype setversion setvolume
|
2009-04-05 13:14:21 +04:00
|
|
|
seq sha1sum shar shred shuf shutdown sleep sort spamdbm split stat strace
|
2009-02-22 16:45:40 +03:00
|
|
|
stty su sum sync sysinfo
|
2009-05-21 23:42:01 +04:00
|
|
|
tac tail tar tcpdump tcptester tee telnet telnetd test timeout top touch tput
|
|
|
|
tr traceroute translate trash true truncate tsort tty
|
|
|
|
uname unchop unexpand unmount uniq unlink unrar unshar unzip unzipsfx
|
|
|
|
<bin>updatedb uptime urlwrapper useradd uudecode uuencode
|
2009-05-29 00:16:35 +04:00
|
|
|
vdir version vim vmstat waitfor watch wc wget whoami 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
|
|
|
;
|
|
|
|
|
2009-07-16 06:46:25 +04:00
|
|
|
SYSTEM_APPS = AboutSystem ActivityMonitor CharacterMap CodyCam DeskCalc DiskProbe
|
2009-03-31 19:00:40 +04:00
|
|
|
DiskUsage DriveSetup CDPlayer Expander Icon-O-Matic Installer LaunchBox
|
2009-08-03 13:56:17 +04:00
|
|
|
Magnify Mail MediaConverter MediaPlayer MidiPlayer NetworkStatus
|
|
|
|
PackageInstaller People PoorMan PowerStatus ProcessController Screenshot
|
|
|
|
ShowImage SoundRecorder StyledEdit Terminal TextSearch TV Workspaces
|
2005-10-29 20:27:43 +04:00
|
|
|
;
|
2009-04-18 12:42:33 +04:00
|
|
|
SYSTEM_PREFERENCES = Appearance Backgrounds CPUFrequency DataTranslations E-mail
|
2009-09-12 07:08:40 +04:00
|
|
|
FileTypes Fonts Keyboard Keymap Media Mouse Network OpenGL Printers
|
2009-05-02 19:39:49 +04:00
|
|
|
Screen ScreenSaver Sounds Time Touchpad <preference>Tracker VirtualMemory
|
2009-09-04 14:50:38 +04:00
|
|
|
;
|
2009-04-20 05:25:43 +04:00
|
|
|
SYSTEM_DEMOS = BSnow Chart Clock Cortex FontDemo
|
2009-08-07 14:49:09 +04:00
|
|
|
GLTeapot Haiku3d Mandelbrot Pairs Playground Pulse Sudoku Gradients
|
2006-10-24 17:54:53 +04:00
|
|
|
;
|
2009-08-18 01:13:51 +04:00
|
|
|
SYSTEM_LIBS = libalm.so libbe.so libbsd.so libbnetapi.so libdebug.so
|
|
|
|
libdevice.so libfluidsynth.so libfreetype.so libgame.so libGL.so libgnu.so
|
2009-08-21 06:17:42 +04:00
|
|
|
libilmimf.so libjpeg.so liblinprog.so liblpsolve55.so libmail.so libmedia.so
|
2009-09-01 14:16:21 +04:00
|
|
|
libmidi.so libmidi2.so libnetwork.so libpng.so <revisioned>libroot.so
|
2009-08-21 06:17:42 +04:00
|
|
|
libscreensaver.so libtextencoding.so libtracker.so libtranslation.so
|
|
|
|
libz.so
|
2009-08-18 01:13:51 +04:00
|
|
|
$(HAIKU_SHARED_LIBSTDC++) $(HAIKU_SHARED_LIBSUPC++)
|
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
|
|
|
|
media_addon_server media_server midi_server net_server print_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 ;
|
|
|
|
SYSTEM_NETWORK_DATALINK_PROTOCOLS = ethernet_frame <module>arp loopback_frame
|
2008-01-04 00:15:25 +03:00
|
|
|
ipv4_datagram ;
|
2009-04-03 13:02:44 +04:00
|
|
|
#SYSTEM_NETWORK_PPP = ipcp modem pap pppoe ;
|
|
|
|
SYSTEM_NETWORK_PROTOCOLS = ipv4 tcp udp icmp unix ;
|
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
|
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
|
|
|
|
JPEGTranslator JPEG2000Translator PCXTranslator PNGTranslator PPMTranslator
|
|
|
|
RAWTranslator RTF-Translator SGITranslator STXTTranslator TGATranslator
|
2008-02-17 15:02:15 +03:00
|
|
|
TIFFTranslator WonderBrushTranslator
|
2005-10-29 20:27:43 +04:00
|
|
|
;
|
2009-04-03 13:02:44 +04: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
|
|
|
;
|
2009-04-03 13:02:44 +04:00
|
|
|
SYSTEM_ADD_ONS_MEDIA_PLUGINS = $(GPL_ONLY)ac3_decoder
|
2009-07-01 22:52:48 +04:00
|
|
|
aiff_reader asf_reader au_reader avi_reader $(X86_ONLY)ffmpeg
|
2006-05-10 00:05:27 +04:00
|
|
|
matroska mov_reader
|
|
|
|
mp3_decoder mp3_reader
|
|
|
|
mp4_reader musepack
|
2008-03-19 19:19:47 +03:00
|
|
|
ogg raw_decoder speex
|
2009-04-11 10:52:43 +04:00
|
|
|
$(X86_ONLY)ape_reader
|
2006-05-10 00:05:27 +04:00
|
|
|
# theora
|
|
|
|
vorbis wav_reader
|
2005-10-29 20:27:43 +04:00
|
|
|
;
|
2009-04-03 13:02:44 +04:00
|
|
|
SYSTEM_ADD_ONS_PRINT = Canon\ LIPS3\ Compatible Canon\ LIPS4\ Compatible
|
2007-03-28 20:39:29 +04:00
|
|
|
PCL5\ Compatible PCL6\ Compatible PDF\ Writer PS\ Compatible Preview
|
2006-10-07 23:21:22 +04:00
|
|
|
;
|
2009-04-03 13:02:44 +04:00
|
|
|
SYSTEM_ADD_ONS_PRINT_TRANSPORT = HP\ JetDirect IPP LPR 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
|
|
|
;
|
2009-04-10 07:09:05 +04:00
|
|
|
SYSTEM_ADD_ONS_SCREENSAVERS = DebugNow Flurry Haiku IFS Spider Message ;
|
2009-09-05 21:23:16 +04:00
|
|
|
SYSTEM_ADD_ONS_DRIVERS_AUDIO = auich auvia echo3g emuxki hda ;
|
2009-04-03 13:02:44 +04:00
|
|
|
SYSTEM_ADD_ONS_DRIVERS_AUDIO_OLD = ; #cmedia sis7018 usb_audio ;
|
|
|
|
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
|
2009-06-05 06:50:25 +04:00
|
|
|
$(X86_ONLY)ati
|
2005-10-29 20:27:43 +04:00
|
|
|
;
|
2009-06-30 23:07:26 +04:00
|
|
|
SYSTEM_ADD_ONS_DRIVERS_MIDI = emuxki usb_midi ;
|
2009-04-03 13:02:44 +04:00
|
|
|
SYSTEM_ADD_ONS_DRIVERS_NET = $(X86_ONLY)3com $(X86_ONLY)broadcom440x
|
2008-11-22 02:43:14 +03:00
|
|
|
$(X86_ONLY)broadcom570x etherpci $(X86_ONLY)ipro1000
|
2008-11-11 18:32:43 +03:00
|
|
|
pegasus $(X86_ONLY)rtl8139 rtl8169 $(X86_ONLY)rtl81xx sis900
|
2008-10-13 05:48:00 +04:00
|
|
|
$(X86_ONLY)via_rhine wb840 $(X86_ONLY)ipro100 $(X86_ONLY)nforce
|
|
|
|
#vlance
|
2008-12-27 23:48:28 +03:00
|
|
|
$(X86_ONLY)marvell_yukon $(X86_ONLY)syskonnect
|
2008-12-04 00:28:12 +03:00
|
|
|
$(X86_ONLY)attansic_l2 $(X86_ONLY)ar81xx usb_ecm
|
2005-10-29 20:27:43 +04:00
|
|
|
;
|
2009-04-03 13:02:44 +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
|
|
|
;
|
2009-04-03 13:02:44 +04:00
|
|
|
SYSTEM_ADD_ONS_FILE_SYSTEMS = bfs cdda ext2 fat iso9660 nfs attribute_overlay
|
2009-09-01 14:16:21 +04:00
|
|
|
write_overlay ntfs reiserfs ; #googlefs
|
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
|
2009-06-04 05:47:05 +04:00
|
|
|
: <kdebug>demangle $(X86_ONLY)<kdebug>disasm <kdebug>hangman
|
|
|
|
<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
|
|
|
|
scsi_periph ;
|
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 ;
|
2009-06-19 00:02:45 +04:00
|
|
|
AddNewDriversToHaikuImage power : $(X86_ONLY)acpi_embedded_controller ;
|
2008-08-08 15:26:58 +04:00
|
|
|
|
|
|
|
# legacy drivers
|
2006-01-07 23:29:50 +03:00
|
|
|
AddDriversToHaikuImage : console dprintf $(X86_ONLY)keyboard null
|
|
|
|
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 ;
|
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 ;
|
2009-01-17 03:02:18 +03:00
|
|
|
AddDriversToHaikuImage misc : <driver>poke <driver>test <driver>mem ;
|
2009-04-03 13:02:44 +04:00
|
|
|
AddDriversToHaikuImage net : $(SYSTEM_ADD_ONS_DRIVERS_NET) ;
|
|
|
|
#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
|
2009-05-27 05:12:34 +04:00
|
|
|
AddFilesToHaikuHybridImage system lib : $(SYSTEM_LIBS) : : true ;
|
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 ;
|
2008-04-26 21:41:53 +04:00
|
|
|
|
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 ;
|
|
|
|
|
2007-06-09 16:07:55 +04:00
|
|
|
# Deskbar Application links
|
|
|
|
AddDirectoryToHaikuImage home config be Applications ;
|
2009-03-31 19:00:40 +04:00
|
|
|
DESKBAR_APPLICATIONS = ActivityMonitor CharacterMap CodyCam CDPlayer DeskCalc
|
2009-09-08 13:58:51 +04:00
|
|
|
DiskProbe DriveSetup DiskUsage Expander Icon-O-Matic Installer Magnify
|
|
|
|
Mail MediaConverter MediaPlayer MidiPlayer People PoorMan Screenshot
|
2009-08-03 13:56:17 +04:00
|
|
|
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) {
|
2008-04-18 19:26:39 +04:00
|
|
|
AddSymlinkToHaikuImage home config be 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
|
|
|
|
|
|
|
# Deskbar Desktop Applets links
|
|
|
|
AddDirectoryToHaikuImage home config be 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) {
|
2008-04-18 19:26:39 +04:00
|
|
|
AddSymlinkToHaikuImage home config be 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
|
|
|
|
AddDirectoryToHaikuImage home config be 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) {
|
|
|
|
AddSymlinkToHaikuImage home config be Preferences
|
2009-04-03 13:02:44 +04:00
|
|
|
: /boot/system/preferences/$(linkTarget) : $(linkTarget) ;
|
2009-03-27 14:55:52 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
# Deskbar Demo links
|
|
|
|
AddDirectoryToHaikuImage home config be Demos ;
|
2009-04-03 13:02:44 +04:00
|
|
|
for linkTarget in $(SYSTEM_DEMOS) {
|
2009-03-27 14:55:52 +03:00
|
|
|
AddSymlinkToHaikuImage home config be 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 ;
|
|
|
|
AddSymlinkToHaikuImage system bin : vim : vi ;
|
|
|
|
AddSymlinkToHaikuImage system bin : vim : view ;
|
2005-10-29 20:27:43 +04:00
|
|
|
|
|
|
|
|
|
|
|
# scripts and data files
|
2008-03-06 06:04:28 +03:00
|
|
|
local bootScripts = Bootscript Bootscript.cd SetupEnvironment Netscript InstallerInitScript
|
2007-03-28 20:39:29 +04:00
|
|
|
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
|
|
|
|
2007-03-28 20:39:29 +04:00
|
|
|
local logoArtwork = "HAIKU logo - white on blue - big.png"
|
2008-10-08 02:07:19 +04:00
|
|
|
"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.
|
|
|
|
AddFilesToHaikuImage home config settings Mail ProviderInfo : $(HAIKU_PROVIDER_INFOS) ;
|
|
|
|
|
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-04-03 13:02:44 +04:00
|
|
|
AddFilesToHaikuImage system etc word_dictionary : $(spellFiles) ;
|
2007-08-29 23:31:32 +04:00
|
|
|
|
2009-04-18 02:05:11 +04:00
|
|
|
local etcFiles = bash_completion inputrc profile teapot.data ;
|
2005-10-29 20:27:43 +04:00
|
|
|
etcFiles = $(etcFiles:G=etc) ;
|
|
|
|
SEARCH on $(etcFiles) = [ FDirName $(HAIKU_TOP) data etc ] ;
|
2008-06-19 18:32:25 +04:00
|
|
|
etcFiles += <etc>termcap <etc>sysless <etc>sysless.in ;
|
2009-04-03 13:02:44 +04:00
|
|
|
AddFilesToHaikuImage system etc : $(etcFiles) ;
|
2005-10-29 20:27:43 +04:00
|
|
|
|
2009-07-23 16:10:09 +04:00
|
|
|
SEARCH on <bash_completion>subversion =
|
2009-07-22 22:06:02 +04:00
|
|
|
[ FDirName $(HAIKU_TOP) data etc bash_completion.d ] ;
|
|
|
|
AddFilesToHaikuImage system etc bash_completion.d : <bash_completion>subversion ;
|
|
|
|
|
2008-06-19 18:32:25 +04:00
|
|
|
SEARCH on <etc>vimrc = [ FDirName $(HAIKU_TOP) data etc vim ] ;
|
2009-04-03 13:02:44 +04:00
|
|
|
AddFilesToHaikuImage system etc vim : <etc>vimrc ;
|
2008-06-19 18:32:25 +04:00
|
|
|
|
2007-01-06 23:52:49 +03:00
|
|
|
local fortuneFiles = Art Computers Education Food Fortunes Goedel Haiku
|
|
|
|
Humorists Kids Law "Linux cookies" Love Magic Medicine Miscellaneous
|
|
|
|
News "One Liners" "OS Fortunes" Pets Platitudes Riddles "Songs & Poems"
|
|
|
|
Sports "Tech Support Excuses" ;
|
|
|
|
fortuneFiles = $(fortuneFiles:G=etc!fortunes) ;
|
|
|
|
SEARCH on $(fortuneFiles) = [ FDirName $(HAIKU_TOP) data etc fortunes ] ;
|
2009-04-03 13:02:44 +04:00
|
|
|
AddFilesToHaikuImage system etc fortunes : $(fortuneFiles) ;
|
2007-01-06 23:52:49 +03:00
|
|
|
|
2005-10-29 20:27:43 +04:00
|
|
|
local fontDir = [ FDirName $(HAIKU_TOP) data etc fonts ] ;
|
|
|
|
local psFonts = [ Glob $(fontDir)/psfonts : *.afm *.pfb ] ;
|
|
|
|
local ttFonts = [ Glob $(fontDir)/ttfonts : *.ttf ] ;
|
2009-04-03 13:02:44 +04:00
|
|
|
AddFilesToHaikuImage system fonts psfonts : $(psFonts) ;
|
|
|
|
AddFilesToHaikuImage system 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-04-05 19:59:08 +04:00
|
|
|
local keymapFiles = [ Glob [ FDirName $(HAIKU_TOP) src data etc 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
|
|
|
|
2009-04-05 19:59:08 +04:00
|
|
|
local keyboardLayoutsDir
|
|
|
|
= [ FDirName $(HAIKU_TOP) data system data KeyboardLayouts ] ;
|
|
|
|
local keyboardLayouts = [ Glob $(keyboardLayoutsDir) : [^.]* ] ;
|
|
|
|
AddFilesToHaikuImage system data KeyboardLayouts : $(keyboardLayouts) ;
|
|
|
|
|
2005-10-29 20:27:43 +04:00
|
|
|
local timezones = [ FTimeZoneBinaries $(HAIKU_TIME_ZONE_SOURCES) : : true ] ;
|
|
|
|
for timezone in $(timezones) {
|
|
|
|
local dir = [ on $(timezone) return $(RELATIVE_TIMEZONE_DIR) ] ;
|
2009-04-03 13:02:44 +04:00
|
|
|
AddFilesToHaikuImage system data timezones $(dir) : $(timezone) ;
|
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
|
2008-05-07 02:47:38 +04:00
|
|
|
local postInstallFiles = 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-04-30 19:45:19 +04:00
|
|
|
$(X86_ONLY)acpi $(ATA_ONLY)ata pci $(X86_ONLY)isa config_manager
|
|
|
|
$(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
|
2008-06-09 00:09:12 +04: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
|
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) ;
|
|
|
|
AddFilesToHaikuImage system add-ons opengl
|
2009-04-10 07:09:05 +04:00
|
|
|
: Mesa\ Software\ Renderer ;
|
2009-05-27 05:12:34 +04:00
|
|
|
AddFilesToHaikuHybridImage system add-ons Translators
|
|
|
|
: $(SYSTEM_ADD_ONS_TRANSLATORS) : : 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 ;
|
|
|
|
AddFilesToHaikuImage system add-ons mail_daemon inbound_filters : Match\ Header Spam\ Filter R5\ Daemon\ Filter ;
|
|
|
|
AddFilesToHaikuImage system add-ons mail_daemon outbound_filters : Fortune ;
|
|
|
|
AddFilesToHaikuImage system add-ons mail_daemon system_filters : Inbox New\ Mail\ Notification Outbox Message\ Parser ;
|
|
|
|
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
|
2009-09-05 20:49:15 +04:00
|
|
|
: FileType-F Mark\ as\ New-N Mark\ as\ Read-R Open\ Target\ Folder-O OpenTerminal-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
|
2008-11-14 13:41:22 +03:00
|
|
|
: <input>keyboard <input>mouse <input>wacom ;
|
2009-04-03 13:02:44 +04:00
|
|
|
AddFilesToHaikuImage system add-ons input_server filters : screen_saver ;
|
|
|
|
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 ;
|
|
|
|
|
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 ;
|
|
|
|
AddDirectoryToHaikuImage var empty ;
|
|
|
|
AddDirectoryToHaikuImage var log ;
|
|
|
|
AddDirectoryToHaikuImage var tmp ;
|
|
|
|
|
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 ;
|
2006-06-03 19:13:39 +04:00
|
|
|
AddDirectoryToHaikuImage home config add-ons Tracker ;
|
|
|
|
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
|
|
|
|
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 ;
|
|
|
|
|
2007-07-28 11:17:23 +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 ] ;
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
if $(HAIKU_ADD_ALTERNATIVE_GCC_LIBS) && $(HAIKU_ALTERNATIVE_GCC_OUTPUT_DIR) {
|
|
|
|
# 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)
|
2008-05-18 03:47:39 +04:00
|
|
|
$(JAM:E=jam) -q $(COMMAND_LINE) ;
|
|
|
|
}
|
|
|
|
|
|
|
|
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
|
2009-05-25 05:21:32 +04:00
|
|
|
UnzipArchiveToHaikuImage : $(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) ;
|
|
|
|
HAIKU_IMAGE_SIZE ?= $(HAIKU_DEFAULT_IMAGE_SIZE) ; # 100 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
|
|
|
|
|
|
|
# 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 ] ;
|
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 ;
|
2007-09-05 01:50:00 +04:00
|
|
|
HAIKU_IMAGE_UNZIP_FILES_SCRIPT = <HaikuImage>haiku.image-unzip-files ;
|
2005-10-29 20:27:43 +04:00
|
|
|
MakeLocate $(HAIKU_IMAGE_MAKE_DIRS_SCRIPT) $(HAIKU_IMAGE_COPY_FILES_SCRIPT)
|
2007-09-05 01:50:00 +04:00
|
|
|
$(HAIKU_IMAGE_UNZIP_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) ;
|
2007-09-05 01:50:00 +04:00
|
|
|
CreateHaikuImageUnzipFilesScript $(HAIKU_IMAGE_UNZIP_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)
|
2007-09-05 01:50:00 +04:00
|
|
|
$(HAIKU_IMAGE_UNZIP_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)
|
2007-09-05 01:50:00 +04:00
|
|
|
$(HAIKU_IMAGE_UNZIP_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 ;
|