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 random : virtio_rng ; 38AddFilesToPackage add-ons kernel busses scsi : ahci virtio_scsi ; 39AddFilesToPackage add-ons kernel busses usb : <usb>uhci <usb>ohci <usb>ehci 40 <usb>xhci ; 41AddFilesToPackage add-ons kernel busses virtio : virtio_pci ; 42AddFilesToPackage add-ons kernel console : vga_text ; 43AddFilesToPackage add-ons kernel debugger 44 : <kdebug>demangle <kdebug>disasm@x86,x86_64 <kdebug>hangman 45 <kdebug>invalidate_on_exit <kdebug>usb_keyboard <kdebug>qrencode@libqrencode 46 <kdebug>run_on_exit ; 47AddFilesToPackage add-ons kernel file_systems : $(SYSTEM_ADD_ONS_FILE_SYSTEMS) ; 48AddFilesToPackage add-ons kernel generic 49 : ata_adapter bios@x86,x86_64 dpc 50 locked_pool mpu401 scsi_periph smbios@x86,x86_64 <module>tty ; 51AddFilesToPackage add-ons kernel partitioning_systems 52 : amiga_rdb@m68k apple@ppc sun@sparc efi_gpt intel session ; 53AddFilesToPackage add-ons kernel interrupt_controllers : openpic@ppc ; 54AddFilesToPackage add-ons kernel power cpufreq : intel_pstates@x86,x86_64 ; 55AddFilesToPackage add-ons kernel power cpuidle : intel_cstates@x86,x86_64 ; 56 57if $(TARGET_ARCH) = x86 || $(TARGET_ARCH) = x86_64 { 58 AddFilesToPackage add-ons kernel cpu : generic_x86 ; 59} 60 61# drivers 62AddNewDriversToPackage : wmi@x86,x86_64 ; 63AddNewDriversToPackage disk : nvme_disk@x86,x86_64 ; 64AddNewDriversToPackage disk scsi : scsi_cd scsi_disk ; 65AddNewDriversToPackage disk virtual : virtio_block ram_disk ; 66AddNewDriversToPackage power : $(SYSTEM_ADD_ONS_DRIVERS_POWER) ; 67AddNewDriversToPackage sensor : $(SYSTEM_ADD_ONS_DRIVERS_SENSOR) ; 68AddNewDriversToPackage network : virtio_net ; 69#AddNewDriversToPackage display : display_adapter@x86 ; 70 71# legacy drivers 72AddDriversToPackage : console dprintf null <driver>tty usb_modeswitch zero ; 73AddDriversToPackage audio hmulti : $(SYSTEM_ADD_ONS_DRIVERS_AUDIO) ; 74AddDriversToPackage audio old : $(SYSTEM_ADD_ONS_DRIVERS_AUDIO_OLD) ; 75AddDriversToPackage bluetooth h2 : $(SYSTEM_ADD_ONS_DRIVERS_BT_H2) ; 76AddDriversToPackage midi : $(SYSTEM_ADD_ONS_DRIVERS_MIDI) ; 77AddDriversToPackage bus : usb_raw fw_raw@x86 ; 78AddDriversToPackage disk floppy : pc_floppy@x86 ; 79AddDriversToPackage disk usb : usb_disk ; 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# servers 108AddFilesToPackage servers : $(SYSTEM_SERVERS) ; 109 110# apps 111AddFilesToPackage : runtime_loader Deskbar Tracker ; 112AddFilesToPackage bin : $(SYSTEM_BIN) consoled ; 113AddFilesToPackage apps : $(SYSTEM_APPS) ; 114AddFilesToPackage preferences : $(SYSTEM_PREFERENCES) ; 115AddFilesToPackage demos : $(SYSTEM_DEMOS) ; 116 117SEARCH on install-wifi-firmwares.sh = [ FDirName $(HAIKU_TOP) data bin ] ; 118AddFilesToPackage bin : install-wifi-firmwares.sh ; 119 120AddSymlinkToPackage bin : trash : untrash ; 121AddSymlinkToPackage bin : less : more ; 122 123# scripts and data files 124local bootScripts = PostInstallScript SetupEnvironment ; 125SEARCH on $(bootScripts) = [ FDirName $(HAIKU_TOP) data system boot ] ; 126AddFilesToPackage boot : $(bootScripts) ; 127 128local launchScripts = <data!launch>system ; 129SEARCH on $(launchScripts) = [ FDirName $(HAIKU_TOP) data launch ] ; 130AddFilesToPackage data launch : $(launchScripts) ; 131 132local userLaunchScripts = <data!launch>user ; 133SEARCH on $(userLaunchScripts) = [ FDirName $(HAIKU_TOP) data launch ] ; 134AddFilesToPackage data user_launch : $(userLaunchScripts) ; 135 136# post install + first login scripts 137local postInstallFiles = add_catalog_entry_attributes.sh ; 138postInstallFiles = $(postInstallFiles:G=post-install) ; 139SEARCH on $(postInstallFiles) 140 = [ FDirName $(HAIKU_TOP) data system boot post_install ] ; 141AddFilesToPackage boot post-install : $(postInstallFiles) ; 142 143local firstLoginFiles = default_deskbar_items.sh ; 144firstLoginFiles = $(firstLoginFiles:G=first-login) ; 145SEARCH on $(firstLoginFiles) 146 = [ FDirName $(HAIKU_TOP) data system boot first_login ] ; 147AddFilesToPackage boot first-login : $(firstLoginFiles) ; 148 149# artwork and sounds 150local logoArtwork = 151 $(HAIKU_INCLUDE_TRADEMARKS)"HAIKU logo - white on blue - big.png" 152 $(HAIKU_INCLUDE_TRADEMARKS)"HAIKU logo - white on blue - normal.png" ; 153SEARCH on $(logoArtwork) = [ FDirName $(HAIKU_TOP) data artwork ] ; 154AddFilesToPackage data artwork : $(logoArtwork) ; 155 156# Mail spell check dictionaries 157local spellFiles = words geekspeak ; 158spellFiles = $(spellFiles:G=spell) ; 159SEARCH on $(spellFiles) = [ FDirName $(HAIKU_TOP) src apps mail ] ; 160AddFilesToPackage data spell_check word_dictionary : $(spellFiles) ; 161 162local fortuneFiles = [ Glob $(HAIKU_TOP)/data/system/data/fortunes 163 : [a-zA-Z0-9]* ] ; 164fortuneFiles = $(fortuneFiles:G=data!fortunes) ; 165AddFilesToPackage data fortunes : $(fortuneFiles) ; 166 167local fontDir = [ FDirName $(HAIKU_TOP) data system data fonts ] ; 168local psFonts = [ Glob $(fontDir)/psfonts : *.afm *.pfb ] ; 169AddFilesToPackage data fonts psfonts : $(psFonts) ; 170 171# keymaps 172AddFilesToPackage data Keymaps : $(HAIKU_KEYMAP_FILES) ; 173local keymapAlias ; 174for keymapAlias in $(HAIKU_KEYMAP_ALIASES) { 175 local aliasedTo = [ on $(keymapAlias) return $(HAIKU_KEYMAP_FILE) ] ; 176 AddSymlinkToPackage data Keymaps : $(aliasedTo:BSM) : $(keymapAlias:BSM) ; 177} 178 179# keyboard layouts 180AddFilesToPackage data KeyboardLayouts 181 : $(HAIKU_KEYBOARD_LAYOUT_FILES) ; 182AddFilesToPackage data KeyboardLayouts Apple\ Aluminum 183 : $(HAIKU_APPLE_ALUMINUM_KEYBOARD_LAYOUT_FILES) ; 184AddFilesToPackage data KeyboardLayouts ThinkPad 185 : $(HAIKU_THINKPAD_KEYBOARD_LAYOUT_FILES) ; 186 187# boot module links 188AddBootModuleSymlinksToPackage 189 acpi@x86,x86_64 ahci ata ata_adapter 190 bfs 191 config_manager 192 dpc 193 efi_gpt 194 generic_ide_pci 195 ide_isa@x86 isa@x86,x86_64 intel it8211 196 legacy_sata locked_pool 197 nvme_disk@x86,x86_64 198 openpic@ppc 199 packagefs pci 200 scsi scsi_cd scsi_disk scsi_periph silicon_image_3112 highpoint_ide_pci 201 usb usb_disk <usb>ehci <usb>ohci <usb>uhci <usb>xhci 202 virtio virtio_block virtio_pci virtio_scsi 203; 204 205# add-ons 206AddFilesToPackage add-ons accelerants : $(SYSTEM_ADD_ONS_ACCELERANTS) ; 207AddFilesToPackage add-ons Translators : $(SYSTEM_ADD_ONS_TRANSLATORS) ; 208AddFilesToPackage add-ons locale catalogs : $(SYSTEM_ADD_ONS_LOCALE_CATALOGS) ; 209 210AddFilesToPackage add-ons mail_daemon inbound_protocols : POP3 211 IMAP ; 212AddFilesToPackage add-ons mail_daemon outbound_protocols : SMTP ; 213AddFilesToPackage add-ons mail_daemon inbound_filters 214 : MatchHeader SpamFilter NewMailNotification ; 215AddFilesToPackage add-ons mail_daemon outbound_filters : Fortune ; 216 217AddFilesToPackage add-ons media : $(SYSTEM_ADD_ONS_MEDIA) ; 218AddFilesToPackage add-ons media plugins : $(SYSTEM_ADD_ONS_MEDIA_PLUGINS) ; 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>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 Print : $(SYSTEM_ADD_ONS_PRINT) ; 250AddFilesToPackage add-ons Print transport 251 : $(SYSTEM_ADD_ONS_PRINT_TRANSPORT) ; 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# decorators 262AddFilesToPackage add-ons decorators : BeDecorator ; 263 # MacDecorator WinDecorator 264 265# the MIME DB 266CopyDirectoryToPackage data : <mimedb>mime_db : : : isTarget ; 267 268# directory attributes 269AddDirectoryToPackage apps : system-apps.rdef ; 270AddDirectoryToPackage preferences : system-preferences.rdef ; 271 272# Deskbar menu symlinks 273 274# "Applications" links 275local linkTarget ; 276for linkTarget in $(DESKBAR_APPLICATIONS) { 277 AddSymlinkToPackage data deskbar menu Applications 278 : ../../../../apps/$(linkTarget) : $(linkTarget) ; 279} 280 281# "Desktop applets" links 282for linkTarget in $(DESKBAR_DESKTOP_APPLETS) { 283 AddSymlinkToPackage data deskbar menu Desktop\ applets 284 : ../../../../apps/$(linkTarget) : $(linkTarget) ; 285} 286 287# "Preferences" links 288AddDirectoryToPackage data deskbar menu Preferences ; 289DESKBAR_PREFERENCES = $(SYSTEM_PREFERENCES:B) ; 290for linkTarget in $(DESKBAR_PREFERENCES) { 291 AddSymlinkToPackage data deskbar menu Preferences 292 : ../../../../preferences/$(linkTarget) 293 : $(linkTarget) ; 294} 295 296# "Demo" links 297AddDirectoryToPackage data deskbar menu Demos ; 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