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