2013-07-07 15:45:38 +04:00
|
|
|
# This file defines what ends up on the Haiku bootstrap image (respectively in
|
|
|
|
# the Haiku installation directory) and it executes the rules building the image
|
|
|
|
# (respectively installing the files in the installation directory).
|
|
|
|
|
|
|
|
|
|
|
|
SYSTEM_BIN = [ FFilterByBuildFeatures
|
|
|
|
"["
|
|
|
|
addattr alert arp
|
|
|
|
base64 basename bash bc beep bfsinfo
|
|
|
|
cal cat catattr checkfs checkitout chgrp chmod chop chown chroot cksum clear
|
|
|
|
clockconfig cmp collectcatkeys comm compress copyattr CortexAddOnHost cp
|
|
|
|
csplit cut date dc dd desklink df diff diff3 dircolors dirname
|
|
|
|
diskimage draggers driveinfo dstcheck du dumpcatalog
|
|
|
|
echo eject env error expand expr
|
2013-11-06 00:39:28 +04:00
|
|
|
factor false fdinfo ffm filepanel find finddir findpaths fmt fold
|
2013-07-07 15:45:38 +04:00
|
|
|
fortune frcode ftp ftpd funzip
|
2013-11-17 05:05:23 +04:00
|
|
|
gawk gdb@x86 getarch getlimits groupadd groupdel groupmod groups gzip gzexe
|
2013-07-07 15:45:38 +04:00
|
|
|
hd head hey hostname
|
|
|
|
id ident ifconfig <bin>install isvolume
|
|
|
|
ideinfo@ide idestatus@ide
|
|
|
|
join kernel_debugger keymap keystore kill
|
|
|
|
less lessecho lesskey link linkcatkeys listarea listattr listimage listdev
|
|
|
|
listport listres listsem listusb ln locale locate logger login logname ls
|
|
|
|
lsindex
|
|
|
|
makebootable md5sum merge message mimeset mkdir
|
|
|
|
mkfifo mkfs mkindex mktemp modifiers mount mountvolume mv
|
|
|
|
netcat netstat nl nohup notify nproc
|
|
|
|
od open
|
|
|
|
package package_repo passwd paste patch pathchk pc ping ping6 pkgman
|
|
|
|
pr prio printenv printf profile ps ptx pwd
|
|
|
|
query quit
|
|
|
|
rc readlink reindex release renice rlog rm rmattr rmindex rmdir roster
|
|
|
|
route
|
2013-11-17 05:05:23 +04:00
|
|
|
safemode screen_blanker screenmode sdiff setarch setmime settype
|
2013-07-07 15:45:38 +04:00
|
|
|
setversion setvolume seq sha1sum sha256sum shar shred shuf shutdown sleep
|
|
|
|
sort split stat strace stty su sum sync sysinfo
|
|
|
|
tac tail tcpdump tcptester tee telnet telnetd test timeout top touch
|
2013-07-15 18:34:41 +04:00
|
|
|
tr traceroute trash true truncate tsort tty
|
2013-07-07 15:45:38 +04:00
|
|
|
uname unchop unexpand unmount uniq unlink unshar unzip unzipsfx
|
2013-09-16 17:49:36 +04:00
|
|
|
<bin>updatedb uptime urlwrapper useradd userdel uudecode uuencode
|
2013-07-07 15:45:38 +04:00
|
|
|
vdir version vmstat
|
|
|
|
waitfor watch wc wget whoami writembr@x86 xargs xres
|
|
|
|
yes
|
|
|
|
zdiff zforce zgrep zip zipcloak <bin>zipgrep zipnote zipsplit zmore znew
|
|
|
|
] ;
|
|
|
|
|
|
|
|
SYSTEM_APPS = [ FFilterByBuildFeatures
|
|
|
|
AboutSystem ActivityMonitor BootManager@x86 CharacterMap
|
2013-07-15 18:34:41 +04:00
|
|
|
DeskCalc Debugger Devices DiskProbe DiskUsage DriveSetup
|
2013-07-07 15:45:38 +04:00
|
|
|
Expander Installer LaunchBox
|
|
|
|
NetworkStatus PackageInstaller
|
|
|
|
PowerStatus ProcessController ShowImage
|
|
|
|
StyledEdit Terminal TextSearch Workspaces
|
|
|
|
] ;
|
|
|
|
SYSTEM_PREFERENCES = [ FFilterByBuildFeatures
|
2013-11-22 08:24:44 +04:00
|
|
|
Appearance Backgrounds
|
2013-07-07 15:45:38 +04:00
|
|
|
<preference>Deskbar FileTypes Keyboard Keymap Locale
|
|
|
|
Mouse Network Notifications Screen ScreenSaver
|
|
|
|
Shortcuts Time Touchpad <preference>Tracker VirtualMemory
|
|
|
|
] ;
|
|
|
|
SYSTEM_DEMOS = ;
|
2013-08-06 01:19:24 +04:00
|
|
|
|
|
|
|
|
|
|
|
rule HaikuImageGetSystemLibs
|
|
|
|
{
|
2013-08-06 02:41:36 +04:00
|
|
|
return
|
|
|
|
# libs with special grist
|
|
|
|
[ MultiArchDefaultGristFiles libroot.so : revisioned ]
|
|
|
|
$(HAIKU_SHARED_LIBSTDC++_$(TARGET_PACKAGING_ARCH))
|
|
|
|
$(HAIKU_SHARED_LIBSUPC++_$(TARGET_PACKAGING_ARCH))
|
|
|
|
# libs with standard grist
|
|
|
|
[ MultiArchDefaultGristFiles [ FFilterByBuildFeatures
|
|
|
|
libbe.so libbsd.so libbnetapi.so
|
|
|
|
libdebug.so libdevice.so
|
|
|
|
libgame.so
|
|
|
|
libgnu.so libmail.so libmedia.so libmidi.so libmidi2.so
|
|
|
|
libnetwork.so
|
|
|
|
libpackage.so
|
|
|
|
libscreensaver.so
|
|
|
|
libtextencoding.so libtracker.so libtranslation.so
|
|
|
|
] ]
|
|
|
|
;
|
2013-08-06 01:19:24 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
rule HaikuImageGetPrivateSystemLibs
|
|
|
|
{
|
2013-08-06 02:41:36 +04:00
|
|
|
return [ MultiArchDefaultGristFiles [ FFilterByBuildFeatures
|
2013-08-06 01:19:24 +04:00
|
|
|
libalm.so
|
2013-08-06 02:41:36 +04:00
|
|
|
libfluidsynth.so
|
2013-08-06 01:19:24 +04:00
|
|
|
# libilmimf.so
|
|
|
|
libpackage-add-on-libsolv.so
|
|
|
|
libroot-addon-icu.so
|
2013-08-06 02:41:36 +04:00
|
|
|
] ] ;
|
2013-08-06 01:19:24 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2013-07-07 15:45:38 +04:00
|
|
|
SYSTEM_SERVERS = [ FFilterByBuildFeatures
|
|
|
|
app_server debug_server dns_resolver_server input_server
|
|
|
|
keystore_server media_addon_server
|
|
|
|
mount_server net_server notification_server
|
|
|
|
package_daemon power_daemon registrar
|
|
|
|
syslog_daemon
|
|
|
|
] ;
|
|
|
|
|
|
|
|
SYSTEM_NETWORK_DEVICES = ethernet loopback ;
|
|
|
|
SYSTEM_NETWORK_DATALINK_PROTOCOLS = ethernet_frame <module>arp loopback_frame
|
|
|
|
ipv6_datagram ;
|
|
|
|
#SYSTEM_NETWORK_PPP = ipcp modem pap pppoe ;
|
|
|
|
SYSTEM_NETWORK_PROTOCOLS = ipv4 tcp udp icmp unix icmp6 ipv6 ;
|
|
|
|
|
|
|
|
SYSTEM_ADD_ONS_ACCELERANTS = [ FFilterByBuildFeatures
|
|
|
|
x86,x86_64 @{
|
|
|
|
vesa.accelerant
|
|
|
|
}@ # x86,x86_64
|
|
|
|
x86 @{
|
|
|
|
3dfx.accelerant ati.accelerant matrox.accelerant neomagic.accelerant
|
|
|
|
nvidia.accelerant intel_810.accelerant intel_extreme.accelerant
|
|
|
|
radeon.accelerant radeon_hd.accelerant s3.accelerant
|
|
|
|
#via.accelerant vmware.accelerant
|
|
|
|
}@ # x86
|
|
|
|
] ;
|
2013-07-24 23:24:07 +04:00
|
|
|
SYSTEM_ADD_ONS_TRANSLATORS = STXTTranslator ;
|
2013-07-07 15:45:38 +04:00
|
|
|
SYSTEM_ADD_ONS_LOCALE_CATALOGS = <catalog-addon>plaintext ;
|
|
|
|
SYSTEM_ADD_ONS_MEDIA = ;
|
|
|
|
SYSTEM_ADD_ONS_MEDIA_PLUGINS = ;
|
|
|
|
SYSTEM_ADD_ONS_PRINT = ;
|
|
|
|
SYSTEM_ADD_ONS_PRINT_TRANSPORT = ;
|
|
|
|
SYSTEM_ADD_ONS_SCREENSAVERS = ;
|
|
|
|
SYSTEM_ADD_ONS_DRIVERS_AUDIO = ;
|
|
|
|
SYSTEM_ADD_ONS_DRIVERS_AUDIO_OLD = ;
|
|
|
|
SYSTEM_ADD_ONS_DRIVERS_GRAPHICS = [ FFilterByBuildFeatures
|
|
|
|
x86,x86_64 @{
|
|
|
|
vesa
|
|
|
|
}@ # x86,x86_64
|
|
|
|
x86 @{
|
|
|
|
ati 3dfx intel_810 intel_extreme matrox neomagic nvidia radeon radeon_hd
|
|
|
|
s3 #via vmware
|
|
|
|
}@ # x86
|
|
|
|
] ;
|
|
|
|
SYSTEM_ADD_ONS_DRIVERS_MIDI = ;
|
|
|
|
SYSTEM_ADD_ONS_DRIVERS_NET = [ FFilterByBuildFeatures
|
|
|
|
x86,x86_64 @{
|
|
|
|
3com atheros813x ar81xx attansic_l1 attansic_l2 broadcom440x
|
|
|
|
broadcom570x dec21xxx ipro100 ipro1000 jmicron2x0 marvell_yukon nforce
|
|
|
|
pcnet rtl8139 rtl81xx sis19x syskonnect via_rhine vt612x
|
|
|
|
}@ # x86_64
|
|
|
|
|
|
|
|
etherpci pegasus sis900 usb_davicom usb_asix usb_ecm wb840
|
|
|
|
|
|
|
|
# WLAN drivers
|
|
|
|
x86 @{
|
|
|
|
aironetwifi atheroswifi broadcom43xx
|
|
|
|
iprowifi2100 iprowifi2200 iprowifi3945
|
|
|
|
iprowifi4965 marvell88w8363 marvell88w8335
|
|
|
|
ralinkwifi wavelanwifi
|
|
|
|
}@ # x86
|
|
|
|
|
|
|
|
# WWAN drivers
|
|
|
|
#usb_beceemwmx@gpl
|
|
|
|
] ;
|
|
|
|
SYSTEM_ADD_ONS_DRIVERS_POWER = [ FFilterByBuildFeatures acpi_button@x86 ] ;
|
|
|
|
SYSTEM_ADD_ONS_BUS_MANAGERS = [ FFilterByBuildFeatures
|
|
|
|
ata@ata pci ps2@x86,x86_64 isa@x86,x86_64
|
2013-10-28 18:54:10 +04:00
|
|
|
ide@ide scsi config_manager agp_gart@x86 usb firewire@x86 acpi@x86,x86_64
|
2013-07-15 18:34:41 +04:00
|
|
|
virtio
|
2013-07-07 15:45:38 +04:00
|
|
|
] ;
|
|
|
|
SYSTEM_ADD_ONS_FILE_SYSTEMS = bfs bindfs btrfs exfat ext2 fat iso9660
|
|
|
|
attribute_overlay write_overlay ntfs packagefs reiserfs@x86 udf ;
|
|
|
|
|
|
|
|
|
|
|
|
# build the haiku system packages and add them
|
|
|
|
include [ FDirName $(HAIKU_BUILD_RULES_DIR) HaikuPackages ] ;
|
|
|
|
|
2013-08-06 05:33:36 +04:00
|
|
|
AddPackageFilesToHaikuImage system :
|
2013-10-10 02:39:15 +04:00
|
|
|
haiku_loader.hpkg
|
2013-08-06 05:33:36 +04:00
|
|
|
haiku.hpkg
|
|
|
|
haiku_$(TARGET_PACKAGING_ARCHS[2-]).hpkg
|
2013-10-09 05:47:28 +04:00
|
|
|
:
|
|
|
|
nameFromMetaInfo
|
2013-08-06 05:33:36 +04:00
|
|
|
;
|
2013-07-07 15:45:38 +04:00
|
|
|
|
|
|
|
|
2013-08-07 01:02:10 +04:00
|
|
|
# build and add the source package directory and a haikuports.config file
|
|
|
|
CopyDirectoryToHaikuImage home haikuports
|
|
|
|
: [ BuildHaikuPortsSourcePackageDirectory ]
|
|
|
|
: input-source-packages : : isTarget ;
|
|
|
|
AddFilesToHaikuImage home haikuports
|
|
|
|
: [ BuildHaikuPortsRepositoryConfig /boot/home/haikuports ] ;
|
|
|
|
|
|
|
|
|
2013-07-07 15:45:38 +04:00
|
|
|
AddSymlinkToHaikuImage home Desktop : /boot/home : Home ;
|
|
|
|
|
|
|
|
# global settings when a package is installed in ~/config
|
|
|
|
AddDirectoryToHaikuImage home config settings global ;
|
|
|
|
|
|
|
|
|
|
|
|
# scripts and data files
|
|
|
|
local userBootScripts = UserBootscript UserSetupEnvironment.sample ;
|
|
|
|
SEARCH on $(userBootScripts) = [ FDirName $(HAIKU_TOP) data config boot ] ;
|
|
|
|
AddFilesToHaikuImage home config settings boot : $(userBootScripts) ;
|
|
|
|
|
|
|
|
# Add boot launch directory
|
|
|
|
AddDirectoryToHaikuImage home config settings boot launch ;
|
|
|
|
|
|
|
|
# Add Tracker New Templates
|
|
|
|
AddFilesToHaikuImage home config settings Tracker "Tracker New Templates"
|
|
|
|
:
|
|
|
|
"<tracker-new-templates>C++ header"
|
|
|
|
"<tracker-new-templates>C++ source"
|
|
|
|
"<tracker-new-templates>makefile"
|
|
|
|
"<tracker-new-templates>text file"
|
|
|
|
;
|
|
|
|
|
|
|
|
local etcDir = [ FDirName $(HAIKU_TOP) data etc ] ;
|
|
|
|
local etcFiles = inputrc profile ;
|
|
|
|
etcFiles = $(etcFiles:G=etc) ;
|
|
|
|
SEARCH on $(etcFiles) = $(etcDir) ;
|
|
|
|
etcFiles += <etc>termcap <etc>sysless <etc>sysless.in ;
|
2013-09-30 00:09:00 +04:00
|
|
|
AddFilesToHaikuImage system settings etc : $(etcFiles) ;
|
2013-07-07 15:45:38 +04:00
|
|
|
|
|
|
|
local profileFiles = [ Glob $(etcDir)/profile.d : *.sh ] ;
|
|
|
|
profileFiles = $(profileFiles:G=profile-d) ;
|
2013-09-30 00:09:00 +04:00
|
|
|
AddDirectoryToHaikuImage system settings etc profile.d ;
|
|
|
|
AddFilesToHaikuImage system settings etc profile.d : $(profileFiles) ;
|
2013-07-07 15:45:38 +04:00
|
|
|
|
|
|
|
local driverSettingsFiles = <driver-settings>kernel ;
|
|
|
|
SEARCH on $(driverSettingsFiles)
|
|
|
|
= [ FDirName $(HAIKU_TOP) data settings kernel drivers ] ;
|
|
|
|
AddFilesToHaikuImage home config settings kernel drivers
|
|
|
|
: $(driverSettingsFiles) ;
|
|
|
|
|
|
|
|
local networkSettingsFiles = <network-settings>services ;
|
|
|
|
SEARCH on $(networkSettingsFiles)
|
|
|
|
= [ FDirName $(HAIKU_TOP) data settings network ] ;
|
2013-09-30 00:09:00 +04:00
|
|
|
AddFilesToHaikuImage system settings network : $(networkSettingsFiles) ;
|
2013-07-07 15:45:38 +04:00
|
|
|
|
|
|
|
# fresh install indicator file for the post install scripts
|
|
|
|
SEARCH on <post-install>fresh_install
|
2013-09-30 00:09:00 +04:00
|
|
|
= [ FDirName $(HAIKU_TOP) data system settings ] ;
|
|
|
|
AddFilesToHaikuImage system settings : <post-install>fresh_install ;
|
2013-07-07 15:45:38 +04:00
|
|
|
|
|
|
|
|
|
|
|
include [ FDirName $(HAIKU_BUILD_RULES_DIR) images HaikuImageCommon ] ;
|