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 scsi : ahci virtio_scsi ; 37AddFilesToPackage add-ons kernel busses usb : <usb>uhci <usb>ohci <usb>ehci ; 38AddFilesToPackage add-ons kernel busses virtio : virtio_pci ; 39AddFilesToPackage add-ons kernel console : vga_text ; 40AddFilesToPackage add-ons kernel debugger 41 : <kdebug>demangle <kdebug>disasm@x86 #<kdebug>hangman 42 <kdebug>invalidate_on_exit <kdebug>usb_keyboard 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 <module>tty ; 48AddFilesToPackage add-ons kernel partitioning_systems 49 : amiga_rdb@m68k apple@ppc efi_gpt intel session ; 50AddFilesToPackage add-ons kernel interrupt_controllers : openpic@ppc ; 51AddFilesToPackage add-ons kernel power cpufreq : 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 disk scsi : scsi_cd scsi_disk ; 60AddNewDriversToPackage disk virtual : ram_disk virtio_block ; 61AddNewDriversToPackage power : acpi_battery@x86 ; 62AddNewDriversToPackage network : virtio_net ; 63#AddNewDriversToPackage display : display_adapter@x86 ; 64 65# legacy drivers 66AddDriversToPackage : console dprintf null random <driver>tty 67 zero ; 68AddDriversToPackage audio hmulti : $(SYSTEM_ADD_ONS_DRIVERS_AUDIO) ; 69AddDriversToPackage audio old : $(SYSTEM_ADD_ONS_DRIVERS_AUDIO_OLD) ; 70AddDriversToPackage midi : $(SYSTEM_ADD_ONS_DRIVERS_MIDI) ; 71AddDriversToPackage bus : usb_raw fw_raw@x86 ; 72AddDriversToPackage disk floppy : pc_floppy@x86 ; 73AddDriversToPackage disk usb : usb_disk ; 74AddDriversToPackage disk virtual : nbd ; 75AddDriversToPackage graphics : $(SYSTEM_ADD_ONS_DRIVERS_GRAPHICS) ; 76AddDriversToPackage input : ps2_hid usb_hid wacom ; 77AddDriversToPackage misc : <driver>poke <driver>mem ; 78AddDriversToPackage net : $(SYSTEM_ADD_ONS_DRIVERS_NET) ; 79AddDriversToPackage ports : pc_serial usb_serial ; 80AddDriversToPackage power : $(SYSTEM_ADD_ONS_DRIVERS_POWER) ; 81 82# kernel 83AddFilesToPackage : <revisioned>kernel_$(TARGET_ARCH) ; 84 85# libs 86AddLibrariesToPackage lib 87 : [ HaikuImageGetSystemLibs ] [ HaikuImageGetPrivateSystemLibs ] ; 88 89# libnetwork.so replaces quite a few libraries 90if $(HAIKU_GCC_VERSION_$(architecture)[1]) = 2 { 91 local libNetworkAliases = libsocket.so libbind.so libnet.so ; 92 local lib ; 93 for lib in $(libNetworkAliases) { 94 AddSymlinkToPackage lib : libnetwork.so : $(lib) ; 95 } 96 97 AddSymlinkToPackage lib : libbnetapi.so : libnetapi.so ; 98} 99 100 101# servers 102AddFilesToPackage servers : $(SYSTEM_SERVERS) ; 103 104# apps 105AddFilesToPackage : runtime_loader Deskbar Tracker ; 106AddFilesToPackage bin : $(SYSTEM_BIN) consoled ; 107AddFilesToPackage apps : $(SYSTEM_APPS) ; 108AddFilesToPackage preferences : $(SYSTEM_PREFERENCES) ; 109AddFilesToPackage demos : $(SYSTEM_DEMOS) ; 110 111SEARCH on install-wifi-firmwares.sh = [ FDirName $(HAIKU_TOP) data bin ] ; 112AddFilesToPackage bin : install-wifi-firmwares.sh ; 113 114AddSymlinkToPackage bin : trash : untrash ; 115AddSymlinkToPackage bin : less : more ; 116 117# scripts and data files 118local bootScripts = PostInstallScript SetupEnvironment 119 InstallerInitScript InstallerFinishScript ; 120SEARCH on $(bootScripts) = [ FDirName $(HAIKU_TOP) data system boot ] ; 121AddFilesToPackage boot : $(bootScripts) ; 122 123local launchScripts = <data!launch>system ; 124SEARCH on $(launchScripts) = [ FDirName $(HAIKU_TOP) data launch ] ; 125AddFilesToPackage data launch : $(launchScripts) ; 126 127local userLaunchScripts = <data!launch>user <data!launch>bootstrap ; 128SEARCH on $(userLaunchScripts) = [ FDirName $(HAIKU_TOP) data launch ] ; 129AddFilesToPackage data user_launch : $(userLaunchScripts) ; 130 131# first login scripts 132local firstLoginFiles = default_deskbar_items.sh ; 133firstLoginFiles = $(firstLoginFiles:G=first-login) ; 134SEARCH on $(firstLoginFiles) 135 = [ FDirName $(HAIKU_TOP) data system boot first_login ] ; 136AddFilesToPackage boot first_login : $(firstLoginFiles) ; 137 138local fortuneFiles = [ Glob $(HAIKU_TOP)/data/system/data/fortunes 139 : [a-zA-Z0-9]* ] ; 140fortuneFiles = $(fortuneFiles:G=data!fortunes) ; 141AddFilesToPackage data fortunes : $(fortuneFiles) ; 142 143local fontDir = [ FDirName $(HAIKU_TOP) data system data fonts ] ; 144local psFonts = [ Glob $(fontDir)/psfonts : *.afm *.pfb ] ; 145AddFilesToPackage data fonts psfonts : $(psFonts) ; 146 147# keymaps 148AddFilesToPackage data Keymaps : $(HAIKU_KEYMAP_FILES) ; 149local keymapAlias ; 150for keymapAlias in $(HAIKU_KEYMAP_ALIASES) { 151 local aliasedTo = [ on $(keymapAlias) return $(HAIKU_KEYMAP_FILE) ] ; 152 AddSymlinkToPackage data Keymaps : $(aliasedTo:BSM) : $(keymapAlias:BSM) ; 153} 154 155# keyboard layouts 156AddFilesToPackage data KeyboardLayouts 157 : $(HAIKU_KEYBOARD_LAYOUT_FILES) ; 158AddFilesToPackage data KeyboardLayouts Apple\ Aluminum 159 : $(HAIKU_APPLE_ALUMINUM_KEYBOARD_LAYOUT_FILES) ; 160AddFilesToPackage data KeyboardLayouts ThinkPad 161 : $(HAIKU_THINKPAD_KEYBOARD_LAYOUT_FILES) ; 162 163# boot module links 164AddBootModuleSymlinksToPackage 165 acpi@x86,x86_64 ata pci isa@x86,x86_64 config_manager dpc 166 scsi usb 167 openpic@ppc 168 ata_adapter locked_pool scsi_periph 169 ahci generic_ide_pci it8211 legacy_sata silicon_image_3112 170 highpoint_ide_pci 171 ide_isa@x86 172 <usb>uhci <usb>ohci <usb>ehci 173 scsi_cd scsi_disk usb_disk 174 virtio virtio_pci virtio_block virtio_scsi 175 efi_gpt 176 intel 177 bfs packagefs 178; 179 180# add-ons 181AddFilesToPackage add-ons accelerants : $(SYSTEM_ADD_ONS_ACCELERANTS) ; 182AddFilesToPackage add-ons Translators : $(SYSTEM_ADD_ONS_TRANSLATORS) ; 183AddFilesToPackage add-ons locale catalogs : $(SYSTEM_ADD_ONS_LOCALE_CATALOGS) ; 184 185AddFilesToPackage add-ons Tracker 186 : FileType Mark\ as… Mark\ as\ Read Open\ Target\ Folder 187 Open\ Terminal ZipOMatic ; 188AddSymlinkToPackage add-ons Tracker 189 : /boot/system/preferences/Backgrounds : Background-B ; 190AddSymlinkToPackage add-ons Tracker 191 : /boot/system/apps/TextSearch : TextSearch-G ; 192AddSymlinkToPackage add-ons Tracker 193 : /boot/system/apps/DiskUsage : DiskUsage-I ; 194 195AddFilesToPackage add-ons input_server devices 196 : <input>keyboard <input>mouse <input>tablet <input>wacom ; 197AddFilesToPackage add-ons input_server filters 198 : switch_workspace ; 199 200AddFilesToPackage add-ons kernel network : <net>notifications stack ; 201AddFilesToPackage add-ons kernel network : dns_resolver ; 202AddFilesToPackage add-ons kernel network devices : $(SYSTEM_NETWORK_DEVICES) ; 203AddFilesToPackage add-ons kernel network datalink_protocols 204 : $(SYSTEM_NETWORK_DATALINK_PROTOCOLS) ; 205AddFilesToPackage add-ons kernel network ppp : $(SYSTEM_NETWORK_PPP) ; 206AddFilesToPackage add-ons kernel network protocols 207 : $(SYSTEM_NETWORK_PROTOCOLS) ; 208 209AddFilesToPackage add-ons disk_systems 210 : <disk_system>intel <disk_system>gpt <disk_system>bfs <disk_system>ntfs ; 211 212 213# the MIME DB 214CopyDirectoryToPackage data : <mimedb>mime_db : : : isTarget ; 215 216 217# Deskbar menu symlinks 218 219# "Applications" links 220DESKBAR_APPLICATIONS = ActivityMonitor CharacterMap DeskCalc 221 Devices DiskProbe DriveSetup DiskUsage Expander Installer 222 StyledEdit Terminal 223; 224local linkTarget ; 225for linkTarget in $(DESKBAR_APPLICATIONS) { 226 AddSymlinkToPackage data deskbar menu Applications 227 : ../../../../apps/$(linkTarget) : $(linkTarget) ; 228} 229 230# "Desktop applets" links 231DESKBAR_DESKTOP_APPLETS = LaunchBox NetworkStatus PowerStatus ProcessController 232 Workspaces 233; 234for linkTarget in $(DESKBAR_DESKTOP_APPLETS) { 235 AddSymlinkToPackage data deskbar menu Desktop\ applets 236 : ../../../../apps/$(linkTarget) : $(linkTarget) ; 237} 238 239# "Preferences" links 240AddDirectoryToPackage data deskbar menu Preferences ; 241DESKBAR_PREFERENCES = $(SYSTEM_PREFERENCES:B) ; 242for linkTarget in $(DESKBAR_PREFERENCES) { 243 AddSymlinkToPackage data deskbar menu Preferences 244 : ../../../../preferences/$(linkTarget) 245 : $(linkTarget) ; 246} 247 248# Deskbar menu entries file 249AddFilesToPackage data deskbar : <deskbar>menu_entries ; 250 251 252# licenses 253CopyDirectoryToPackage data 254 : [ FDirName $(HAIKU_TOP) data system data licenses ] 255 : licenses ; 256 257# netresolv support files 258CopyDirectoryToPackage data 259 : [ FDirName $(HAIKU_TOP) data system data network ] 260 : network ; 261 262# Copy documentation as per DiskUsage's license requirement. 263CopyDirectoryToPackage documentation 264 : [ FDirName $(HAIKU_TOP) docs apps diskusage ] 265 : diskusage ; 266 267 268BuildHaikuPackage $(haikuPackage) : haiku ; 269