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
|
|
|
|
|
|
|
# create directories that will remain empty
|
|
|
|
AddDirectoryToHaikuImage home Desktop ;
|
2006-06-03 19:13:39 +04:00
|
|
|
AddDirectoryToHaikuImage home config bin ;
|
|
|
|
AddDirectoryToHaikuImage home config lib ;
|
2007-12-02 17:30:52 +03:00
|
|
|
AddDirectoryToHaikuImage home mail ;
|
2008-03-30 09:59:54 +04:00
|
|
|
AddDirectoryToHaikuImage var empty ;
|
2005-10-29 20:27:43 +04:00
|
|
|
AddDirectoryToHaikuImage var log ;
|
|
|
|
AddDirectoryToHaikuImage var tmp ;
|
|
|
|
|
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 = "" ;
|
|
|
|
}
|
|
|
|
|
2008-03-30 23:55:13 +04:00
|
|
|
BEOS_BIN = "[" addattr alert arp base64 basename bc beep bootman bzip2 cal cat
|
2008-03-30 09:59:54 +04:00
|
|
|
catattr chgrp chmod chop chown chroot cksum clear clockconfig cmp comm
|
|
|
|
compress cp copyattr $(X86_ONLY)CortexAddOnHost
|
2007-03-28 20:39:29 +04:00
|
|
|
csplit ctags cut date dc dd desklink df diff diff3 dircolors dirname
|
2008-04-18 04:34:05 +04:00
|
|
|
draggers driveinfo dstcheck du echo eject env error expand expr
|
2008-02-03 19:37:49 +03:00
|
|
|
expr factor false fdinfo ffm find finddir fmt fold fortune frcode ftp ftpd
|
2008-07-06 11:45:09 +04:00
|
|
|
funzip fwcontrol
|
2007-09-03 22:44:57 +04:00
|
|
|
gawk $(X86_ONLY)gdb grep groups gzip gzexe hd head hey hostname id ident
|
|
|
|
ideinfo idestatus ifconfig <bin>install installsound iroster isvolume join
|
2008-06-25 01:10:45 +04:00
|
|
|
keymap kill less lessecho lesskey link listarea listattr listimage listdev
|
2007-07-04 20:34:43 +04:00
|
|
|
listport listres listsem ln locate logger login logname ls lsindex m4 make
|
2008-09-15 17:46:40 +04:00
|
|
|
makebootable md5sum merge mimeset mkdos mkdir mkfifo mkfs mkindex modifiers
|
|
|
|
mount mount_nfs mountvolume mv 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 release renice rescan rlog
|
|
|
|
rm rmattr rmindex rmdir roster route
|
|
|
|
safemode screen_blanker screenmode sed setdecor settype setversion setvolume
|
|
|
|
seq sh sha1sum shar shred shuf shutdown sleep sort split stat strace stty su
|
|
|
|
sum sync sysinfo
|
|
|
|
tac tail tar tcpdump tcptester tee telnet telnetd test top touch tput tr
|
|
|
|
traceroute translate true tsort tty
|
|
|
|
uname unchop unexpand unmount uniq unrar unshar unzip unzipsfx <bin>updatedb
|
|
|
|
uptime urlwrapper usb_dev_info useradd uudecode uuencode
|
2008-09-17 20:27:17 +04:00
|
|
|
vdir version vim vmstat waitfor 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
|
|
|
;
|
|
|
|
|
2008-09-08 15:04:39 +04:00
|
|
|
BEOS_APPS = AboutSystem ActivityMonitor CodyCam DeskCalc DiskProbe DiskUsage
|
|
|
|
DriveSetup CDPlayer Expander Icon-O-Matic Installer LaunchBox Magnify Mail
|
|
|
|
MediaPlayer MidiPlayer NetworkStatus PackageInstaller People PowerStatus
|
2008-10-01 01:46:09 +04:00
|
|
|
ProcessController Screenshot ShowImage SoundRecorder StyledEdit Terminal
|
|
|
|
TextSearch TV Workspaces
|
2005-10-29 20:27:43 +04:00
|
|
|
;
|
2008-01-27 16:14:50 +03:00
|
|
|
BEOS_PREFERENCES = Appearance Backgrounds DataTranslations E-mail
|
2007-11-13 13:46:51 +03:00
|
|
|
FileTypes Fonts Keyboard Keymap Media Menu Mouse Network Printers Screen
|
|
|
|
ScreenSaver Sounds Time VirtualMemory
|
2005-10-29 20:27:43 +04:00
|
|
|
;
|
2008-03-06 15:42:16 +03:00
|
|
|
BEOS_DEMOS = BSnow Chart Clock $(X86_ONLY)Cortex FontDemo
|
2008-09-05 13:10:24 +04:00
|
|
|
$(X86_ONLY)GLDirectMode $(X86_ONLY)GLTeapot Mandelbrot Pairs
|
2007-08-25 21:39:46 +04:00
|
|
|
Playground Pulse Sudoku
|
2006-10-24 17:54:53 +04:00
|
|
|
;
|
2008-02-06 16:22:14 +03:00
|
|
|
BEOS_SYSTEM_LIBS = libbe.so $(HAIKU_LIBSTDC++) libmedia.so libtracker.so
|
2008-05-14 17:49:48 +04:00
|
|
|
libtranslation.so libbnetapi.so libnetwork.so libdebug.so libbsd.so
|
2008-05-14 03:41:09 +04:00
|
|
|
libmail.so libtextencoding.so libz.so libfreetype.so libpng.so libmidi.so
|
|
|
|
libmidi2.so libdevice.so libgame.so libscreensaver.so <revisioned>libroot.so
|
2008-02-06 13:51:44 +03:00
|
|
|
$(X86_ONLY)libGL.so libfluidsynth.so liblpsolve55.so liblinprog.so libalm.so
|
2008-02-09 20:48:10 +03:00
|
|
|
libilmimf.so
|
2005-10-29 20:27:43 +04:00
|
|
|
;
|
2007-03-28 20:39:29 +04:00
|
|
|
BEOS_SYSTEM_SERVERS = registrar debug_server syslog_daemon media_server
|
|
|
|
net_server media_addon_server input_server app_server fake_app_server
|
2007-04-15 18:46:12 +04:00
|
|
|
midi_server print_server mail_daemon
|
2005-10-29 20:27:43 +04:00
|
|
|
;
|
|
|
|
|
2006-08-08 16:33:33 +04:00
|
|
|
BEOS_NETWORK_DEVICES = ethernet loopback ;
|
2008-01-04 00:15:25 +03:00
|
|
|
BEOS_NETWORK_DATALINK_PROTOCOLS = ethernet_frame <module>arp loopback_frame
|
|
|
|
ipv4_datagram ;
|
2006-08-08 16:33:33 +04:00
|
|
|
#BEOS_NETWORK_PPP = ipcp modem pap pppoe ;
|
2008-04-12 22:42:12 +04:00
|
|
|
BEOS_NETWORK_PROTOCOLS = ipv4 tcp udp icmp unix ;
|
2005-10-29 20:27:43 +04:00
|
|
|
|
2007-05-04 11:49:53 +04:00
|
|
|
BEOS_ADD_ONS_ACCELERANTS = $(X86_ONLY)radeon.accelerant $(X86_ONLY)nvidia.accelerant
|
|
|
|
$(X86_ONLY)matrox.accelerant $(X86_ONLY)neomagic.accelerant
|
2008-06-11 01:53:00 +04:00
|
|
|
$(X86_ONLY)intel_extreme.accelerant $(X86_ONLY)s3.accelerant $(X86_ONLY)vesa.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
|
|
|
;
|
2008-02-09 20:48:10 +03:00
|
|
|
BEOS_ADD_ONS_TRANSLATORS = BMPTranslator EXRTranslator GIFTranslator JPEGTranslator
|
2008-02-17 15:02:15 +03:00
|
|
|
JPEG2000Translator PCXTranslator PNGTranslator PPMTranslator RAWTranslator
|
2006-04-30 00:14:26 +04:00
|
|
|
RTF-Translator SGITranslator STXTTranslator TGATranslator
|
2008-02-17 15:02:15 +03:00
|
|
|
TIFFTranslator WonderBrushTranslator
|
2005-10-29 20:27:43 +04:00
|
|
|
;
|
2008-03-30 05:41:10 +04:00
|
|
|
BEOS_ADD_ONS_MEDIA = cortex_audioadapter.media_addon cortex_flanger.media_addon
|
|
|
|
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
|
2006-05-09 18:25:59 +04:00
|
|
|
#legacy.media_addon
|
2005-10-29 20:27:43 +04:00
|
|
|
;
|
2006-05-10 00:05:27 +04:00
|
|
|
BEOS_ADD_ONS_MEDIA_PLUGINS = $(GPL_ONLY)ac3_decoder
|
2006-05-19 19:52:21 +04:00
|
|
|
aiff_reader au_reader $(X86_ONLY)avcodec avi_reader
|
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
|
2006-05-10 00:05:27 +04:00
|
|
|
# theora
|
|
|
|
vorbis wav_reader
|
2005-10-29 20:27:43 +04:00
|
|
|
;
|
2007-03-28 20:39:29 +04:00
|
|
|
BEOS_ADD_ONS_PRINT = Canon\ LIPS3\ Compatible Canon\ LIPS4\ Compatible
|
|
|
|
PCL5\ Compatible PCL6\ Compatible PDF\ Writer PS\ Compatible Preview
|
2006-10-07 23:21:22 +04:00
|
|
|
;
|
2007-03-28 20:39:29 +04:00
|
|
|
BEOS_ADD_ONS_PRINT_TRANSPORT = HP\ JetDirect IPP LPR Parallel\ Port
|
|
|
|
Print\ To\ File Serial\ Port USB\ Port
|
2006-10-07 23:21:22 +04:00
|
|
|
;
|
2007-11-13 14:48:35 +03:00
|
|
|
BEOS_ADD_ONS_SCREENSAVERS = Haiku IFS Spider ;
|
2008-08-18 02:10:08 +04:00
|
|
|
BEOS_ADD_ONS_DRIVERS_AUDIO = auich auvia echo3g emuxki ; #hda
|
2007-05-04 11:49:53 +04:00
|
|
|
BEOS_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
|
2005-10-29 20:27:43 +04:00
|
|
|
;
|
2006-08-28 14:21:58 +04:00
|
|
|
BEOS_ADD_ONS_DRIVERS_MIDI = emuxki ;
|
2008-01-04 00:15:25 +03:00
|
|
|
BEOS_ADD_ONS_DRIVERS_NET = $(X86_ONLY)3com etherpci $(X86_ONLY)ipro1000
|
2008-10-06 16:07:11 +04:00
|
|
|
$(X86_ONLY)rtl8139 rtl8169 $(X86_ONLY)rtl81xx sis900
|
|
|
|
$(X86_ONLY)via_rhine wb840 $(X86_ONLY)ipro100 $(X86_ONLY)nforce
|
2008-10-06 16:09:09 +04:00
|
|
|
#vlance
|
|
|
|
$(X86_ONLY)marvell_yukon $(X86_ONLY)syskonnect usb_ecm
|
2006-05-10 00:05:27 +04:00
|
|
|
$(GPL_ONLY)bcm440x $(GPL_ONLY)bcm570x
|
2005-10-29 20:27:43 +04:00
|
|
|
;
|
2007-01-04 12:47:08 +03:00
|
|
|
#BEOS_ADD_ONS_DRIVERS_ACPI = $(X86_ONLY)acpi_button ;
|
2007-03-28 20:39:29 +04:00
|
|
|
BEOS_ADD_ONS_BUS_MANAGERS = pci $(X86_ONLY)ps2 $(X86_ONLY)isa ide scsi
|
2008-09-17 20:27:17 +04:00
|
|
|
config_manager agp_gart usb firewire #acpi
|
2006-05-02 23:10:10 +04:00
|
|
|
;
|
2008-10-01 18:30:18 +04:00
|
|
|
BEOS_ADD_ONS_FILE_SYSTEMS = bfs cdda ext2 fat iso9660 nfs $(GPL_ONLY)reiserfs ;
|
|
|
|
#googlefs $(GPL_ONLY)ntfs ;
|
2005-10-29 20:27:43 +04:00
|
|
|
|
|
|
|
|
|
|
|
# modules
|
|
|
|
AddFilesToHaikuImage beos system add-ons kernel bus_managers
|
|
|
|
: $(BEOS_ADD_ONS_BUS_MANAGERS) ;
|
2008-01-27 01:18:52 +03:00
|
|
|
AddFilesToHaikuImage beos system add-ons kernel busses agp_gart
|
2008-02-05 15:36:18 +03:00
|
|
|
: $(X86_ONLY)<agp_gart>intel ;
|
2005-10-29 20:27:43 +04:00
|
|
|
AddFilesToHaikuImage beos system add-ons kernel busses ide
|
2008-06-09 00:09:12 +04:00
|
|
|
: generic_ide_pci it8211 legacy_sata silicon_image_3112 $(X86_ONLY)ide_isa ;
|
2007-08-24 03:29:08 +04:00
|
|
|
AddFilesToHaikuImage beos system add-ons kernel busses scsi
|
|
|
|
: ahci ;
|
2006-08-25 00:25:29 +04:00
|
|
|
AddFilesToHaikuImage beos system add-ons kernel busses usb
|
2008-05-20 00:41:58 +04:00
|
|
|
: <usb>uhci <usb>ohci <usb>ehci ;
|
2005-10-29 20:27:43 +04:00
|
|
|
AddFilesToHaikuImage beos system add-ons kernel console : vga_text ;
|
2008-02-20 03:40:07 +03:00
|
|
|
AddFilesToHaikuImage beos system add-ons kernel debugger
|
2008-07-25 01:40:34 +04:00
|
|
|
: $(X86_ONLY)<kdebug>disasm <kdebug>hangman <kdebug>invalidate_on_exit ;
|
2007-03-28 20:39:29 +04:00
|
|
|
AddFilesToHaikuImage beos system add-ons kernel file_systems
|
2007-05-22 17:21:58 +04:00
|
|
|
: $(BEOS_ADD_ONS_FILE_SYSTEMS) ;
|
2005-10-29 20:27:43 +04:00
|
|
|
AddFilesToHaikuImage beos system add-ons kernel generic
|
* First baby steps in letting our drivers use the new I/O request/scheduler
architecture: for now, we do this on the lowest layer only, therefore all
requests are handled synchronously (ie. in the scheduler's thread).
* Instead of using the block_io module, scsi_disk (and scsi_cd) are now
exporting a device on their own, and use an I/O scheduler with an appropriate
DMA resource.
* There are still lots of TODOs, and it can easily panic - don't update if
you intend to demo Haiku.
* scsi_periph now only has an io() function that get an io_operation, instead
of the previous read/write functions, moved preferred CCB size from those
functions into the device registration.
* Changed all scsi_periph files to C++.
* scsi_cd ported, too, but untested.
* Removed block_io from image - it will be removed completely soon.
* Temporarily commented an ASSERT() in the ATA bus manager (in case you use
it); it's sometimes triggered by the code now, and I haven't yet looked into
the issue -- doesn't seem to harm, at least.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26828 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-08-06 01:11:51 +04:00
|
|
|
: dpc ide_adapter locked_pool mpu401 scsi_periph ;
|
2007-03-28 20:39:29 +04:00
|
|
|
AddFilesToHaikuImage beos system add-ons kernel partitioning_systems
|
|
|
|
: intel session ;
|
2006-02-07 05:42:38 +03:00
|
|
|
AddFilesToHaikuImage beos system add-ons kernel interrupt_controllers
|
|
|
|
: $(PPC_ONLY)openpic ;
|
2005-10-29 20:27:43 +04:00
|
|
|
|
2005-12-12 20:20:32 +03:00
|
|
|
if $(TARGET_ARCH) = x86 {
|
|
|
|
AddFilesToHaikuImage beos system add-ons kernel cpu : generic_x86 ;
|
|
|
|
}
|
|
|
|
|
2005-10-29 20:27:43 +04:00
|
|
|
# drivers
|
2008-08-08 15:26:58 +04:00
|
|
|
AddNewDriversToHaikuImage disk scsi : scsi_cd scsi_disk ;
|
|
|
|
|
|
|
|
# legacy drivers
|
2006-01-07 23:29:50 +03:00
|
|
|
AddDriversToHaikuImage : console dprintf $(X86_ONLY)keyboard null
|
|
|
|
random <driver>tty zero ;
|
2006-03-15 03:41:24 +03:00
|
|
|
AddDriversToHaikuImage audio hmulti : $(BEOS_ADD_ONS_DRIVERS_AUDIO) ;
|
2007-06-09 16:07:55 +04:00
|
|
|
AddDriversToHaikuImage midi : $(BEOS_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 ;
|
2005-10-29 20:27:43 +04:00
|
|
|
AddDriversToHaikuImage graphics : $(BEOS_ADD_ONS_DRIVERS_GRAPHICS) ;
|
2008-01-20 23:38:57 +03:00
|
|
|
AddDriversToHaikuImage input : ps2_hid usb_hid wacom ;
|
2007-04-23 23:11:02 +04:00
|
|
|
AddDriversToHaikuImage misc : <driver>poke <driver>test ;
|
2005-10-29 20:27:43 +04:00
|
|
|
AddDriversToHaikuImage net : $(BEOS_ADD_ONS_DRIVERS_NET) ;
|
2007-01-04 12:47:08 +03:00
|
|
|
#AddDriversToHaikuImage power : $(BEOS_ADD_ONS_DRIVERS_ACPI) ;
|
2005-10-29 20:27:43 +04:00
|
|
|
|
|
|
|
# kernel
|
2007-05-19 19:36:32 +04:00
|
|
|
AddFilesToHaikuImage beos system : <revisioned>kernel_$(TARGET_ARCH) ;
|
2005-10-29 20:27:43 +04:00
|
|
|
|
|
|
|
# libs
|
2008-02-06 16:22:14 +03:00
|
|
|
AddFilesToHaikuImage beos system lib : $(BEOS_SYSTEM_LIBS) ;
|
|
|
|
|
2006-10-06 21:20:50 +04:00
|
|
|
# libnetwork.so replaces quite a few libraries
|
2008-02-06 16:22:14 +03:00
|
|
|
BEOS_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
|
|
|
|
|
|
|
local lib ;
|
|
|
|
for lib in $(BEOS_SYSTEM_LIBS_LIBNETWORK_ALIASES) {
|
|
|
|
AddSymlinkToHaikuImage beos system lib : libnetwork.so : $(lib) ;
|
|
|
|
}
|
|
|
|
|
2008-05-14 17:49:48 +04:00
|
|
|
AddSymlinkToHaikuImage beos system lib : libbnetapi.so : libnetapi.so ;
|
|
|
|
|
2008-07-26 17:26:37 +04:00
|
|
|
# libGL.so has GLU (like BeOS) *and* GLUT API built-in
|
|
|
|
BEOS_SYSTEM_LIBS_LIBGL_ALIASES
|
|
|
|
= libGLU.so libglut.so ;
|
|
|
|
|
2008-07-29 02:13:34 +04:00
|
|
|
if $(TARGET_ARCH) = x86 {
|
2008-07-26 17:26:37 +04:00
|
|
|
local lib ;
|
|
|
|
for lib in $(BEOS_SYSTEM_LIBS_LIBGL_ALIASES) {
|
2008-07-29 02:13:34 +04:00
|
|
|
AddSymlinkToHaikuImage beos system lib : libGL.so : $(lib) ;
|
|
|
|
}
|
2007-07-30 22:43:32 +04:00
|
|
|
}
|
2005-10-29 20:27:43 +04:00
|
|
|
|
|
|
|
# servers
|
|
|
|
AddFilesToHaikuImage beos system servers : $(BEOS_SYSTEM_SERVERS) ;
|
|
|
|
|
|
|
|
# apps
|
2006-03-30 22:08:51 +04:00
|
|
|
AddFilesToHaikuImage beos system : runtime_loader Deskbar Tracker ;
|
2006-06-29 22:47:10 +04:00
|
|
|
AddFilesToHaikuImage beos bin : $(BEOS_BIN) consoled ;
|
2005-10-29 20:27:43 +04:00
|
|
|
AddFilesToHaikuImage beos apps : $(BEOS_APPS) ;
|
2007-06-09 16:07:55 +04:00
|
|
|
AddFilesToHaikuImage beos preferences : $(BEOS_PREFERENCES) ;
|
2006-10-24 17:54:53 +04:00
|
|
|
AddFilesToHaikuImage beos demos : $(BEOS_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 ] ;
|
|
|
|
AddFilesToHaikuImage beos bin : which ;
|
|
|
|
|
2008-03-27 04:02:30 +03:00
|
|
|
AddSymlinkToHaikuImage beos bin : sh : bash ;
|
|
|
|
|
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 ;
|
2008-04-18 19:26:39 +04:00
|
|
|
DESKBAR_APPLICATIONS = ActivityMonitor CodyCam CDPlayer DeskCalc DiskProbe
|
2008-09-08 15:04:39 +04:00
|
|
|
DriveSetup DiskUsage Icon-O-Matic Magnify Mail MediaPlayer MidiPlayer
|
2008-10-01 01:46:09 +04:00
|
|
|
People Screenshot SoundRecorder StyledEdit Terminal TV
|
2008-04-18 19:26:39 +04:00
|
|
|
;
|
|
|
|
local app ;
|
|
|
|
for app in $(DESKBAR_APPLICATIONS) {
|
|
|
|
AddSymlinkToHaikuImage home config be Applications
|
|
|
|
: /boot/beos/apps/$(app) : $(app) ;
|
|
|
|
}
|
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
|
|
|
|
;
|
|
|
|
for app in $(DESKBAR_DESKTOP_APPLETS) {
|
|
|
|
AddSymlinkToHaikuImage home config be Desktop\ Applets
|
|
|
|
: /boot/beos/apps/$(app) : $(app) ;
|
|
|
|
}
|
2007-06-09 16:07:55 +04:00
|
|
|
|
|
|
|
# Deskbar Preferences and Demos links
|
2005-11-27 01:04:33 +03:00
|
|
|
AddSymlinkToHaikuImage home config be : /boot/beos/preferences : Preferences ;
|
2006-10-24 17:54:53 +04:00
|
|
|
AddSymlinkToHaikuImage home config be : /boot/beos/demos : Demos ;
|
2005-11-27 01:04:33 +03:00
|
|
|
|
2007-04-27 02:11:52 +04:00
|
|
|
AddSymlinkToHaikuImage beos bin : bzip2 : bunzip2 ;
|
2005-11-27 01:04:33 +03:00
|
|
|
AddSymlinkToHaikuImage beos bin : less : more ;
|
2006-01-17 17:49:50 +03:00
|
|
|
AddSymlinkToHaikuImage beos bin : gzip : gunzip ;
|
|
|
|
AddSymlinkToHaikuImage beos bin : gzip : zcat ;
|
|
|
|
AddSymlinkToHaikuImage beos bin : zdiff : zcmp ;
|
|
|
|
AddSymlinkToHaikuImage beos bin : unzip : zipinfo ;
|
2007-03-26 06:55:19 +04:00
|
|
|
AddSymlinkToHaikuImage beos bin : gawk : awk ;
|
|
|
|
AddSymlinkToHaikuImage beos bin : grep : egrep ;
|
|
|
|
AddSymlinkToHaikuImage beos bin : grep : fgrep ;
|
|
|
|
AddSymlinkToHaikuImage beos bin : vim : vi ;
|
|
|
|
AddSymlinkToHaikuImage beos 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 ] ;
|
|
|
|
AddFilesToHaikuImage beos system boot : $(bootScripts) ;
|
|
|
|
|
2007-03-28 20:39:29 +04:00
|
|
|
local logoArtwork = "HAIKU logo - white on blue - big.png"
|
|
|
|
"HAIKU logo - white on blue - small.png" ;
|
2006-05-29 18:45:45 +04:00
|
|
|
SEARCH on $(logoArtwork) = [ FDirName $(HAIKU_TOP) data artwork ] ;
|
|
|
|
AddFilesToHaikuImage beos etc artwork : $(logoArtwork) ;
|
|
|
|
|
2008-05-08 15:17:09 +04:00
|
|
|
AddDirectoryToHaikuImage beos etc sounds ;
|
|
|
|
|
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 ] ;
|
|
|
|
AddFilesToHaikuImage beos etc word_dictionary : $(spellFiles) ;
|
|
|
|
|
2008-06-17 02:18:39 +04:00
|
|
|
local etcFiles = 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 ;
|
2005-10-29 20:27:43 +04:00
|
|
|
AddFilesToHaikuImage beos etc : $(etcFiles) ;
|
|
|
|
|
2008-06-19 18:32:25 +04:00
|
|
|
SEARCH on <etc>vimrc = [ FDirName $(HAIKU_TOP) data etc vim ] ;
|
|
|
|
AddFilesToHaikuImage beos etc vim : <etc>vimrc ;
|
|
|
|
|
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 ] ;
|
|
|
|
AddFilesToHaikuImage beos etc fortunes : $(fortuneFiles) ;
|
|
|
|
|
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 ] ;
|
|
|
|
AddFilesToHaikuImage beos etc fonts psfonts : $(psFonts) ;
|
|
|
|
AddFilesToHaikuImage beos etc fonts ttfonts : $(ttFonts) ;
|
|
|
|
|
|
|
|
local kanbeDir = [ FDirName $(HAIKU_TOP) data etc KanBe ] ;
|
|
|
|
local kanbeDefault = [ Glob $(kanbeDir)/default : *.canna *.gz ] ;
|
|
|
|
local kanbeDic = [ Glob $(kanbeDir)/dic : *.cbp ] ;
|
|
|
|
local kanbeDicCanna = [ Glob $(kanbeDir)/dic/canna
|
|
|
|
: *.cld *.ctd *.cbd *.dir ] ;
|
|
|
|
AddFilesToHaikuImage beos etc KanBe default : $(kanbeDefault) ;
|
|
|
|
AddFilesToHaikuImage beos etc KanBe dic : $(kanbeDic) ;
|
|
|
|
AddFilesToHaikuImage beos etc KanBe dic canna : $(kanbeDicCanna) ;
|
|
|
|
AddDirectoryToHaikuImage beos etc KanBe dic group ;
|
|
|
|
AddDirectoryToHaikuImage beos etc KanBe dic user ;
|
|
|
|
|
2007-03-28 20:39:29 +04:00
|
|
|
local keymapFiles = [ GLOB [ FDirName $(HAIKU_TOP) src data etc keymaps ]
|
|
|
|
: *.keymap ] ;
|
2005-10-29 20:27:43 +04:00
|
|
|
keymapFiles = $(keymapFiles:BG=keymap) ;
|
2005-11-05 02:55:39 +03:00
|
|
|
AddFilesToHaikuImage beos etc Keymap : $(keymapFiles) ;
|
2007-07-30 22:43:32 +04:00
|
|
|
AddSymlinkToHaikuImage beos etc Keymap : Swedish : Finnish ;
|
|
|
|
AddSymlinkToHaikuImage beos etc Keymap : Slovene : Croatian ;
|
|
|
|
AddSymlinkToHaikuImage beos etc Keymap : US-International : Brazilian ;
|
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) ] ;
|
|
|
|
AddFilesToHaikuImage beos etc timezones $(dir) : $(timezone) ;
|
|
|
|
}
|
|
|
|
|
|
|
|
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
|
|
|
|
AddFilesToHaikuImage beos system : zbeos ;
|
|
|
|
|
|
|
|
# boot module links
|
2008-03-19 19:19:47 +03:00
|
|
|
AddBootModuleSymlinksToHaikuImage
|
2008-06-07 14:48:49 +04:00
|
|
|
pci $(X86_ONLY)isa config_manager ide scsi usb
|
2008-03-04 04:01:00 +03:00
|
|
|
$(PPC_ONLY)openpic
|
* First baby steps in letting our drivers use the new I/O request/scheduler
architecture: for now, we do this on the lowest layer only, therefore all
requests are handled synchronously (ie. in the scheduler's thread).
* Instead of using the block_io module, scsi_disk (and scsi_cd) are now
exporting a device on their own, and use an I/O scheduler with an appropriate
DMA resource.
* There are still lots of TODOs, and it can easily panic - don't update if
you intend to demo Haiku.
* scsi_periph now only has an io() function that get an io_operation, instead
of the previous read/write functions, moved preferred CCB size from those
functions into the device registration.
* Changed all scsi_periph files to C++.
* scsi_cd ported, too, but untested.
* Removed block_io from image - it will be removed completely soon.
* Temporarily commented an ASSERT() in the ATA bus manager (in case you use
it); it's sometimes triggered by the code now, and I haven't yet looked into
the issue -- doesn't seem to harm, at least.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26828 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-08-06 01:11:51 +04:00
|
|
|
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
|
|
|
|
AddFilesToHaikuImage beos system add-ons accelerants
|
|
|
|
: $(BEOS_ADD_ONS_ACCELERANTS) ;
|
2008-03-19 19:19:47 +03:00
|
|
|
AddFilesToHaikuImage beos system add-ons opengl
|
2006-12-13 22:58:50 +03:00
|
|
|
: $(X86_ONLY)Mesa\ Software\ Renderer ;
|
2005-10-29 20:27:43 +04:00
|
|
|
AddFilesToHaikuImage beos system add-ons Translators
|
|
|
|
: $(BEOS_ADD_ONS_TRANSLATORS) ;
|
2007-05-01 21:30:29 +04:00
|
|
|
AddFilesToHaikuImage beos system add-ons mail_daemon inbound_protocols : POP3 IMAP ;
|
|
|
|
AddFilesToHaikuImage beos system add-ons mail_daemon outbound_protocols : SMTP ;
|
|
|
|
AddFilesToHaikuImage beos system add-ons mail_daemon inbound_filters : Match\ Header Spam\ Filter R5\ Daemon\ Filter ;
|
|
|
|
AddFilesToHaikuImage beos system add-ons mail_daemon outbound_filters : Fortune ;
|
|
|
|
AddFilesToHaikuImage beos system add-ons mail_daemon system_filters : Inbox New\ Mail\ Notification Outbox Message\ Parser ;
|
2005-10-29 20:27:43 +04:00
|
|
|
AddFilesToHaikuImage beos system add-ons media : $(BEOS_ADD_ONS_MEDIA) ;
|
|
|
|
AddFilesToHaikuImage beos system add-ons media plugins
|
|
|
|
: $(BEOS_ADD_ONS_MEDIA_PLUGINS) ;
|
2006-02-07 19:50:27 +03:00
|
|
|
AddFilesToHaikuImage beos system add-ons Tracker : FileType-F ZipOMatic-Z ;
|
2007-03-28 20:39:29 +04:00
|
|
|
AddSymlinkToHaikuImage beos system add-ons Tracker
|
|
|
|
: /boot/beos/preferences/Backgrounds : Background-B ;
|
2008-08-02 22:54:13 +04:00
|
|
|
AddSymlinkToHaikuImage beos system add-ons Tracker
|
|
|
|
: /boot/beos/apps/TextSearch : TextSearch-G ;
|
2008-09-08 15:04:39 +04:00
|
|
|
AddSymlinkToHaikuImage beos system add-ons Tracker
|
|
|
|
: /boot/beos/apps/DiskUsage : DiskUsage-I ;
|
2005-10-29 20:27:43 +04:00
|
|
|
AddFilesToHaikuImage beos system add-ons input_server devices
|
2008-01-20 23:38:57 +03:00
|
|
|
: <input>keyboard <input>mouse <input>wacom ;
|
2005-10-29 20:27:43 +04:00
|
|
|
AddFilesToHaikuImage beos system add-ons input_server filters : screen_saver ;
|
2008-04-19 16:42:25 +04:00
|
|
|
AddFilesToHaikuImage beos system add-ons kernel network : stack ;
|
2006-08-08 16:33:33 +04:00
|
|
|
AddFilesToHaikuImage beos system add-ons kernel network devices
|
|
|
|
: $(BEOS_NETWORK_DEVICES) ;
|
|
|
|
AddFilesToHaikuImage beos system add-ons kernel network datalink_protocols
|
|
|
|
: $(BEOS_NETWORK_DATALINK_PROTOCOLS) ;
|
2005-10-29 20:27:43 +04:00
|
|
|
AddFilesToHaikuImage beos system add-ons kernel network ppp
|
|
|
|
: $(BEOS_NETWORK_PPP) ;
|
|
|
|
AddFilesToHaikuImage beos system add-ons kernel network protocols
|
|
|
|
: $(BEOS_NETWORK_PROTOCOLS) ;
|
2006-10-07 23:21:22 +04:00
|
|
|
AddFilesToHaikuImage beos system add-ons Print : $(BEOS_ADD_ONS_PRINT) ;
|
|
|
|
AddFilesToHaikuImage beos system add-ons Print transport
|
|
|
|
: $(BEOS_ADD_ONS_PRINT_TRANSPORT) ;
|
2005-10-29 20:27:43 +04:00
|
|
|
AddFilesToHaikuImage beos system add-ons Screen\ Savers
|
|
|
|
: $(BEOS_ADD_ONS_SCREENSAVERS) ;
|
|
|
|
|
2007-11-10 23:43:00 +03:00
|
|
|
AddFilesToHaikuImage beos system add-ons disk_systems
|
|
|
|
: <disk_system>intel <disk_system>bfs ;
|
|
|
|
|
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 ;
|
2006-06-17 18:06:13 +04:00
|
|
|
AddDirectoryToHaikuImage beos etc synth ;
|
2007-05-01 22:58:22 +04:00
|
|
|
AddDirectoryToHaikuImage beos system add-ons input_server methods ;
|
2006-06-03 19:13:39 +04:00
|
|
|
|
2008-04-02 18:02:52 +04:00
|
|
|
# optional
|
2006-09-18 16:25:36 +04:00
|
|
|
AddFilesToHaikuImage optional beos system add-ons input_server methods : canna ;
|
|
|
|
|
2007-07-28 11:17:23 +04:00
|
|
|
# printers
|
|
|
|
AddDirectoryToHaikuImage home config settings printers Preview
|
|
|
|
: home-config-settings-printers-preview.rdef ;
|
2007-07-31 20:36:28 +04:00
|
|
|
AddDirectoryToHaikuImage home config settings printers "Save as PDF"
|
2007-07-28 11:17:23 +04:00
|
|
|
: home-config-settings-printers-save-as-pdf.rdef ;
|
|
|
|
|
2008-04-19 19:55:54 +04:00
|
|
|
# licenses
|
|
|
|
CopyDirectoryToHaikuImage beos etc
|
|
|
|
: [ FDirName $(HAIKU_TOP) data etc licenses ]
|
|
|
|
: licenses : -x .svn ;
|
|
|
|
|
2007-07-28 11:17:23 +04:00
|
|
|
|
2008-05-18 03:47:39 +04:00
|
|
|
#pragma mark - Alternative GCC Libraries
|
|
|
|
|
|
|
|
|
|
|
|
# build a zip file with the system libs
|
|
|
|
# (used by another jam that wants to build a Haiku with alternative GCC
|
|
|
|
# libraries included)
|
|
|
|
|
|
|
|
rule ZipTargets zipFile : targets
|
|
|
|
{
|
|
|
|
Depends $(zipFile) : <build>zip $(targets) ;
|
|
|
|
ZipTargets1 $(zipFile) : <build>zip $(targets) ;
|
|
|
|
}
|
|
|
|
|
|
|
|
actions ZipTargets1
|
|
|
|
{
|
|
|
|
$(HOST_ADD_BUILD_COMPATIBILITY_LIB_DIR)
|
|
|
|
$(RM) "$(1)"
|
|
|
|
$(2[1]) -jy "$(1)" $(2[2-])
|
|
|
|
}
|
|
|
|
|
|
|
|
local alternativeSystemLibsZip = <image>alternative_system_libs.zip ;
|
|
|
|
MakeLocate $(alternativeSystemLibsZip) : $(HAIKU_OUTPUT_DIR) ;
|
|
|
|
|
|
|
|
# collect the targets we would install in the lib directory
|
|
|
|
local alternativeSystemLibs ;
|
|
|
|
local libTargets = [ FFilesInHaikuImageDirectory beos system lib ] ;
|
|
|
|
local libTarget ;
|
|
|
|
for libTarget in $(libTargets) {
|
|
|
|
alternativeSystemLibs += [ on $(libTarget) return $(TARGET) ] ;
|
|
|
|
}
|
|
|
|
|
|
|
|
# collect the symlinks we would install in the lib directory
|
|
|
|
libTargets = [ FSymlinksInHaikuImageDirectory beos system lib ] ;
|
|
|
|
local tmpAlternativeLibDir
|
|
|
|
= [ FDirName $(HAIKU_OUTPUT_DIR) tmp alternativeLibs ] ;
|
|
|
|
for libTarget in $(libTargets) {
|
|
|
|
# We need to create actual symlinks, we can zip later.
|
|
|
|
local symlinkTarget = <alternative-system-lib>$(libTarget:BS) ;
|
|
|
|
MakeLocate $(symlinkTarget) : $(tmpAlternativeLibDir) ;
|
|
|
|
SymLink $(symlinkTarget) : [ on $(libTarget) return $(SYMLINK_TARGET) ] ;
|
|
|
|
alternativeSystemLibs += $(symlinkTarget) ;
|
|
|
|
}
|
|
|
|
|
|
|
|
ZipTargets $(alternativeSystemLibsZip) : $(alternativeSystemLibs) ;
|
|
|
|
|
|
|
|
|
|
|
|
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) ;
|
|
|
|
Always $(target) ;
|
|
|
|
InvokeSubJam1 $(target) ;
|
|
|
|
}
|
|
|
|
|
|
|
|
actions InvokeSubJam1
|
|
|
|
{
|
|
|
|
cd $(DIRECTORY)
|
|
|
|
$(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)
|
|
|
|
: "'<image>alternative_system_libs.zip'" ;
|
|
|
|
|
|
|
|
local libSubDir ;
|
|
|
|
|
|
|
|
if $(HAIKU_GCC_VERSION[1]) = 2 {
|
|
|
|
libSubDir = gcc4 ;
|
|
|
|
} else {
|
|
|
|
libSubDir = gcc2 ;
|
|
|
|
}
|
|
|
|
|
|
|
|
# install the alternative libs in the right directory
|
|
|
|
UnzipArchiveToHaikuImage beos system lib $(libSubDir)
|
|
|
|
: $(otherAlternativeSystemLibsZip) ;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2007-09-05 22:36:17 +04:00
|
|
|
#pragma mark - Optional Packages
|
|
|
|
|
|
|
|
|
2008-05-04 20:06:41 +04:00
|
|
|
HAIKU_IMAGE_OPTIONAL_PACKAGE_DESCRIPTIONS = ;
|
|
|
|
|
2008-03-29 18:18:35 +03:00
|
|
|
include [ FDirName $(HAIKU_BUILD_RULES_DIR) OptionalPackages ] ;
|
2008-04-15 20:54:40 +04:00
|
|
|
include [ FDirName $(HAIKU_BUILD_RULES_DIR) OptionalTestPackages ] ;
|
2008-03-07 17:12:05 +03:00
|
|
|
|
2008-05-04 20:06:41 +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-03-07 17:12:05 +03: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
|
|
|
|
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-09-19 21:32:57 +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 ;
|
|
|
|
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) ;
|