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 = ;
|
2006-01-07 23:29:50 +03:00
|
|
|
if $(TARGET_ARCH) = x86 {
|
|
|
|
X86_ONLY = "" ;
|
|
|
|
} else if $(TARGET_ARCH) = ppc {
|
|
|
|
X86_ONLY = ;
|
|
|
|
}
|
|
|
|
|
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
|
|
|
|
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
|
|
|
|
keymap kill less lessecho lesskey link listarea listattr listdev listimage
|
2007-07-04 20:34:43 +04:00
|
|
|
listport listres listsem ln locate logger login logname ls lsindex m4 make
|
* Reorganized the FS interface a little:
- Moved most file_system_module_info hooks into separate structures.
Those that operate on mounted volumes to fs_volume_ops, those
operating on a vnode to fs_vnode_ops.
- Got rid of the fs_volume, fs_cookie, fs_vnode typedefs. We use void*
again.
- Instead of a void* volume and node cookie hooks are passed a
fs_volume and fs_vnode structure pointer, which contain the cookie
and an ops pointer (fs_volume a few more things).
- The VFS {new,publish,get,...}_vnode() functions take a fs_volume*
instead of the volume ID. So does vfs_get_fs_node_from_path().
- Added type and flags arguments to publish_vnode() and the
get_vnode() hook and removed the type argument from lookup() hook.
Added vnode::type using formerly unused bits to store the node type.
Simplified a few things in the VFS due to the now always available
node type.
- Added fs_volume_ops::{create,delete}_sub_vnode() and
fs_vnode_ops::get_super_vnode() hooks. They are used to support file
system layers, e.g. allowing to extend an FS not supporting BeOS
attribute with attribute support. Needs some more work in the VFS.
- Added fs_vnode_ops::create_special_node() hook for creating special
nodes (e.g. FIFOs).
* Adjusted the built-in file systems and BFS according to the interface
changes. Removed all other FSs from the image for the time being.
We'll see whether further API changes are necessary before porting
them.
* Adjusted the bfs_shell accordingly.
* Implemented create_special_node() in rootfs to support special nodes.
* Added support for FIFOs:
- Added syscall _kern_create_fifo() (used by mkfifo()), which creates
a special node (type S_IFIFO) in the respective file system.
- When a special node is published the VFS creates a respective sub
node. Currently only FIFOs are supported.
- Added a little support for FIFO subnodes by using functionality from
the pipefs.
- Added mkfifo to the image. It can create FIFOs in the rootfs, but
the FIFOs aren't really usable ATM, since they still work like
pipes, i.e. readers and writers need to have them open at the same
time.
* Some smaller changes in the VFS:
- Made the *_CALL macros nicer to use (vargs).
- Refactored FS entry lookup into new function lookup_dir_entry().
- create_vnode() no longer just calls the FS create() hook. First it
looks up the entry and uses open_vnode(), if it already exists. This
is necessary for two reasons: 1) The FS might not support create()
while still allowing to open() entries. 2) When the FS has other
layers on to of it (or the respective node) it might not be
responsible for opening the node.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24816 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-04-06 03:05:16 +04:00
|
|
|
makebootable md5sum merge mimeset mkdos mkdir mkfifo mkindex modifiers mount
|
2008-04-19 04:18:00 +04:00
|
|
|
mount_nfs mountvolume mv nc netstat nl nohup od open passwd paste patch
|
|
|
|
pathchk pc ping play playfile playsound playwav pr prio printenv printf ps
|
|
|
|
ptx pwd query quit readlink release renice rescan rlog rm rmattr rmindex
|
|
|
|
rmdir roster route safemode screen_blanker 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
|
2007-04-19 10:39:05 +04:00
|
|
|
translate true tsort tty uname unchop unexpand unmount uniq unrar unshar
|
2008-04-19 04:18:00 +04:00
|
|
|
unzip unzipsfx <bin>updatedb uptime urlwrapper usb_dev_info useradd uudecode
|
|
|
|
uuencode vdir
|
2007-04-19 10:39:05 +04:00
|
|
|
version vim waitfor wc wget whoami xargs xres yes zdiff zforce zgrep zip
|
2008-04-19 03:56:39 +04:00
|
|
|
zipcloak <bin>zipgrep zipnote zipsplit zmore znew
|
2005-10-29 20:27:43 +04:00
|
|
|
;
|
|
|
|
|
2008-04-13 10:03:48 +04:00
|
|
|
BEOS_APPS = AboutSystem ActivityMonitor CodyCam DeskCalc DiskProbe DriveSetup
|
|
|
|
CDPlayer Expander Icon-O-Matic Installer LaunchBox Magnify Mail MediaPlayer
|
|
|
|
MidiPlayer NetworkStatus PackageInstaller People PowerStatus
|
|
|
|
ProcessController ShowImage SoundRecorder StyledEdit Terminal 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-04-23 13:51:22 +04:00
|
|
|
$(X86_ONLY)GLDirectMode $(X86_ONLY)GLTeapot Mandelbrot Pairs PictureTest
|
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
|
2006-10-07 22:00:36 +04:00
|
|
|
libtranslation.so libnetwork.so libdebug.so libbsd.so libmail.so
|
2005-11-17 12:04:03 +03:00
|
|
|
libtextencoding.so libz.so libfreetype.so libpng.so libmidi.so libmidi2.so
|
2007-02-06 19:51:29 +03:00
|
|
|
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
|
2007-06-21 14:14:11 +04:00
|
|
|
$(X86_ONLY)intel_extreme.accelerant $(X86_ONLY)s3savage.accelerant 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-03-12 13:18:25 +03:00
|
|
|
BEOS_ADD_ONS_DRIVERS_AUDIO = auich auvia 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-03-28 12:24:29 +03:00
|
|
|
$(X86_ONLY)s3savage 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-04-11 08:12:23 +04:00
|
|
|
$(X86_ONLY)rtl8139 rtl8169 sis900 $(X86_ONLY)via_rhine wb840
|
2008-02-06 01:18:14 +03:00
|
|
|
$(X86_ONLY)ipro100 $(X86_ONLY)nforce #vlance
|
2008-04-03 18:36:39 +04:00
|
|
|
$(X86_ONLY)marvell_yukon $(X86_ONLY)syskonnect
|
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-01-27 01:18:52 +03:00
|
|
|
config_manager agp_gart usb firewire
|
2006-05-02 23:10:10 +04:00
|
|
|
;
|
2008-04-17 10:26:43 +04:00
|
|
|
BEOS_ADD_ONS_FILE_SYSTEMS = bfs fat iso9660 ;
|
|
|
|
#cdda googlefs nfs $(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
|
2007-08-16 01:19:06 +04:00
|
|
|
: generic_ide_pci $(X86_ONLY)ide_isa silicon_image_3112 legacy_sata ;
|
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
|
2007-10-13 02:11:54 +04:00
|
|
|
: <usb>uhci <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
|
|
|
|
: <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
|
2007-08-29 23:36:43 +04:00
|
|
|
: block_io dpc fast_log 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
|
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) ;
|
2007-09-03 22:44:57 +04:00
|
|
|
AddDriversToHaikuImage bus : fw_raw usb_raw ;
|
2007-08-22 22:44:38 +04:00
|
|
|
AddDriversToHaikuImage disk scsi : scsi_cd scsi_dsk ;
|
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
|
|
|
|
= libsocket.so libbind.so libnet.so libnetapi.so libbnetapi.so ;
|
|
|
|
|
|
|
|
local lib ;
|
|
|
|
for lib in $(BEOS_SYSTEM_LIBS_LIBNETWORK_ALIASES) {
|
|
|
|
AddSymlinkToHaikuImage beos system lib : libnetwork.so : $(lib) ;
|
|
|
|
}
|
|
|
|
|
|
|
|
# libGL.so has GLUT built-in
|
2007-07-30 22:43:32 +04:00
|
|
|
if $(TARGET_ARCH) = x86 {
|
2007-08-22 22:44:38 +04:00
|
|
|
AddSymlinkToHaikuImage beos system lib : $(X86_ONLY)libGL.so : libglut.so ;
|
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
|
|
|
|
DriveSetup Icon-O-Matic Magnify Mail MediaPlayer MidiPlayer People
|
|
|
|
SoundRecorder StyledEdit Terminal TV
|
|
|
|
;
|
|
|
|
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) ;
|
|
|
|
|
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) ;
|
|
|
|
|
2006-11-12 23:01:59 +03:00
|
|
|
local svgFiles = "lion.svg" ;
|
2007-03-28 20:39:29 +04:00
|
|
|
SEARCH on $(svgFiles)
|
|
|
|
= [ FDirName $(HAIKU_TOP) src tests kits interface picture ] ;
|
2006-11-12 23:01:59 +03:00
|
|
|
AddFilesToHaikuImage beos etc artwork : $(svgFiles) ;
|
|
|
|
|
2005-10-29 20:27:43 +04:00
|
|
|
# TODO: Use data/etc/termcap or src/libs/termcap.src?
|
2007-10-14 17:52:42 +04:00
|
|
|
local etcFiles = inputrc profile termcap teapot.data ;
|
2005-10-29 20:27:43 +04:00
|
|
|
etcFiles = $(etcFiles:G=etc) ;
|
|
|
|
SEARCH on $(etcFiles) = [ FDirName $(HAIKU_TOP) data etc ] ;
|
|
|
|
AddFilesToHaikuImage beos etc : $(etcFiles) ;
|
|
|
|
|
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
|
|
|
|
local postInstallFiles = fresh_install mime_update.sh ;
|
|
|
|
postInstallFiles = $(postInstallFiles:G=post-install) ;
|
|
|
|
SEARCH on $(postInstallFiles)
|
|
|
|
= [ FDirName $(HAIKU_TOP) data etc post_install ] ;
|
|
|
|
AddFilesToHaikuImage beos etc post_install : $(postInstallFiles) ;
|
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-03-04 04:01:00 +03:00
|
|
|
pci $(X86_ONLY)isa config_manager ide scsi
|
|
|
|
$(PPC_ONLY)openpic
|
|
|
|
block_io fast_log ide_adapter locked_pool scsi_periph
|
|
|
|
ahci generic_ide_pci $(X86_ONLY)ide_isa silicon_image_3112 legacy_sata
|
|
|
|
scsi_cd scsi_dsk
|
|
|
|
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 ;
|
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 ;
|
|
|
|
|
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
|
|
|
|
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
|
|
|
|
{
|
|
|
|
echo "$(HAIKU_IMAGE_HOST_NAME)" > $(1)
|
|
|
|
}
|
|
|
|
|
|
|
|
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
|
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) ;
|
|
|
|
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) ;
|