1local architecture = $(HAIKU_PACKAGING_ARCHS[1]) ; 2 3 4local haikuPackage = haiku.hpkg ; 5HaikuPackage $(haikuPackage) ; 6 7 8# wifi firmware 9local driver ; 10for driver in $(SYSTEM_ADD_ONS_DRIVERS_NET) { 11 local package = [ on $(driver) return $(HAIKU_WIFI_FIRMWARE_PACKAGE) ] ; 12 local archive = [ on $(driver) return $(HAIKU_WIFI_FIRMWARE_ARCHIVE) ] ; 13 local extract = [ on $(driver) return $(HAIKU_WIFI_FIRMWARE_DO_EXTRACT) ] ; 14 if $(archive) { 15 AddWifiFirmwareToPackage $(driver) : $(package) : $(archive) 16 : $(extract) ; 17 } 18 local packages = [ on $(driver) return $(HAIKU_WIFI_FIRMWARE_PACKAGES) ] ; 19 local archives = [ on $(driver) return $(HAIKU_WIFI_FIRMWARE_ARCHIVES) ] ; 20 local archive ; 21 for archive in $(archives) { 22 AddWifiFirmwareToPackage $(driver) : $(packages[1]) : $(archive) 23 : $(extract) ; 24 packages = $(packages[2-]) ; 25 } 26} 27 28 29# modules 30AddFilesToPackage add-ons kernel bus_managers : $(SYSTEM_ADD_ONS_BUS_MANAGERS) ; 31AddFilesToPackage add-ons kernel busses agp_gart : <agp_gart>intel@x86,x86_64 ; 32 33AddFilesToPackage add-ons kernel busses ata 34 : generic_ide_pci it8211 legacy_sata silicon_image_3112 highpoint_ide_pci ide_isa@x86 ; 35 36AddFilesToPackage add-ons kernel busses scsi : ahci virtio_scsi ; 37AddFilesToPackage add-ons kernel busses usb : <usb>uhci <usb>ohci <usb>ehci ; 38AddFilesToPackage add-ons kernel busses virtio : virtio_pci ; 39AddFilesToPackage add-ons kernel console : vga_text ; 40AddFilesToPackage add-ons kernel debugger 41 : <kdebug>demangle <kdebug>disasm@x86 #<kdebug>hangman 42 <kdebug>invalidate_on_exit <kdebug>usb_keyboard 43 <kdebug>run_on_exit ; 44AddFilesToPackage add-ons kernel file_systems : $(SYSTEM_ADD_ONS_FILE_SYSTEMS) ; 45AddFilesToPackage add-ons kernel generic 46 : ata_adapter bios@x86,x86_64 dpc 47 locked_pool mpu401 scsi_periph <module>tty ; 48AddFilesToPackage add-ons kernel partitioning_systems 49 : amiga_rdb@m68k apple@ppc efi_gpt intel session ; 50AddFilesToPackage add-ons kernel interrupt_controllers : openpic@ppc ; 51AddFilesToPackage add-ons kernel power cpufreq : intel_pstates@x86,x86_64 ; 52AddFilesToPackage add-ons kernel power cpuidle : intel_cstates@x86,x86_64 ; 53 54if $(TARGET_ARCH) = x86 || $(TARGET_ARCH) = x86_64 { 55 AddFilesToPackage add-ons kernel cpu : generic_x86 ; 56} 57 58# drivers 59AddNewDriversToPackage disk scsi : scsi_cd scsi_disk ; 60AddNewDriversToPackage disk virtual : ram_disk virtio_block ; 61AddNewDriversToPackage power : acpi_battery@x86 ; 62AddNewDriversToPackage network : virtio_net ; 63#AddNewDriversToPackage display : display_adapter@x86 ; 64 65# legacy drivers 66AddDriversToPackage : console dprintf null random <driver>tty 67 zero ; 68AddDriversToPackage audio hmulti : $(SYSTEM_ADD_ONS_DRIVERS_AUDIO) ; 69AddDriversToPackage audio old : $(SYSTEM_ADD_ONS_DRIVERS_AUDIO_OLD) ; 70AddDriversToPackage midi : $(SYSTEM_ADD_ONS_DRIVERS_MIDI) ; 71AddDriversToPackage bus : usb_raw ; 72AddDriversToPackage disk usb : usb_disk ; 73AddDriversToPackage disk virtual : nbd ; 74AddDriversToPackage graphics : $(SYSTEM_ADD_ONS_DRIVERS_GRAPHICS) ; 75AddDriversToPackage input : ps2_hid usb_hid wacom ; 76AddDriversToPackage misc : <driver>poke <driver>mem ; 77AddDriversToPackage net : $(SYSTEM_ADD_ONS_DRIVERS_NET) ; 78AddDriversToPackage ports : pc_serial usb_serial ; 79AddDriversToPackage power : $(SYSTEM_ADD_ONS_DRIVERS_POWER) ; 80 81# kernel 82AddFilesToPackage : <revisioned>kernel_$(TARGET_ARCH) ; 83 84# libs 85AddLibrariesToPackage lib 86 : [ HaikuImageGetSystemLibs ] [ HaikuImageGetPrivateSystemLibs ] ; 87 88# libnetwork.so replaces quite a few libraries 89if $(HAIKU_CC_IS_LEGACY_GCC_$(architecture)) = 1 { 90 local libNetworkAliases = libsocket.so libbind.so libnet.so ; 91 local lib ; 92 for lib in $(libNetworkAliases) { 93 AddSymlinkToPackage lib : libnetwork.so : $(lib) ; 94 } 95 96 AddSymlinkToPackage lib : libbnetapi.so : libnetapi.so ; 97} 98 99 100# servers 101AddFilesToPackage servers : $(SYSTEM_SERVERS) ; 102 103# apps 104AddFilesToPackage : runtime_loader Deskbar Tracker ; 105AddFilesToPackage bin : $(SYSTEM_BIN) consoled ; 106AddFilesToPackage apps : $(SYSTEM_APPS) ; 107AddFilesToPackage preferences : $(SYSTEM_PREFERENCES) ; 108AddFilesToPackage demos : $(SYSTEM_DEMOS) ; 109 110SEARCH on install-wifi-firmwares.sh = [ FDirName $(HAIKU_TOP) data bin ] ; 111AddFilesToPackage bin : install-wifi-firmwares.sh ; 112 113AddSymlinkToPackage bin : trash : untrash ; 114AddSymlinkToPackage bin : less : more ; 115 116# scripts and data files 117local bootScripts = PostInstallScript SetupEnvironment ; 118SEARCH on $(bootScripts) = [ FDirName $(HAIKU_TOP) data system boot ] ; 119AddFilesToPackage boot : $(bootScripts) ; 120 121local launchScripts = <data!launch>system ; 122SEARCH on $(launchScripts) = [ FDirName $(HAIKU_TOP) data launch ] ; 123AddFilesToPackage data launch : $(launchScripts) ; 124 125local userLaunchScripts = <data!launch>user <data!launch>bootstrap ; 126SEARCH on $(userLaunchScripts) = [ FDirName $(HAIKU_TOP) data launch ] ; 127AddFilesToPackage data user_launch : $(userLaunchScripts) ; 128 129# first login scripts 130local firstLoginFiles = default_deskbar_items.sh ; 131firstLoginFiles = $(firstLoginFiles:G=first-login) ; 132SEARCH on $(firstLoginFiles) 133 = [ FDirName $(HAIKU_TOP) data system boot first_login ] ; 134AddFilesToPackage boot first_login : $(firstLoginFiles) ; 135 136local fortuneFiles = [ Glob $(HAIKU_TOP)/data/system/data/fortunes 137 : [a-zA-Z0-9]* ] ; 138fortuneFiles = $(fortuneFiles:G=data!fortunes) ; 139AddFilesToPackage data fortunes : $(fortuneFiles) ; 140 141local fontDir = [ FDirName $(HAIKU_TOP) data system data fonts ] ; 142local psFonts = [ Glob $(fontDir)/psfonts : *.afm *.pfb ] ; 143AddFilesToPackage data fonts psfonts : $(psFonts) ; 144 145# keymaps 146AddFilesToPackage data Keymaps : $(HAIKU_KEYMAP_FILES) ; 147local keymapAlias ; 148for keymapAlias in $(HAIKU_KEYMAP_ALIASES) { 149 local aliasedTo = [ on $(keymapAlias) return $(HAIKU_KEYMAP_FILE) ] ; 150 AddSymlinkToPackage data Keymaps : $(aliasedTo:BSM) : $(keymapAlias:BSM) ; 151} 152 153# keyboard layouts 154AddFilesToPackage data KeyboardLayouts 155 : $(HAIKU_KEYBOARD_LAYOUT_FILES) ; 156AddFilesToPackage data KeyboardLayouts Apple\ Aluminum 157 : $(HAIKU_APPLE_ALUMINUM_KEYBOARD_LAYOUT_FILES) ; 158AddFilesToPackage data KeyboardLayouts ThinkPad 159 : $(HAIKU_THINKPAD_KEYBOARD_LAYOUT_FILES) ; 160 161# boot module links 162AddBootModuleSymlinksToPackage 163 acpi@x86,x86_64 ata pci isa@x86,x86_64 dpc 164 scsi usb 165 openpic@ppc 166 ata_adapter locked_pool scsi_periph 167 ahci generic_ide_pci it8211 legacy_sata silicon_image_3112 168 highpoint_ide_pci 169 ide_isa@x86 170 <usb>uhci <usb>ohci <usb>ehci 171 scsi_cd scsi_disk usb_disk 172 virtio virtio_pci virtio_block virtio_scsi 173 efi_gpt 174 intel 175 bfs packagefs 176; 177 178# add-ons 179AddFilesToPackage add-ons accelerants : $(SYSTEM_ADD_ONS_ACCELERANTS) ; 180AddFilesToPackage add-ons Translators : $(SYSTEM_ADD_ONS_TRANSLATORS) ; 181AddFilesToPackage add-ons locale catalogs : $(SYSTEM_ADD_ONS_LOCALE_CATALOGS) ; 182 183AddFilesToPackage add-ons Tracker 184 : FileType Mark\ as… Mark\ as\ Read Open\ Target\ Folder 185 Open\ Terminal ZipOMatic ; 186AddSymlinkToPackage add-ons Tracker 187 : /boot/system/preferences/Backgrounds : Background-B ; 188AddSymlinkToPackage add-ons Tracker 189 : /boot/system/apps/TextSearch : TextSearch-G ; 190AddSymlinkToPackage add-ons Tracker 191 : /boot/system/apps/DiskUsage : DiskUsage-I ; 192 193AddFilesToPackage add-ons input_server devices 194 : <input>keyboard <input>mouse <input>tablet <input>wacom ; 195AddFilesToPackage add-ons input_server filters 196 : switch_workspace ; 197 198AddFilesToPackage add-ons kernel network : <net>notifications stack ; 199AddFilesToPackage add-ons kernel network : dns_resolver ; 200AddFilesToPackage add-ons kernel network devices : $(SYSTEM_NETWORK_DEVICES) ; 201AddFilesToPackage add-ons kernel network datalink_protocols 202 : $(SYSTEM_NETWORK_DATALINK_PROTOCOLS) ; 203AddFilesToPackage add-ons kernel network ppp : $(SYSTEM_NETWORK_PPP) ; 204AddFilesToPackage add-ons kernel network protocols 205 : $(SYSTEM_NETWORK_PROTOCOLS) ; 206 207AddFilesToPackage add-ons disk_systems 208 : <disk_system>intel <disk_system>gpt <disk_system>bfs <disk_system>ntfs ; 209 210 211# the MIME DB 212CopyDirectoryToPackage data : <mimedb>mime_db : : : isTarget ; 213 214 215# Deskbar menu symlinks 216 217# "Applications" links 218DESKBAR_APPLICATIONS = ActivityMonitor CharacterMap DeskCalc 219 Devices DiskProbe DriveSetup DiskUsage Expander Installer 220 StyledEdit Terminal 221; 222local linkTarget ; 223for linkTarget in $(DESKBAR_APPLICATIONS) { 224 AddSymlinkToPackage data deskbar menu Applications 225 : ../../../../apps/$(linkTarget) : $(linkTarget) ; 226} 227 228# "Desktop applets" links 229DESKBAR_DESKTOP_APPLETS = LaunchBox NetworkStatus PowerStatus ProcessController 230 Workspaces 231; 232for linkTarget in $(DESKBAR_DESKTOP_APPLETS) { 233 AddSymlinkToPackage data deskbar menu Desktop\ applets 234 : ../../../../apps/$(linkTarget) : $(linkTarget) ; 235} 236 237# "Preferences" links 238AddDirectoryToPackage data deskbar menu Preferences ; 239DESKBAR_PREFERENCES = $(SYSTEM_PREFERENCES:B) ; 240for linkTarget in $(DESKBAR_PREFERENCES) { 241 AddSymlinkToPackage data deskbar menu Preferences 242 : ../../../../preferences/$(linkTarget) 243 : $(linkTarget) ; 244} 245 246# Deskbar menu entries file 247AddFilesToPackage data deskbar : <deskbar>menu_entries ; 248 249 250# licenses 251CopyDirectoryToPackage data 252 : [ FDirName $(HAIKU_TOP) data system data licenses ] 253 : licenses ; 254 255# netresolv support files 256CopyDirectoryToPackage data 257 : [ FDirName $(HAIKU_TOP) data system data network ] 258 : network ; 259 260# Copy documentation as per DiskUsage's license requirement. 261CopyDirectoryToPackage documentation 262 : [ FDirName $(HAIKU_TOP) docs apps diskusage ] 263 : diskusage ; 264 265 266BuildHaikuPackage $(haikuPackage) : haiku ; 267