2013-08-01 10:51:16 +04:00
|
|
|
local architecture = $(HAIKU_PACKAGING_ARCHS[1]) ;
|
|
|
|
|
|
|
|
|
2013-07-07 15:45:38 +04:00
|
|
|
local haikuPackage = haiku.hpkg ;
|
|
|
|
HaikuPackage $(haikuPackage) ;
|
|
|
|
|
|
|
|
|
|
|
|
# wifi firmware
|
2014-07-31 20:34:37 +04:00
|
|
|
local driver ;
|
2013-07-07 15:45:38 +04:00
|
|
|
for driver in $(SYSTEM_ADD_ONS_DRIVERS_NET) {
|
|
|
|
local package = [ on $(driver) return $(HAIKU_WIFI_FIRMWARE_PACKAGE) ] ;
|
|
|
|
local archive = [ on $(driver) return $(HAIKU_WIFI_FIRMWARE_ARCHIVE) ] ;
|
|
|
|
local extract = [ on $(driver) return $(HAIKU_WIFI_FIRMWARE_DO_EXTRACT) ] ;
|
|
|
|
if $(archive) {
|
|
|
|
AddWifiFirmwareToPackage $(driver) : $(package) : $(archive)
|
|
|
|
: $(extract) ;
|
|
|
|
}
|
|
|
|
local packages = [ on $(driver) return $(HAIKU_WIFI_FIRMWARE_PACKAGES) ] ;
|
|
|
|
local archives = [ on $(driver) return $(HAIKU_WIFI_FIRMWARE_ARCHIVES) ] ;
|
2014-07-31 20:34:37 +04:00
|
|
|
local archive ;
|
2013-07-07 15:45:38 +04:00
|
|
|
for archive in $(archives) {
|
|
|
|
AddWifiFirmwareToPackage $(driver) : $(packages[1]) : $(archive)
|
|
|
|
: $(extract) ;
|
|
|
|
packages = $(packages[2-]) ;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
# modules
|
|
|
|
AddFilesToPackage add-ons kernel bus_managers : $(SYSTEM_ADD_ONS_BUS_MANAGERS) ;
|
2013-10-19 23:38:42 +04:00
|
|
|
AddFilesToPackage add-ons kernel busses agp_gart : <agp_gart>intel@x86,x86_64 ;
|
2013-07-07 15:45:38 +04:00
|
|
|
|
2017-06-28 16:13:37 +03:00
|
|
|
AddFilesToPackage add-ons kernel busses ata
|
2017-12-01 18:00:01 +03:00
|
|
|
: generic_ide_pci it8211 legacy_sata silicon_image_3112 highpoint_ide_pci ide_isa@x86 ;
|
2013-07-07 15:45:38 +04:00
|
|
|
|
2013-07-15 18:34:41 +04:00
|
|
|
AddFilesToPackage add-ons kernel busses scsi : ahci virtio_scsi ;
|
2013-07-07 15:45:38 +04:00
|
|
|
AddFilesToPackage add-ons kernel busses usb : <usb>uhci <usb>ohci <usb>ehci ;
|
2013-07-15 18:34:41 +04:00
|
|
|
AddFilesToPackage add-ons kernel busses virtio : virtio_pci ;
|
2013-07-07 15:45:38 +04:00
|
|
|
AddFilesToPackage add-ons kernel console : vga_text ;
|
|
|
|
AddFilesToPackage add-ons kernel debugger
|
2014-11-17 11:33:15 +03:00
|
|
|
: <kdebug>demangle <kdebug>disasm@x86 #<kdebug>hangman
|
2014-04-18 20:10:57 +04:00
|
|
|
<kdebug>invalidate_on_exit <kdebug>usb_keyboard
|
2013-07-07 15:45:38 +04:00
|
|
|
<kdebug>run_on_exit ;
|
|
|
|
AddFilesToPackage add-ons kernel file_systems : $(SYSTEM_ADD_ONS_FILE_SYSTEMS) ;
|
|
|
|
AddFilesToPackage add-ons kernel generic
|
2019-02-26 03:56:07 +03:00
|
|
|
: ata_adapter bios@x86,x86_64 dpc
|
2013-07-07 15:45:38 +04:00
|
|
|
locked_pool mpu401 scsi_periph <module>tty ;
|
|
|
|
AddFilesToPackage add-ons kernel partitioning_systems
|
2014-11-17 11:33:15 +03:00
|
|
|
: amiga_rdb@m68k apple@ppc efi_gpt intel session ;
|
2013-07-07 15:45:38 +04:00
|
|
|
AddFilesToPackage add-ons kernel interrupt_controllers : openpic@ppc ;
|
2013-10-30 03:55:03 +04:00
|
|
|
AddFilesToPackage add-ons kernel power cpufreq : intel_pstates@x86,x86_64 ;
|
2013-11-26 02:50:27 +04:00
|
|
|
AddFilesToPackage add-ons kernel power cpuidle : intel_cstates@x86,x86_64 ;
|
2013-07-07 15:45:38 +04:00
|
|
|
|
|
|
|
if $(TARGET_ARCH) = x86 || $(TARGET_ARCH) = x86_64 {
|
|
|
|
AddFilesToPackage add-ons kernel cpu : generic_x86 ;
|
|
|
|
}
|
|
|
|
|
|
|
|
# drivers
|
|
|
|
AddNewDriversToPackage disk scsi : scsi_cd scsi_disk ;
|
2018-05-14 12:27:39 +03:00
|
|
|
AddNewDriversToPackage disk virtual : ram_disk virtio_block ;
|
2013-07-07 15:45:38 +04:00
|
|
|
AddNewDriversToPackage power : acpi_battery@x86 ;
|
2018-05-14 12:27:39 +03:00
|
|
|
AddNewDriversToPackage network : virtio_net ;
|
2014-09-07 20:57:53 +04:00
|
|
|
#AddNewDriversToPackage display : display_adapter@x86 ;
|
2013-07-07 15:45:38 +04:00
|
|
|
|
|
|
|
# legacy drivers
|
|
|
|
AddDriversToPackage : console dprintf null random <driver>tty
|
|
|
|
zero ;
|
|
|
|
AddDriversToPackage audio hmulti : $(SYSTEM_ADD_ONS_DRIVERS_AUDIO) ;
|
|
|
|
AddDriversToPackage audio old : $(SYSTEM_ADD_ONS_DRIVERS_AUDIO_OLD) ;
|
|
|
|
AddDriversToPackage midi : $(SYSTEM_ADD_ONS_DRIVERS_MIDI) ;
|
|
|
|
AddDriversToPackage bus : usb_raw fw_raw@x86 ;
|
|
|
|
AddDriversToPackage disk floppy : pc_floppy@x86 ;
|
|
|
|
AddDriversToPackage disk usb : usb_disk ;
|
|
|
|
AddDriversToPackage disk virtual : nbd ;
|
|
|
|
AddDriversToPackage graphics : $(SYSTEM_ADD_ONS_DRIVERS_GRAPHICS) ;
|
|
|
|
AddDriversToPackage input : ps2_hid usb_hid wacom ;
|
|
|
|
AddDriversToPackage misc : <driver>poke <driver>mem ;
|
|
|
|
AddDriversToPackage net : $(SYSTEM_ADD_ONS_DRIVERS_NET) ;
|
2014-08-29 03:14:16 +04:00
|
|
|
AddDriversToPackage ports : pc_serial usb_serial ;
|
2013-07-07 15:45:38 +04:00
|
|
|
AddDriversToPackage power : $(SYSTEM_ADD_ONS_DRIVERS_POWER) ;
|
|
|
|
|
|
|
|
# kernel
|
|
|
|
AddFilesToPackage : <revisioned>kernel_$(TARGET_ARCH) ;
|
|
|
|
|
|
|
|
# libs
|
2013-08-06 01:19:24 +04:00
|
|
|
AddLibrariesToPackage lib
|
|
|
|
: [ HaikuImageGetSystemLibs ] [ HaikuImageGetPrivateSystemLibs ] ;
|
2013-07-07 15:45:38 +04:00
|
|
|
|
|
|
|
# libnetwork.so replaces quite a few libraries
|
2013-08-01 10:51:16 +04:00
|
|
|
if $(HAIKU_GCC_VERSION_$(architecture)[1]) = 2 {
|
2013-08-06 01:20:36 +04:00
|
|
|
local libNetworkAliases = libsocket.so libbind.so libnet.so ;
|
2013-07-07 15:45:38 +04:00
|
|
|
local lib ;
|
2013-08-06 01:20:36 +04:00
|
|
|
for lib in $(libNetworkAliases) {
|
2013-07-07 15:45:38 +04:00
|
|
|
AddSymlinkToPackage lib : libnetwork.so : $(lib) ;
|
|
|
|
}
|
|
|
|
|
|
|
|
AddSymlinkToPackage lib : libbnetapi.so : libnetapi.so ;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
# servers
|
|
|
|
AddFilesToPackage servers : $(SYSTEM_SERVERS) ;
|
|
|
|
|
|
|
|
# apps
|
2019-04-09 13:43:50 +03:00
|
|
|
AddFilesToPackage : runtime_loader Deskbar Tracker ;
|
2013-07-07 15:45:38 +04:00
|
|
|
AddFilesToPackage bin : $(SYSTEM_BIN) consoled ;
|
|
|
|
AddFilesToPackage apps : $(SYSTEM_APPS) ;
|
|
|
|
AddFilesToPackage preferences : $(SYSTEM_PREFERENCES) ;
|
|
|
|
AddFilesToPackage demos : $(SYSTEM_DEMOS) ;
|
|
|
|
|
|
|
|
SEARCH on install-wifi-firmwares.sh = [ FDirName $(HAIKU_TOP) data bin ] ;
|
|
|
|
AddFilesToPackage bin : install-wifi-firmwares.sh ;
|
|
|
|
|
|
|
|
AddSymlinkToPackage bin : trash : untrash ;
|
|
|
|
AddSymlinkToPackage bin : less : more ;
|
|
|
|
|
|
|
|
# scripts and data files
|
2015-07-17 23:15:38 +03:00
|
|
|
local bootScripts = PostInstallScript SetupEnvironment
|
2013-07-07 15:45:38 +04:00
|
|
|
InstallerInitScript InstallerFinishScript ;
|
|
|
|
SEARCH on $(bootScripts) = [ FDirName $(HAIKU_TOP) data system boot ] ;
|
|
|
|
AddFilesToPackage boot : $(bootScripts) ;
|
|
|
|
|
2015-10-19 20:40:08 +03:00
|
|
|
local launchScripts = <data!launch>system ;
|
|
|
|
SEARCH on $(launchScripts) = [ FDirName $(HAIKU_TOP) data launch ] ;
|
|
|
|
AddFilesToPackage data launch : $(launchScripts) ;
|
|
|
|
|
2015-10-21 20:10:35 +03:00
|
|
|
local userLaunchScripts = <data!launch>user <data!launch>bootstrap ;
|
2015-10-19 20:40:08 +03:00
|
|
|
SEARCH on $(userLaunchScripts) = [ FDirName $(HAIKU_TOP) data launch ] ;
|
|
|
|
AddFilesToPackage data user_launch : $(userLaunchScripts) ;
|
|
|
|
|
2015-10-19 22:09:55 +03:00
|
|
|
# first login scripts
|
|
|
|
local firstLoginFiles = default_deskbar_items.sh ;
|
|
|
|
firstLoginFiles = $(firstLoginFiles:G=first-login) ;
|
|
|
|
SEARCH on $(firstLoginFiles)
|
|
|
|
= [ FDirName $(HAIKU_TOP) data system boot first_login ] ;
|
|
|
|
AddFilesToPackage boot first_login : $(firstLoginFiles) ;
|
2013-07-07 15:45:38 +04:00
|
|
|
|
|
|
|
local fortuneFiles = [ Glob $(HAIKU_TOP)/data/system/data/fortunes
|
|
|
|
: [a-zA-Z0-9]* ] ;
|
|
|
|
fortuneFiles = $(fortuneFiles:G=data!fortunes) ;
|
|
|
|
AddFilesToPackage data fortunes : $(fortuneFiles) ;
|
|
|
|
|
|
|
|
local fontDir = [ FDirName $(HAIKU_TOP) data system data fonts ] ;
|
|
|
|
local psFonts = [ Glob $(fontDir)/psfonts : *.afm *.pfb ] ;
|
|
|
|
AddFilesToPackage data fonts psfonts : $(psFonts) ;
|
|
|
|
|
2013-05-13 16:38:55 +04:00
|
|
|
# keymaps
|
|
|
|
AddFilesToPackage data Keymaps : $(HAIKU_KEYMAP_FILES) ;
|
|
|
|
local keymapAlias ;
|
|
|
|
for keymapAlias in $(HAIKU_KEYMAP_ALIASES) {
|
|
|
|
local aliasedTo = [ on $(keymapAlias) return $(HAIKU_KEYMAP_FILE) ] ;
|
|
|
|
AddSymlinkToPackage data Keymaps : $(aliasedTo:BSM) : $(keymapAlias:BSM) ;
|
|
|
|
}
|
2013-07-07 15:45:38 +04:00
|
|
|
|
2014-02-22 05:05:26 +04:00
|
|
|
# keyboard layouts
|
2013-07-07 15:45:38 +04:00
|
|
|
AddFilesToPackage data KeyboardLayouts
|
2014-02-22 05:05:26 +04:00
|
|
|
: $(HAIKU_KEYBOARD_LAYOUT_FILES) ;
|
2013-07-07 15:45:38 +04:00
|
|
|
AddFilesToPackage data KeyboardLayouts Apple\ Aluminum
|
2014-02-22 05:05:26 +04:00
|
|
|
: $(HAIKU_APPLE_ALUMINUM_KEYBOARD_LAYOUT_FILES) ;
|
2013-07-07 15:45:38 +04:00
|
|
|
AddFilesToPackage data KeyboardLayouts ThinkPad
|
2014-02-22 05:05:26 +04:00
|
|
|
: $(HAIKU_THINKPAD_KEYBOARD_LAYOUT_FILES) ;
|
2013-07-07 15:45:38 +04:00
|
|
|
|
|
|
|
# boot module links
|
|
|
|
AddBootModuleSymlinksToPackage
|
2019-02-26 03:56:07 +03:00
|
|
|
acpi@x86,x86_64 ata pci isa@x86,x86_64 config_manager dpc
|
2017-06-28 16:13:37 +03:00
|
|
|
scsi usb
|
2013-07-07 15:45:38 +04:00
|
|
|
openpic@ppc
|
2019-02-26 03:56:07 +03:00
|
|
|
ata_adapter locked_pool scsi_periph
|
2013-07-07 15:45:38 +04:00
|
|
|
ahci generic_ide_pci it8211 legacy_sata silicon_image_3112
|
2017-12-01 18:00:01 +03:00
|
|
|
highpoint_ide_pci
|
2013-07-07 15:45:38 +04:00
|
|
|
ide_isa@x86
|
|
|
|
<usb>uhci <usb>ohci <usb>ehci
|
|
|
|
scsi_cd scsi_disk usb_disk
|
2013-07-15 18:34:41 +04:00
|
|
|
virtio virtio_pci virtio_block virtio_scsi
|
2013-07-07 15:45:38 +04:00
|
|
|
efi_gpt
|
|
|
|
intel
|
|
|
|
bfs packagefs
|
|
|
|
;
|
|
|
|
|
|
|
|
# add-ons
|
|
|
|
AddFilesToPackage add-ons accelerants : $(SYSTEM_ADD_ONS_ACCELERANTS) ;
|
|
|
|
AddFilesToPackage add-ons Translators : $(SYSTEM_ADD_ONS_TRANSLATORS) ;
|
|
|
|
AddFilesToPackage add-ons locale catalogs : $(SYSTEM_ADD_ONS_LOCALE_CATALOGS) ;
|
|
|
|
|
|
|
|
AddFilesToPackage add-ons Tracker
|
2014-02-19 20:12:04 +04:00
|
|
|
: FileType Mark\ as… Mark\ as\ Read Open\ Target\ Folder
|
|
|
|
Open\ Terminal ZipOMatic ;
|
2013-07-07 15:45:38 +04:00
|
|
|
AddSymlinkToPackage add-ons Tracker
|
|
|
|
: /boot/system/preferences/Backgrounds : Background-B ;
|
|
|
|
AddSymlinkToPackage add-ons Tracker
|
|
|
|
: /boot/system/apps/TextSearch : TextSearch-G ;
|
|
|
|
AddSymlinkToPackage add-ons Tracker
|
|
|
|
: /boot/system/apps/DiskUsage : DiskUsage-I ;
|
|
|
|
|
|
|
|
AddFilesToPackage add-ons input_server devices
|
|
|
|
: <input>keyboard <input>mouse <input>tablet <input>wacom ;
|
|
|
|
AddFilesToPackage add-ons input_server filters
|
2015-10-21 20:10:35 +03:00
|
|
|
: switch_workspace ;
|
2013-07-07 15:45:38 +04:00
|
|
|
|
|
|
|
AddFilesToPackage add-ons kernel network : <net>notifications stack ;
|
|
|
|
AddFilesToPackage add-ons kernel network : dns_resolver ;
|
|
|
|
AddFilesToPackage add-ons kernel network devices : $(SYSTEM_NETWORK_DEVICES) ;
|
|
|
|
AddFilesToPackage add-ons kernel network datalink_protocols
|
|
|
|
: $(SYSTEM_NETWORK_DATALINK_PROTOCOLS) ;
|
2014-01-04 19:49:30 +04:00
|
|
|
AddFilesToPackage add-ons kernel network ppp : $(SYSTEM_NETWORK_PPP) ;
|
2013-07-07 15:45:38 +04:00
|
|
|
AddFilesToPackage add-ons kernel network protocols
|
|
|
|
: $(SYSTEM_NETWORK_PROTOCOLS) ;
|
|
|
|
|
|
|
|
AddFilesToPackage add-ons disk_systems
|
|
|
|
: <disk_system>intel <disk_system>gpt <disk_system>bfs <disk_system>ntfs ;
|
|
|
|
|
|
|
|
|
|
|
|
# the MIME DB
|
|
|
|
CopyDirectoryToPackage data : <mimedb>mime_db : : : isTarget ;
|
|
|
|
|
|
|
|
|
|
|
|
# Deskbar menu symlinks
|
|
|
|
|
|
|
|
# "Applications" links
|
|
|
|
DESKBAR_APPLICATIONS = ActivityMonitor CharacterMap DeskCalc
|
|
|
|
Devices DiskProbe DriveSetup DiskUsage Expander Installer
|
|
|
|
StyledEdit Terminal
|
|
|
|
;
|
|
|
|
local linkTarget ;
|
|
|
|
for linkTarget in $(DESKBAR_APPLICATIONS) {
|
|
|
|
AddSymlinkToPackage data deskbar menu Applications
|
|
|
|
: ../../../../apps/$(linkTarget) : $(linkTarget) ;
|
|
|
|
}
|
|
|
|
|
|
|
|
# "Desktop applets" links
|
|
|
|
DESKBAR_DESKTOP_APPLETS = LaunchBox NetworkStatus PowerStatus ProcessController
|
|
|
|
Workspaces
|
|
|
|
;
|
|
|
|
for linkTarget in $(DESKBAR_DESKTOP_APPLETS) {
|
|
|
|
AddSymlinkToPackage data deskbar menu Desktop\ applets
|
|
|
|
: ../../../../apps/$(linkTarget) : $(linkTarget) ;
|
|
|
|
}
|
|
|
|
|
|
|
|
# "Preferences" links
|
|
|
|
AddDirectoryToPackage data deskbar menu Preferences ;
|
|
|
|
DESKBAR_PREFERENCES = $(SYSTEM_PREFERENCES:B) ;
|
|
|
|
for linkTarget in $(DESKBAR_PREFERENCES) {
|
|
|
|
AddSymlinkToPackage data deskbar menu Preferences
|
|
|
|
: ../../../../preferences/$(linkTarget)
|
|
|
|
: $(linkTarget) ;
|
|
|
|
}
|
|
|
|
|
|
|
|
# Deskbar menu entries file
|
|
|
|
AddFilesToPackage data deskbar : <deskbar>menu_entries ;
|
|
|
|
|
|
|
|
|
|
|
|
# licenses
|
|
|
|
CopyDirectoryToPackage data
|
|
|
|
: [ FDirName $(HAIKU_TOP) data system data licenses ]
|
|
|
|
: licenses ;
|
|
|
|
|
2015-06-20 12:52:13 +03:00
|
|
|
# netresolv support files
|
|
|
|
CopyDirectoryToPackage data
|
|
|
|
: [ FDirName $(HAIKU_TOP) data system data network ]
|
|
|
|
: network ;
|
|
|
|
|
2013-07-07 15:45:38 +04:00
|
|
|
# Copy documentation as per DiskUsage's license requirement.
|
|
|
|
CopyDirectoryToPackage documentation
|
|
|
|
: [ FDirName $(HAIKU_TOP) docs apps diskusage ]
|
|
|
|
: diskusage ;
|
|
|
|
|
|
|
|
|
|
|
|
BuildHaikuPackage $(haikuPackage) : haiku ;
|