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