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 mmc : sdhci_pci ; 38AddFilesToPackage add-ons kernel busses random : virtio_rng ; 39AddFilesToPackage add-ons kernel busses scsi : ahci virtio_scsi ; 40AddFilesToPackage add-ons kernel busses usb : <usb>uhci <usb>ohci <usb>ehci 41 <usb>xhci ; 42AddFilesToPackage add-ons kernel busses virtio : virtio_pci ; 43AddFilesToPackage add-ons kernel console : vga_text ; 44AddFilesToPackage add-ons kernel debugger 45 : <kdebug>demangle <kdebug>disasm@x86,x86_64 <kdebug>hangman 46 <kdebug>invalidate_on_exit <kdebug>usb_keyboard <kdebug>qrencode@libqrencode 47 <kdebug>run_on_exit ; 48AddFilesToPackage add-ons kernel file_systems : $(SYSTEM_ADD_ONS_FILE_SYSTEMS) ; 49AddFilesToPackage add-ons kernel generic 50 : ata_adapter bios@x86,x86_64 dpc 51 locked_pool mpu401 scsi_periph smbios@x86,x86_64 <module>tty ; 52AddFilesToPackage add-ons kernel partitioning_systems 53 : amiga_rdb@m68k apple@ppc sun@sparc efi_gpt intel session ; 54AddFilesToPackage add-ons kernel interrupt_controllers : openpic@ppc ; 55AddFilesToPackage add-ons kernel power cpufreq : intel_pstates@x86,x86_64 ; 56AddFilesToPackage add-ons kernel power cpuidle : intel_cstates@x86,x86_64 ; 57 58if $(TARGET_ARCH) = x86 || $(TARGET_ARCH) = x86_64 { 59 AddFilesToPackage add-ons kernel cpu : generic_x86 ; 60} 61 62# drivers 63AddNewDriversToPackage : wmi@x86,x86_64 ; 64AddNewDriversToPackage disk : nvme_disk@x86,x86_64 ; 65AddNewDriversToPackage disk mmc : mmc_disk ; 66AddNewDriversToPackage disk scsi : scsi_cd scsi_disk ; 67AddNewDriversToPackage disk virtual : virtio_block ram_disk ; 68AddNewDriversToPackage power : $(SYSTEM_ADD_ONS_DRIVERS_POWER) ; 69AddNewDriversToPackage sensor : $(SYSTEM_ADD_ONS_DRIVERS_SENSOR) ; 70AddNewDriversToPackage network : virtio_net ; 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 fw_raw@x86 ; 80AddDriversToPackage disk floppy : pc_floppy@x86 ; 81AddDriversToPackage disk usb : usb_disk ; 82AddDriversToPackage disk virtual : nbd ; 83AddDriversToPackage dvb : cx23882 ; 84AddDriversToPackage graphics : $(SYSTEM_ADD_ONS_DRIVERS_GRAPHICS) ; 85AddDriversToPackage input : ps2_hid usb_hid wacom ; 86AddDriversToPackage misc : <driver>poke <driver>mem ; 87AddDriversToPackage net : $(SYSTEM_ADD_ONS_DRIVERS_NET) ; 88AddDriversToPackage ports : pc_serial usb_serial ; 89 90# kernel 91AddFilesToPackage : <revisioned>kernel_$(TARGET_ARCH) ; 92 93# libs 94AddLibrariesToPackage lib 95 : [ HaikuImageGetSystemLibs ] [ HaikuImageGetPrivateSystemLibs ] ; 96 97# libnetwork.so replaces quite a few libraries 98if $(HAIKU_CC_IS_LEGACY_GCC_$(architecture)) = 1 { 99 local libNetworkAliases = libsocket.so libbind.so libnet.so ; 100 local lib ; 101 for lib in $(libNetworkAliases) { 102 AddSymlinkToPackage lib : libnetwork.so : $(lib) ; 103 } 104 105 AddSymlinkToPackage lib : libbnetapi.so : libnetapi.so ; 106} 107 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# post install + first login scripts 139local postInstallFiles = add_catalog_entry_attributes.sh ; 140postInstallFiles = $(postInstallFiles:G=post-install) ; 141SEARCH on $(postInstallFiles) 142 = [ FDirName $(HAIKU_TOP) data system boot post_install ] ; 143AddFilesToPackage boot post-install : $(postInstallFiles) ; 144 145local firstLoginFiles = default_deskbar_items.sh ; 146firstLoginFiles = $(firstLoginFiles:G=first-login) ; 147SEARCH on $(firstLoginFiles) 148 = [ FDirName $(HAIKU_TOP) data system boot first_login ] ; 149AddFilesToPackage boot first-login : $(firstLoginFiles) ; 150 151# artwork and sounds 152local logoArtwork = 153 $(HAIKU_INCLUDE_TRADEMARKS)"HAIKU logo - white on blue - big.png" 154 $(HAIKU_INCLUDE_TRADEMARKS)"HAIKU logo - white on blue - normal.png" ; 155SEARCH on $(logoArtwork) = [ FDirName $(HAIKU_TOP) data artwork ] ; 156AddFilesToPackage data artwork : $(logoArtwork) ; 157 158# Mail spell check dictionaries 159local spellFiles = words geekspeak ; 160spellFiles = $(spellFiles:G=spell) ; 161SEARCH on $(spellFiles) = [ FDirName $(HAIKU_TOP) src apps mail ] ; 162AddFilesToPackage data spell_check word_dictionary : $(spellFiles) ; 163 164local fortuneFiles = [ Glob $(HAIKU_TOP)/data/system/data/fortunes 165 : [a-zA-Z0-9]* ] ; 166fortuneFiles = $(fortuneFiles:G=data!fortunes) ; 167AddFilesToPackage data fortunes : $(fortuneFiles) ; 168 169local fontDir = [ FDirName $(HAIKU_TOP) data system data fonts ] ; 170local psFonts = [ Glob $(fontDir)/psfonts : *.afm *.pfb ] ; 171AddFilesToPackage data fonts psfonts : $(psFonts) ; 172 173# keymaps 174AddFilesToPackage data Keymaps : $(HAIKU_KEYMAP_FILES) ; 175local keymapAlias ; 176for keymapAlias in $(HAIKU_KEYMAP_ALIASES) { 177 local aliasedTo = [ on $(keymapAlias) return $(HAIKU_KEYMAP_FILE) ] ; 178 AddSymlinkToPackage data Keymaps : $(aliasedTo:BSM) : $(keymapAlias:BSM) ; 179} 180 181# keyboard layouts 182AddFilesToPackage data KeyboardLayouts 183 : $(HAIKU_KEYBOARD_LAYOUT_FILES) ; 184AddFilesToPackage data KeyboardLayouts Apple\ Aluminum 185 : $(HAIKU_APPLE_ALUMINUM_KEYBOARD_LAYOUT_FILES) ; 186AddFilesToPackage data KeyboardLayouts ThinkPad 187 : $(HAIKU_THINKPAD_KEYBOARD_LAYOUT_FILES) ; 188 189# boot module links 190AddBootModuleSymlinksToPackage 191 acpi@x86,x86_64 ahci ata ata_adapter 192 bfs 193 config_manager 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@x86,x86_64 201 openpic@ppc 202 packagefs pci 203 scsi scsi_cd scsi_disk scsi_periph silicon_image_3112 highpoint_ide_pci 204 sdhci_pci 205 usb usb_disk <usb>ehci <usb>ohci <usb>uhci <usb>xhci 206 virtio virtio_block virtio_pci virtio_scsi 207; 208 209# add-ons 210AddFilesToPackage add-ons accelerants : $(SYSTEM_ADD_ONS_ACCELERANTS) ; 211AddFilesToPackage add-ons Translators : $(SYSTEM_ADD_ONS_TRANSLATORS) ; 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) ; 222AddFilesToPackage add-ons media plugins : $(SYSTEM_ADD_ONS_MEDIA_PLUGINS) ; 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>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 Print : $(SYSTEM_ADD_ONS_PRINT) ; 254AddFilesToPackage add-ons Print transport 255 : $(SYSTEM_ADD_ONS_PRINT_TRANSPORT) ; 256AddFilesToPackage add-ons Screen\ Savers : $(SYSTEM_ADD_ONS_SCREENSAVERS) ; 257 258AddFilesToPackage add-ons disk_systems 259 : <disk_system>fat <disk_system>intel <disk_system>gpt <disk_system>bfs 260 <disk_system>ntfs ; 261 262# Kernel bluetooth stack 263AddFilesToPackage add-ons kernel bluetooth : $(SYSTEM_BT_STACK) ; 264 265# decorators 266AddFilesToPackage add-ons decorators : BeDecorator ; 267 # MacDecorator WinDecorator 268 269# the MIME DB 270CopyDirectoryToPackage data : <mimedb>mime_db : : : isTarget ; 271 272# directory attributes 273AddDirectoryToPackage apps : system-apps.rdef ; 274AddDirectoryToPackage preferences : system-preferences.rdef ; 275 276# Deskbar menu symlinks 277 278# "Applications" links 279local linkTarget ; 280for linkTarget in $(DESKBAR_APPLICATIONS) { 281 AddSymlinkToPackage data deskbar menu Applications 282 : ../../../../apps/$(linkTarget) : $(linkTarget) ; 283} 284 285# "Desktop applets" links 286for linkTarget in $(DESKBAR_DESKTOP_APPLETS) { 287 AddSymlinkToPackage data deskbar menu Desktop\ applets 288 : ../../../../apps/$(linkTarget) : $(linkTarget) ; 289} 290 291# "Preferences" links 292AddDirectoryToPackage data deskbar menu Preferences ; 293DESKBAR_PREFERENCES = $(SYSTEM_PREFERENCES:B) ; 294for linkTarget in $(DESKBAR_PREFERENCES) { 295 AddSymlinkToPackage data deskbar menu Preferences 296 : ../../../../preferences/$(linkTarget) 297 : $(linkTarget) ; 298} 299 300# "Demo" links 301AddDirectoryToPackage data deskbar menu Demos ; 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