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