1 local architecture = $(HAIKU_PACKAGING_ARCHS[1]) ;
4 local haikuPackage = haiku.hpkg ;
5 HaikuPackage $(haikuPackage) ;
10 for 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) ] ;
15 AddWifiFirmwareToPackage $(driver) : $(package) : $(archive)
18 local packages = [ on $(driver) return $(HAIKU_WIFI_FIRMWARE_PACKAGES) ] ;
19 local archives = [ on $(driver) return $(HAIKU_WIFI_FIRMWARE_ARCHIVES) ] ;
21 for archive in $(archives) {
22 AddWifiFirmwareToPackage $(driver) : $(packages[1]) : $(archive)
24 packages = $(packages[2-]) ;
30 AddFilesToPackage add-ons kernel bus_managers : $(SYSTEM_ADD_ONS_BUS_MANAGERS) ;
31 AddFilesToPackage add-ons kernel busses agp_gart : <agp_gart>intel@x86,x86_64 ;
33 AddFilesToPackage add-ons kernel busses ata
34 : generic_ide_pci it8211 legacy_sata silicon_image_3112 highpoint_ide_pci ide_isa@x86 ;
36 AddFilesToPackage add-ons kernel busses scsi : ahci virtio_scsi ;
37 AddFilesToPackage add-ons kernel busses usb : <usb>uhci <usb>ohci <usb>ehci ;
38 AddFilesToPackage add-ons kernel busses virtio : virtio_pci ;
39 AddFilesToPackage add-ons kernel console : vga_text ;
40 AddFilesToPackage add-ons kernel debugger
41 : <kdebug>demangle <kdebug>disasm@x86 #<kdebug>hangman
42 <kdebug>invalidate_on_exit <kdebug>usb_keyboard
44 AddFilesToPackage add-ons kernel file_systems : $(SYSTEM_ADD_ONS_FILE_SYSTEMS) ;
45 AddFilesToPackage add-ons kernel generic
46 : ata_adapter@ata bios@x86,x86_64 dpc
47 locked_pool mpu401 scsi_periph <module>tty ;
48 AddFilesToPackage add-ons kernel partitioning_systems
49 : amiga_rdb@m68k apple@ppc efi_gpt intel session ;
50 AddFilesToPackage add-ons kernel interrupt_controllers : openpic@ppc ;
51 AddFilesToPackage add-ons kernel power cpufreq : intel_pstates@x86,x86_64 ;
52 AddFilesToPackage add-ons kernel power cpuidle : intel_cstates@x86,x86_64 ;
54 if $(TARGET_ARCH) = x86 || $(TARGET_ARCH) = x86_64 {
55 AddFilesToPackage add-ons kernel cpu : generic_x86 ;
59 AddNewDriversToPackage disk scsi : scsi_cd scsi_disk ;
60 AddNewDriversToPackage disk virtual : virtio_block ;
61 AddNewDriversToPackage power : acpi_battery@x86 ;
62 #AddNewDriversToPackage display : display_adapter@x86 ;
65 AddDriversToPackage : console dprintf null random <driver>tty
67 AddDriversToPackage audio hmulti : $(SYSTEM_ADD_ONS_DRIVERS_AUDIO) ;
68 AddDriversToPackage audio old : $(SYSTEM_ADD_ONS_DRIVERS_AUDIO_OLD) ;
69 AddDriversToPackage midi : $(SYSTEM_ADD_ONS_DRIVERS_MIDI) ;
70 AddDriversToPackage bus : usb_raw fw_raw@x86 ;
71 AddDriversToPackage disk floppy : pc_floppy@x86 ;
72 AddDriversToPackage disk usb : usb_disk ;
73 AddDriversToPackage disk usb : usb_floppy ;
74 AddDriversToPackage printer usb : usb_printer ;
75 AddDriversToPackage disk virtual : nbd ;
76 AddDriversToPackage graphics : $(SYSTEM_ADD_ONS_DRIVERS_GRAPHICS) ;
77 AddDriversToPackage input : ps2_hid usb_hid wacom ;
78 AddDriversToPackage misc : <driver>poke <driver>mem ;
79 AddDriversToPackage net : $(SYSTEM_ADD_ONS_DRIVERS_NET) ;
80 AddDriversToPackage ports : pc_serial usb_serial ;
81 AddDriversToPackage power : $(SYSTEM_ADD_ONS_DRIVERS_POWER) ;
84 AddFilesToPackage : <revisioned>kernel_$(TARGET_ARCH) ;
87 AddLibrariesToPackage lib
88 : [ HaikuImageGetSystemLibs ] [ HaikuImageGetPrivateSystemLibs ] ;
90 # libnetwork.so replaces quite a few libraries
91 if $(HAIKU_GCC_VERSION_$(architecture)[1]) = 2 {
92 local libNetworkAliases = libsocket.so libbind.so libnet.so ;
94 for lib in $(libNetworkAliases) {
95 AddSymlinkToPackage lib : libnetwork.so : $(lib) ;
98 AddSymlinkToPackage lib : libbnetapi.so : libnetapi.so ;
103 AddFilesToPackage servers : $(SYSTEM_SERVERS) ;
106 AddFilesToPackage : runtime_loader Deskbar Tracker ;
107 AddFilesToPackage bin : $(SYSTEM_BIN) consoled ;
108 AddFilesToPackage apps : $(SYSTEM_APPS) ;
109 AddFilesToPackage preferences : $(SYSTEM_PREFERENCES) ;
110 AddFilesToPackage demos : $(SYSTEM_DEMOS) ;
112 SEARCH on install-wifi-firmwares.sh = [ FDirName $(HAIKU_TOP) data bin ] ;
113 AddFilesToPackage bin : install-wifi-firmwares.sh ;
115 AddSymlinkToPackage bin : trash : untrash ;
116 AddSymlinkToPackage bin : less : more ;
118 # scripts and data files
119 local bootScripts = PostInstallScript SetupEnvironment
120 InstallerInitScript InstallerFinishScript ;
121 SEARCH on $(bootScripts) = [ FDirName $(HAIKU_TOP) data system boot ] ;
122 AddFilesToPackage boot : $(bootScripts) ;
124 local launchScripts = <data!launch>system ;
125 SEARCH on $(launchScripts) = [ FDirName $(HAIKU_TOP) data launch ] ;
126 AddFilesToPackage data launch : $(launchScripts) ;
128 local userLaunchScripts = <data!launch>user <data!launch>bootstrap ;
129 SEARCH on $(userLaunchScripts) = [ FDirName $(HAIKU_TOP) data launch ] ;
130 AddFilesToPackage data user_launch : $(userLaunchScripts) ;
132 # first login scripts
133 local firstLoginFiles = default_deskbar_items.sh ;
134 firstLoginFiles = $(firstLoginFiles:G=first-login) ;
135 SEARCH on $(firstLoginFiles)
136 = [ FDirName $(HAIKU_TOP) data system boot first_login ] ;
137 AddFilesToPackage boot first_login : $(firstLoginFiles) ;
139 local fortuneFiles = [ Glob $(HAIKU_TOP)/data/system/data/fortunes
141 fortuneFiles = $(fortuneFiles:G=data!fortunes) ;
142 AddFilesToPackage data fortunes : $(fortuneFiles) ;
144 local fontDir = [ FDirName $(HAIKU_TOP) data system data fonts ] ;
145 local psFonts = [ Glob $(fontDir)/psfonts : *.afm *.pfb ] ;
146 AddFilesToPackage data fonts psfonts : $(psFonts) ;
149 AddFilesToPackage data Keymaps : $(HAIKU_KEYMAP_FILES) ;
151 for keymapAlias in $(HAIKU_KEYMAP_ALIASES) {
152 local aliasedTo = [ on $(keymapAlias) return $(HAIKU_KEYMAP_FILE) ] ;
153 AddSymlinkToPackage data Keymaps : $(aliasedTo:BSM) : $(keymapAlias:BSM) ;
157 AddFilesToPackage data KeyboardLayouts
158 : $(HAIKU_KEYBOARD_LAYOUT_FILES) ;
159 AddFilesToPackage data KeyboardLayouts Apple\ Aluminum
160 : $(HAIKU_APPLE_ALUMINUM_KEYBOARD_LAYOUT_FILES) ;
161 AddFilesToPackage data KeyboardLayouts ThinkPad
162 : $(HAIKU_THINKPAD_KEYBOARD_LAYOUT_FILES) ;
165 AddBootModuleSymlinksToPackage
166 acpi@x86,x86_64 ata@ata pci isa@x86,x86_64 config_manager dpc
169 ata_adapter@ata locked_pool scsi_periph
170 ahci generic_ide_pci it8211 legacy_sata silicon_image_3112
173 <usb>uhci <usb>ohci <usb>ehci
174 scsi_cd scsi_disk usb_disk
175 virtio virtio_pci virtio_block virtio_scsi
182 AddFilesToPackage add-ons accelerants : $(SYSTEM_ADD_ONS_ACCELERANTS) ;
183 AddFilesToPackage add-ons Translators : $(SYSTEM_ADD_ONS_TRANSLATORS) ;
184 AddFilesToPackage add-ons locale catalogs : $(SYSTEM_ADD_ONS_LOCALE_CATALOGS) ;
186 AddFilesToPackage add-ons Tracker
187 : FileType Mark\ as… Mark\ as\ Read Open\ Target\ Folder
188 Open\ Terminal ZipOMatic ;
189 AddSymlinkToPackage add-ons Tracker
190 : /boot/system/preferences/Backgrounds : Background-B ;
191 AddSymlinkToPackage add-ons Tracker
192 : /boot/system/apps/TextSearch : TextSearch-G ;
193 AddSymlinkToPackage add-ons Tracker
194 : /boot/system/apps/DiskUsage : DiskUsage-I ;
196 AddFilesToPackage add-ons input_server devices
197 : <input>keyboard <input>mouse <input>tablet <input>wacom ;
198 AddFilesToPackage add-ons input_server filters
201 AddFilesToPackage add-ons kernel network : <net>notifications stack ;
202 AddFilesToPackage add-ons kernel network : dns_resolver ;
203 AddFilesToPackage add-ons kernel network devices : $(SYSTEM_NETWORK_DEVICES) ;
204 AddFilesToPackage add-ons kernel network datalink_protocols
205 : $(SYSTEM_NETWORK_DATALINK_PROTOCOLS) ;
206 AddFilesToPackage add-ons kernel network ppp : $(SYSTEM_NETWORK_PPP) ;
207 AddFilesToPackage add-ons kernel network protocols
208 : $(SYSTEM_NETWORK_PROTOCOLS) ;
210 AddFilesToPackage add-ons disk_systems
211 : <disk_system>intel <disk_system>gpt <disk_system>bfs <disk_system>ntfs ;
215 CopyDirectoryToPackage data : <mimedb>mime_db : : : isTarget ;
218 # Deskbar menu symlinks
220 # "Applications" links
221 DESKBAR_APPLICATIONS = ActivityMonitor CharacterMap DeskCalc
222 Devices DiskProbe DriveSetup DiskUsage Expander Installer
226 for linkTarget in $(DESKBAR_APPLICATIONS) {
227 AddSymlinkToPackage data deskbar menu Applications
228 : ../../../../apps/$(linkTarget) : $(linkTarget) ;
231 # "Desktop applets" links
232 DESKBAR_DESKTOP_APPLETS = LaunchBox NetworkStatus PowerStatus ProcessController
235 for linkTarget in $(DESKBAR_DESKTOP_APPLETS) {
236 AddSymlinkToPackage data deskbar menu Desktop\ applets
237 : ../../../../apps/$(linkTarget) : $(linkTarget) ;
240 # "Preferences" links
241 AddDirectoryToPackage data deskbar menu Preferences ;
242 DESKBAR_PREFERENCES = $(SYSTEM_PREFERENCES:B) ;
243 for linkTarget in $(DESKBAR_PREFERENCES) {
244 AddSymlinkToPackage data deskbar menu Preferences
245 : ../../../../preferences/$(linkTarget)
249 # Deskbar menu entries file
250 AddFilesToPackage data deskbar : <deskbar>menu_entries ;
254 CopyDirectoryToPackage data
255 : [ FDirName $(HAIKU_TOP) data system data licenses ]
258 # netresolv support files
259 CopyDirectoryToPackage data
260 : [ FDirName $(HAIKU_TOP) data system data network ]
263 # Copy documentation as per DiskUsage's license requirement.
264 CopyDirectoryToPackage documentation
265 : [ FDirName $(HAIKU_TOP) docs apps diskusage ]
269 BuildHaikuPackage $(haikuPackage) : haiku ;