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