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 i2c : pch_i2c@x86,x86_64 ; 37AddFilesToPackage add-ons kernel busses random : virtio_rng ; 38AddFilesToPackage add-ons kernel busses scsi : ahci virtio_scsi ; 39AddFilesToPackage add-ons kernel busses usb : <usb>uhci <usb>ohci <usb>ehci 40 <usb>xhci ; 41AddFilesToPackage add-ons kernel busses virtio : virtio_pci ; 42AddFilesToPackage add-ons kernel console : vga_text ; 43AddFilesToPackage add-ons kernel debugger 44 : <kdebug>demangle <kdebug>disasm@x86,x86_64 <kdebug>hangman 45 <kdebug>invalidate_on_exit <kdebug>usb_keyboard <kdebug>qrencode@libqrencode 46 <kdebug>run_on_exit ; 47AddFilesToPackage add-ons kernel file_systems : $(SYSTEM_ADD_ONS_FILE_SYSTEMS) ; 48AddFilesToPackage add-ons kernel generic 49 : ata_adapter bios@x86,x86_64 dpc 50 locked_pool mpu401 scsi_periph smbios@x86,x86_64 <module>tty ; 51AddFilesToPackage add-ons kernel partitioning_systems 52 : amiga_rdb@m68k apple@ppc sun@sparc efi_gpt intel session ; 53AddFilesToPackage add-ons kernel interrupt_controllers : openpic@ppc ; 54AddFilesToPackage add-ons kernel power cpufreq : intel_pstates@x86,x86_64 ; 55AddFilesToPackage add-ons kernel power cpuidle : intel_cstates@x86,x86_64 ; 56 57if $(TARGET_ARCH) = x86 || $(TARGET_ARCH) = x86_64 { 58 AddFilesToPackage add-ons kernel cpu : generic_x86 ; 59} 60 61# drivers 62AddNewDriversToPackage : wmi@x86,x86_64 ; 63AddNewDriversToPackage disk : nvme_disk@x86,x86_64 ; 64AddNewDriversToPackage disk scsi : scsi_cd scsi_disk ; 65AddNewDriversToPackage disk virtual : virtio_block ram_disk ; 66AddNewDriversToPackage power : $(SYSTEM_ADD_ONS_DRIVERS_POWER) ; 67AddNewDriversToPackage sensor : $(SYSTEM_ADD_ONS_DRIVERS_SENSOR) ; 68AddNewDriversToPackage network : virtio_net ; 69#AddNewDriversToPackage display : display_adapter@x86 ; 70 71# legacy drivers 72AddDriversToPackage : console dprintf null <driver>tty usb_modeswitch zero ; 73AddDriversToPackage audio hmulti : $(SYSTEM_ADD_ONS_DRIVERS_AUDIO) ; 74AddDriversToPackage audio old : $(SYSTEM_ADD_ONS_DRIVERS_AUDIO_OLD) ; 75AddDriversToPackage bluetooth h2 : $(SYSTEM_ADD_ONS_DRIVERS_BT_H2) ; 76AddDriversToPackage midi : $(SYSTEM_ADD_ONS_DRIVERS_MIDI) ; 77AddDriversToPackage bus : usb_raw fw_raw@x86 ; 78AddDriversToPackage disk floppy : pc_floppy@x86 ; 79AddDriversToPackage disk usb : usb_disk ; 80AddDriversToPackage disk virtual : nbd ; 81AddDriversToPackage dvb : cx23882 ; 82AddDriversToPackage graphics : $(SYSTEM_ADD_ONS_DRIVERS_GRAPHICS) ; 83AddDriversToPackage input : ps2_hid usb_hid wacom ; 84AddDriversToPackage misc : <driver>poke <driver>mem ; 85AddDriversToPackage net : $(SYSTEM_ADD_ONS_DRIVERS_NET) ; 86AddDriversToPackage ports : pc_serial usb_serial ; 87 88# kernel 89AddFilesToPackage : <revisioned>kernel_$(TARGET_ARCH) ; 90 91# libs 92AddLibrariesToPackage lib 93 : [ HaikuImageGetSystemLibs ] [ HaikuImageGetPrivateSystemLibs ] ; 94 95# libnetwork.so replaces quite a few libraries 96if $(HAIKU_GCC_VERSION_$(architecture)[1]) = 2 { 97 local libNetworkAliases = libsocket.so libbind.so libnet.so ; 98 local lib ; 99 for lib in $(libNetworkAliases) { 100 AddSymlinkToPackage lib : libnetwork.so : $(lib) ; 101 } 102 103 AddSymlinkToPackage lib : libbnetapi.so : libnetapi.so ; 104} 105 106 107# servers 108AddFilesToPackage servers : $(SYSTEM_SERVERS) ; 109 110# apps 111AddFilesToPackage : runtime_loader Deskbar Tracker ; 112AddFilesToPackage bin : $(SYSTEM_BIN) consoled ; 113AddFilesToPackage apps : $(SYSTEM_APPS) ; 114AddFilesToPackage preferences : $(SYSTEM_PREFERENCES) ; 115AddFilesToPackage demos : $(SYSTEM_DEMOS) ; 116 117SEARCH on install-wifi-firmwares.sh = [ FDirName $(HAIKU_TOP) data bin ] ; 118AddFilesToPackage bin : install-wifi-firmwares.sh ; 119 120AddSymlinkToPackage bin : trash : untrash ; 121AddSymlinkToPackage bin : less : more ; 122 123# scripts and data files 124local bootScripts = PostInstallScript SetupEnvironment 125 InstallerInitScript InstallerFinishScript ; 126SEARCH on $(bootScripts) = [ FDirName $(HAIKU_TOP) data system boot ] ; 127AddFilesToPackage boot : $(bootScripts) ; 128 129local launchScripts = <data!launch>system ; 130SEARCH on $(launchScripts) = [ FDirName $(HAIKU_TOP) data launch ] ; 131AddFilesToPackage data launch : $(launchScripts) ; 132 133local userLaunchScripts = <data!launch>user ; 134SEARCH on $(userLaunchScripts) = [ FDirName $(HAIKU_TOP) data launch ] ; 135AddFilesToPackage data user_launch : $(userLaunchScripts) ; 136 137# post install + first login scripts 138local postInstallFiles = add_catalog_entry_attributes.sh ; 139postInstallFiles = $(postInstallFiles:G=post-install) ; 140SEARCH on $(postInstallFiles) 141 = [ FDirName $(HAIKU_TOP) data system boot post_install ] ; 142AddFilesToPackage boot post-install : $(postInstallFiles) ; 143 144local firstLoginFiles = default_deskbar_items.sh ; 145firstLoginFiles = $(firstLoginFiles:G=first-login) ; 146SEARCH on $(firstLoginFiles) 147 = [ FDirName $(HAIKU_TOP) data system boot first_login ] ; 148AddFilesToPackage boot first-login : $(firstLoginFiles) ; 149 150# artwork and sounds 151local logoArtwork = 152 $(HAIKU_INCLUDE_TRADEMARKS)"HAIKU logo - white on blue - big.png" 153 $(HAIKU_INCLUDE_TRADEMARKS)"HAIKU logo - white on blue - normal.png" ; 154SEARCH on $(logoArtwork) = [ FDirName $(HAIKU_TOP) data artwork ] ; 155AddFilesToPackage data artwork : $(logoArtwork) ; 156 157# Mail spell check dictionaries 158local spellFiles = words geekspeak ; 159spellFiles = $(spellFiles:G=spell) ; 160SEARCH on $(spellFiles) = [ FDirName $(HAIKU_TOP) src apps mail ] ; 161AddFilesToPackage data spell_check word_dictionary : $(spellFiles) ; 162 163local fortuneFiles = [ Glob $(HAIKU_TOP)/data/system/data/fortunes 164 : [a-zA-Z0-9]* ] ; 165fortuneFiles = $(fortuneFiles:G=data!fortunes) ; 166AddFilesToPackage data fortunes : $(fortuneFiles) ; 167 168local fontDir = [ FDirName $(HAIKU_TOP) data system data fonts ] ; 169local psFonts = [ Glob $(fontDir)/psfonts : *.afm *.pfb ] ; 170AddFilesToPackage data fonts psfonts : $(psFonts) ; 171 172# keymaps 173AddFilesToPackage data Keymaps : $(HAIKU_KEYMAP_FILES) ; 174local keymapAlias ; 175for keymapAlias in $(HAIKU_KEYMAP_ALIASES) { 176 local aliasedTo = [ on $(keymapAlias) return $(HAIKU_KEYMAP_FILE) ] ; 177 AddSymlinkToPackage data Keymaps : $(aliasedTo:BSM) : $(keymapAlias:BSM) ; 178} 179 180# keyboard layouts 181AddFilesToPackage data KeyboardLayouts 182 : $(HAIKU_KEYBOARD_LAYOUT_FILES) ; 183AddFilesToPackage data KeyboardLayouts Apple\ Aluminum 184 : $(HAIKU_APPLE_ALUMINUM_KEYBOARD_LAYOUT_FILES) ; 185AddFilesToPackage data KeyboardLayouts ThinkPad 186 : $(HAIKU_THINKPAD_KEYBOARD_LAYOUT_FILES) ; 187 188# boot module links 189AddBootModuleSymlinksToPackage 190 acpi@x86,x86_64 ahci ata ata_adapter 191 bfs 192 config_manager 193 dpc 194 efi_gpt 195 generic_ide_pci 196 ide_isa@x86 isa@x86,x86_64 intel it8211 197 legacy_sata locked_pool 198 nvme_disk@x86,x86_64 199 openpic@ppc 200 packagefs pci 201 scsi scsi_cd scsi_disk scsi_periph silicon_image_3112 highpoint_ide_pci 202 usb usb_disk <usb>ehci <usb>ohci <usb>uhci <usb>xhci 203 virtio virtio_block virtio_pci virtio_scsi 204; 205 206# add-ons 207AddFilesToPackage add-ons accelerants : $(SYSTEM_ADD_ONS_ACCELERANTS) ; 208AddFilesToPackage add-ons Translators : $(SYSTEM_ADD_ONS_TRANSLATORS) ; 209AddFilesToPackage add-ons locale catalogs : $(SYSTEM_ADD_ONS_LOCALE_CATALOGS) ; 210 211AddFilesToPackage add-ons mail_daemon inbound_protocols : POP3 212 IMAP ; 213AddFilesToPackage add-ons mail_daemon outbound_protocols : SMTP ; 214AddFilesToPackage add-ons mail_daemon inbound_filters 215 : MatchHeader SpamFilter NewMailNotification ; 216AddFilesToPackage add-ons mail_daemon outbound_filters : Fortune ; 217 218AddFilesToPackage add-ons media : $(SYSTEM_ADD_ONS_MEDIA) ; 219AddFilesToPackage add-ons media plugins : $(SYSTEM_ADD_ONS_MEDIA_PLUGINS) ; 220 221AddFilesToPackage add-ons Network\ Settings 222 : IPv4Interface IPv6Interface DNSClientService Hostname FTPService SSHService 223 TelnetService ; 224 225AddFilesToPackage add-ons Tracker 226 : FileType Mark\ as… Mark\ as\ Read Open\ Target\ Folder 227 Open\ Terminal ZipOMatic ; 228AddSymlinkToPackage add-ons Tracker 229 : /boot/system/preferences/Backgrounds : Background ; 230AddSymlinkToPackage add-ons Tracker 231 : /boot/system/apps/TextSearch : TextSearch ; 232AddSymlinkToPackage add-ons Tracker 233 : /boot/system/apps/DiskUsage : DiskUsage ; 234 235AddFilesToPackage add-ons input_server devices 236 : <input>keyboard <input>mouse <input>tablet <input>wacom ; 237AddFilesToPackage add-ons input_server filters 238 : padblocker screen_saver shortcut_catcher switch_workspace ; 239AddDirectoryToPackage add-ons input_server methods ; 240 241AddFilesToPackage add-ons kernel network : <net>notifications stack ; 242AddFilesToPackage add-ons kernel network : dns_resolver ; 243AddFilesToPackage add-ons kernel network devices : $(SYSTEM_NETWORK_DEVICES) ; 244AddFilesToPackage add-ons kernel network datalink_protocols 245 : $(SYSTEM_NETWORK_DATALINK_PROTOCOLS) ; 246AddFilesToPackage add-ons kernel network ppp : $(SYSTEM_NETWORK_PPP) ; 247AddFilesToPackage add-ons kernel network protocols 248 : $(SYSTEM_NETWORK_PROTOCOLS) ; 249 250AddFilesToPackage add-ons Print : $(SYSTEM_ADD_ONS_PRINT) ; 251AddFilesToPackage add-ons Print transport 252 : $(SYSTEM_ADD_ONS_PRINT_TRANSPORT) ; 253AddFilesToPackage add-ons Screen\ Savers : $(SYSTEM_ADD_ONS_SCREENSAVERS) ; 254 255AddFilesToPackage add-ons disk_systems 256 : <disk_system>fat <disk_system>intel <disk_system>gpt <disk_system>bfs 257 <disk_system>ntfs ; 258 259# Kernel bluetooth stack 260AddFilesToPackage add-ons kernel bluetooth : $(SYSTEM_BT_STACK) ; 261 262# decorators 263AddFilesToPackage add-ons decorators : BeDecorator ; 264 # MacDecorator WinDecorator 265 266# the MIME DB 267CopyDirectoryToPackage data : <mimedb>mime_db : : : isTarget ; 268 269# directory attributes 270AddDirectoryToPackage apps : system-apps.rdef ; 271AddDirectoryToPackage preferences : system-preferences.rdef ; 272 273# Deskbar menu symlinks 274 275# "Applications" links 276local linkTarget ; 277for linkTarget in $(DESKBAR_APPLICATIONS) { 278 AddSymlinkToPackage data deskbar menu Applications 279 : ../../../../apps/$(linkTarget) : $(linkTarget) ; 280} 281 282# "Desktop applets" links 283for linkTarget in $(DESKBAR_DESKTOP_APPLETS) { 284 AddSymlinkToPackage data deskbar menu Desktop\ applets 285 : ../../../../apps/$(linkTarget) : $(linkTarget) ; 286} 287 288# "Preferences" links 289AddDirectoryToPackage data deskbar menu Preferences ; 290DESKBAR_PREFERENCES = $(SYSTEM_PREFERENCES:B) ; 291for linkTarget in $(DESKBAR_PREFERENCES) { 292 AddSymlinkToPackage data deskbar menu Preferences 293 : ../../../../preferences/$(linkTarget) 294 : $(linkTarget) ; 295} 296 297# "Demo" links 298AddDirectoryToPackage data deskbar menu Demos ; 299for linkTarget in $(SYSTEM_DEMOS) { 300 AddSymlinkToPackage data deskbar menu Demos 301 : ../../../../demos/$(linkTarget) : $(linkTarget) ; 302} 303 304# Deskbar menu entries file 305AddFilesToPackage data deskbar : <deskbar>menu_entries ; 306 307# licenses 308CopyDirectoryToPackage data 309 : [ FDirName $(HAIKU_TOP) data system data licenses ] 310 : licenses ; 311 312# netresolv support files 313CopyDirectoryToPackage data 314 : [ FDirName $(HAIKU_TOP) data system data network ] 315 : network ; 316 317# Copy documentation as per DiskUsage's license requirement. 318CopyDirectoryToPackage documentation 319 : [ FDirName $(HAIKU_TOP) docs apps diskusage ] 320 : diskusage ; 321 322 323# empty directory 324AddDirectoryToPackage data empty ; 325 326 327BuildHaikuPackage $(haikuPackage) : haiku ; 328