mirror of
https://review.haiku-os.org/haiku
synced 2025-01-31 10:47:14 +01:00
6e1bd12f74
The SCSI module was the only thing using it, and now it isn't used at all.
519 lines
12 KiB
Plaintext
519 lines
12 KiB
Plaintext
local architecture = $(HAIKU_PACKAGING_ARCHS[1]) ;
|
|
|
|
|
|
local haikuPackage = haiku.hpkg ;
|
|
HaikuPackage $(haikuPackage) ;
|
|
|
|
|
|
# wifi firmware
|
|
local driver ;
|
|
for driver in $(SYSTEM_ADD_ONS_DRIVERS_NET) {
|
|
local archive = [ on $(driver) return $(HAIKU_WIFI_FIRMWARE_ARCHIVE) ] ;
|
|
local extract = [ on $(driver) return $(HAIKU_WIFI_FIRMWARE_DO_EXTRACT) ] ;
|
|
if $(archive) {
|
|
AddWifiFirmwareToPackage $(driver) : : $(archive) : $(extract) ;
|
|
}
|
|
}
|
|
|
|
# bootloaders
|
|
local bootTarget ;
|
|
for bootTarget in $(HAIKU_BOOT_TARGETS) {
|
|
AddFilesToPackage data platform_loaders : haiku_loader.$(bootTarget) ;
|
|
}
|
|
|
|
# modules
|
|
AddFilesToPackage add-ons kernel bus_managers : $(SYSTEM_ADD_ONS_BUS_MANAGERS) ;
|
|
AddFilesToPackage add-ons kernel busses agp_gart :
|
|
<agp_gart>intel@x86,x86_64
|
|
;
|
|
|
|
AddFilesToPackage add-ons kernel busses ata :
|
|
generic_ide_pci
|
|
it8211
|
|
legacy_sata
|
|
silicon_image_3112
|
|
highpoint_ide_pci
|
|
ide_isa@x86
|
|
;
|
|
|
|
AddFilesToPackage add-ons kernel busses i2c :
|
|
pch_i2c@x86,x86_64
|
|
;
|
|
AddFilesToPackage add-ons kernel busses mmc :
|
|
sdhci
|
|
;
|
|
AddFilesToPackage add-ons kernel busses pci :
|
|
<pci>designware@riscv64
|
|
<pci>ecam@riscv64,arm,arm64
|
|
<pci>x86@x86,x86_64
|
|
;
|
|
AddFilesToPackage add-ons kernel busses random :
|
|
ccp_rng@x86,x86_64
|
|
virtio_rng
|
|
;
|
|
AddFilesToPackage add-ons kernel busses scsi :
|
|
ahci
|
|
virtio_scsi
|
|
;
|
|
AddFilesToPackage add-ons kernel busses usb :
|
|
<usb>uhci
|
|
<usb>ohci
|
|
<usb>ehci
|
|
<usb>xhci
|
|
;
|
|
AddFilesToPackage add-ons kernel busses virtio :
|
|
virtio_mmio@riscv64,arm,arm64
|
|
virtio_pci
|
|
;
|
|
AddFilesToPackage add-ons kernel console :
|
|
vga_text
|
|
;
|
|
AddFilesToPackage add-ons kernel debugger :
|
|
<kdebug>demangle
|
|
<kdebug>disasm@x86,x86_64
|
|
<kdebug>hangman
|
|
<kdebug>invalidate_on_exit
|
|
<kdebug>usb_keyboard
|
|
<kdebug>qrencode@libqrencode
|
|
<kdebug>run_on_exit
|
|
;
|
|
AddFilesToPackage add-ons kernel file_systems
|
|
: $(SYSTEM_ADD_ONS_FILE_SYSTEMS) ;
|
|
AddFilesToPackage add-ons kernel generic :
|
|
ata_adapter
|
|
bios@x86,x86_64
|
|
dpc
|
|
mpu401
|
|
scsi_periph
|
|
smbios@x86,x86_64
|
|
<module>tty
|
|
;
|
|
AddFilesToPackage add-ons kernel partitioning_systems :
|
|
amiga_rdb@m68k
|
|
apple@ppc
|
|
sun@sparc
|
|
efi_gpt
|
|
intel
|
|
session
|
|
;
|
|
AddFilesToPackage add-ons kernel interrupt_controllers :
|
|
openpic@ppc
|
|
;
|
|
AddFilesToPackage add-ons kernel power cpufreq :
|
|
amd_pstates@x86,x86_64
|
|
intel_pstates@x86,x86_64
|
|
;
|
|
AddFilesToPackage add-ons kernel power cpuidle :
|
|
x86_cstates@x86,x86_64
|
|
;
|
|
|
|
if $(TARGET_ARCH) = x86 || $(TARGET_ARCH) = x86_64 {
|
|
AddFilesToPackage add-ons kernel cpu :
|
|
generic_x86
|
|
;
|
|
}
|
|
|
|
# drivers
|
|
AddNewDriversToPackage :
|
|
wmi@x86,x86_64
|
|
;
|
|
AddNewDriversToPackage disk :
|
|
nvme_disk
|
|
usb_disk
|
|
;
|
|
AddNewDriversToPackage disk mmc :
|
|
mmc_disk
|
|
;
|
|
AddNewDriversToPackage disk scsi :
|
|
scsi_cd
|
|
scsi_disk
|
|
;
|
|
AddNewDriversToPackage disk virtual :
|
|
ram_disk
|
|
virtio_block
|
|
;
|
|
AddNewDriversToPackage graphics :
|
|
virtio_gpu
|
|
;
|
|
AddNewDriversToPackage power
|
|
: $(SYSTEM_ADD_ONS_DRIVERS_POWER) ;
|
|
AddNewDriversToPackage sensor
|
|
: $(SYSTEM_ADD_ONS_DRIVERS_SENSOR) ;
|
|
AddNewDriversToPackage network :
|
|
usb_ecm
|
|
virtio_net
|
|
;
|
|
AddNewDriversToPackage input :
|
|
i2c_elan
|
|
virtio_input
|
|
;
|
|
AddNewDriversToPackage display :
|
|
# display_adapter@x86
|
|
;
|
|
AddNewDriversToPackage audio hmulti :
|
|
# virtio_sound
|
|
;
|
|
|
|
# legacy drivers
|
|
AddDriversToPackage :
|
|
console
|
|
dprintf
|
|
null
|
|
<driver>tty
|
|
usb_modeswitch
|
|
zero
|
|
;
|
|
AddDriversToPackage audio hmulti :
|
|
$(SYSTEM_ADD_ONS_DRIVERS_AUDIO) ;
|
|
AddDriversToPackage audio old :
|
|
$(SYSTEM_ADD_ONS_DRIVERS_AUDIO_OLD) ;
|
|
AddDriversToPackage bluetooth h2 :
|
|
$(SYSTEM_ADD_ONS_DRIVERS_BT_H2) ;
|
|
AddDriversToPackage midi :
|
|
$(SYSTEM_ADD_ONS_DRIVERS_MIDI) ;
|
|
AddDriversToPackage bus :
|
|
usb_raw
|
|
;
|
|
AddDriversToPackage disk virtual :
|
|
nbd
|
|
;
|
|
AddDriversToPackage dvb :
|
|
cx23882
|
|
;
|
|
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) ;
|
|
AddDriversToPackage ports :
|
|
pc_serial
|
|
usb_serial
|
|
;
|
|
|
|
# kernel
|
|
AddFilesToPackage : <revisioned>kernel_$(TARGET_ARCH) ;
|
|
|
|
# libs
|
|
AddLibrariesToPackage lib
|
|
: [ HaikuImageGetSystemLibs ] [ HaikuImageGetPrivateSystemLibs ] ;
|
|
|
|
# libnetwork.so replaces quite a few libraries
|
|
if $(HAIKU_CC_IS_LEGACY_GCC_$(architecture)) = 1 {
|
|
local libNetworkAliases = libsocket.so libbind.so libnet.so ;
|
|
local lib ;
|
|
for lib in $(libNetworkAliases) {
|
|
AddSymlinkToPackage lib : libnetwork.so : $(lib) ;
|
|
}
|
|
|
|
AddSymlinkToPackage lib : libbnetapi.so : libnetapi.so ;
|
|
}
|
|
|
|
|
|
# trusted keys
|
|
SEARCH on haiku-2019.pub = [ FDirName $(HAIKU_TOP) data trust_db ] ;
|
|
AddFilesToPackage data trust_db : haiku-2019.pub ;
|
|
|
|
# servers
|
|
AddFilesToPackage servers : $(SYSTEM_SERVERS) ;
|
|
|
|
# apps
|
|
AddFilesToPackage :
|
|
runtime_loader
|
|
Deskbar
|
|
Tracker
|
|
;
|
|
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
|
|
local bootScripts = PostInstallScript SetupEnvironment ;
|
|
SEARCH on $(bootScripts) = [ FDirName $(HAIKU_TOP) data system boot ] ;
|
|
AddFilesToPackage boot : $(bootScripts) ;
|
|
|
|
local launchScripts = <data!launch>system ;
|
|
SEARCH on $(launchScripts) = [ FDirName $(HAIKU_TOP) data launch ] ;
|
|
AddFilesToPackage data launch : $(launchScripts) ;
|
|
|
|
local userLaunchScripts = <data!launch>user ;
|
|
SEARCH on $(userLaunchScripts) = [ FDirName $(HAIKU_TOP) data launch ] ;
|
|
AddFilesToPackage data user_launch : $(userLaunchScripts) ;
|
|
|
|
# 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) ;
|
|
|
|
# artwork and sounds
|
|
local logoArtwork =
|
|
$(HAIKU_INCLUDE_TRADEMARKS)"HAIKU logo - white on blue - big.png"
|
|
$(HAIKU_INCLUDE_TRADEMARKS)"HAIKU logo - white on blue - normal.png" ;
|
|
SEARCH on $(logoArtwork) = [ FDirName $(HAIKU_TOP) data artwork ] ;
|
|
AddFilesToPackage data artwork : $(logoArtwork) ;
|
|
|
|
# Mail spell check dictionaries
|
|
local spellFiles = words geekspeak ;
|
|
spellFiles = $(spellFiles:G=spell) ;
|
|
SEARCH on $(spellFiles) = [ FDirName $(HAIKU_TOP) src apps mail ] ;
|
|
AddFilesToPackage data spell_check word_dictionary : $(spellFiles) ;
|
|
|
|
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) ;
|
|
|
|
# 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) ;
|
|
}
|
|
|
|
# keyboard layouts
|
|
AddFilesToPackage data KeyboardLayouts
|
|
: $(HAIKU_KEYBOARD_LAYOUT_FILES) ;
|
|
AddFilesToPackage data KeyboardLayouts Apple\ Aluminum
|
|
: $(HAIKU_APPLE_ALUMINUM_KEYBOARD_LAYOUT_FILES) ;
|
|
AddFilesToPackage data KeyboardLayouts ThinkPad
|
|
: $(HAIKU_THINKPAD_KEYBOARD_LAYOUT_FILES) ;
|
|
|
|
# terminal themes
|
|
local terminalThemes = [ Glob $(HAIKU_TOP)/data/system/data/terminal_themes : "[a-zA-Z0-9 ]*" ] ;
|
|
AddFilesToPackage data Terminal Themes : $(terminalThemes) ;
|
|
|
|
# boot module links
|
|
AddBootModuleSymlinksToPackage
|
|
acpi@x86,x86_64,arm64
|
|
ahci
|
|
ata
|
|
ata_adapter
|
|
bfs
|
|
dpc
|
|
efi_gpt
|
|
generic_ide_pci
|
|
ide_isa@x86
|
|
isa@x86,x86_64
|
|
intel
|
|
it8211
|
|
legacy_sata
|
|
mmc
|
|
mmc_disk
|
|
nvme_disk
|
|
openpic@ppc
|
|
packagefs
|
|
pci
|
|
<pci>designware@riscv64
|
|
<pci>ecam@riscv64,arm,arm64
|
|
<pci>x86@x86,x86_64
|
|
fdt@riscv64,arm,arm64
|
|
scsi
|
|
scsi_cd
|
|
scsi_disk
|
|
scsi_periph
|
|
silicon_image_3112
|
|
highpoint_ide_pci
|
|
sdhci
|
|
usb
|
|
usb_disk
|
|
<usb>ehci
|
|
<usb>ohci
|
|
<usb>uhci
|
|
<usb>xhci
|
|
virtio
|
|
virtio_block
|
|
virtio_mmio@riscv64,arm,arm64
|
|
virtio_pci
|
|
virtio_scsi
|
|
;
|
|
|
|
# add-ons
|
|
AddFilesToPackage add-ons accelerants :
|
|
$(SYSTEM_ADD_ONS_ACCELERANTS) ;
|
|
AddFilesToPackage add-ons locale catalogs :
|
|
$(SYSTEM_ADD_ONS_LOCALE_CATALOGS) ;
|
|
|
|
AddFilesToPackage add-ons mail_daemon inbound_protocols :
|
|
POP3
|
|
IMAP
|
|
;
|
|
AddFilesToPackage add-ons mail_daemon outbound_protocols :
|
|
SMTP
|
|
;
|
|
AddFilesToPackage add-ons mail_daemon inbound_filters :
|
|
MatchHeader
|
|
SpamFilter
|
|
NewMailNotification
|
|
;
|
|
AddFilesToPackage add-ons mail_daemon outbound_filters :
|
|
Fortune
|
|
;
|
|
|
|
AddFilesToPackage add-ons media : $(SYSTEM_ADD_ONS_MEDIA) ;
|
|
|
|
AddFilesToPackage add-ons Network\ Settings :
|
|
IPv4Interface
|
|
IPv6Interface
|
|
DNSClientService
|
|
Hostname
|
|
FTPService
|
|
SSHService
|
|
TelnetService
|
|
;
|
|
|
|
AddFilesToPackage add-ons Tracker :
|
|
FileType
|
|
Mark\ as…
|
|
Mark\ as\ Read
|
|
Open\ Target\ Folder
|
|
Open\ Terminal
|
|
ZipOMatic
|
|
;
|
|
AddSymlinkToPackage add-ons Tracker
|
|
: /boot/system/preferences/Backgrounds : Background ;
|
|
AddSymlinkToPackage add-ons Tracker
|
|
: /boot/system/apps/TextSearch : TextSearch ;
|
|
AddSymlinkToPackage add-ons Tracker
|
|
: /boot/system/apps/DiskUsage : DiskUsage ;
|
|
|
|
AddFilesToPackage add-ons input_server devices :
|
|
<input>keyboard
|
|
<input>mouse
|
|
<input>tablet
|
|
<input>virtio
|
|
<input>wacom
|
|
;
|
|
AddFilesToPackage add-ons input_server filters :
|
|
padblocker
|
|
screen_saver
|
|
shortcut_catcher
|
|
switch_workspace
|
|
;
|
|
AddDirectoryToPackage add-ons input_server methods ;
|
|
|
|
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) ;
|
|
AddFilesToPackage add-ons kernel network ppp
|
|
: $(SYSTEM_NETWORK_PPP) ;
|
|
AddFilesToPackage add-ons kernel network protocols
|
|
: $(SYSTEM_NETWORK_PROTOCOLS) ;
|
|
|
|
AddFilesToPackage add-ons Screen\ Savers : $(SYSTEM_ADD_ONS_SCREENSAVERS) ;
|
|
|
|
AddFilesToPackage add-ons disk_systems :
|
|
<disk_system>fat
|
|
<disk_system>intel
|
|
<disk_system>gpt
|
|
<disk_system>bfs
|
|
<disk_system>ntfs
|
|
;
|
|
|
|
# Kernel bluetooth stack
|
|
AddFilesToPackage add-ons kernel bluetooth : $(SYSTEM_BT_STACK) ;
|
|
|
|
# the MIME DB
|
|
CopyDirectoryToPackage data : <mimedb>mime_db : : : isTarget ;
|
|
|
|
# directory attributes
|
|
AddDirectoryToPackage apps : system-apps.rdef ;
|
|
AddDirectoryToPackage preferences : system-preferences.rdef ;
|
|
|
|
# Deskbar menu symlinks
|
|
|
|
local linkTarget ;
|
|
|
|
# "Applications" links
|
|
AddDirectoryToPackage data deskbar menu Applications
|
|
: deskbar-applications.rdef ;
|
|
for linkTarget in $(DESKBAR_APPLICATIONS) {
|
|
AddSymlinkToPackage data deskbar menu Applications
|
|
: ../../../../apps/$(linkTarget) : $(linkTarget) ;
|
|
}
|
|
|
|
# "Desktop applets" links
|
|
AddDirectoryToPackage data deskbar menu Desktop\ applets
|
|
: deskbar-applets.rdef ;
|
|
for linkTarget in $(DESKBAR_DESKTOP_APPLETS) {
|
|
AddSymlinkToPackage data deskbar menu Desktop\ applets
|
|
: ../../../../apps/$(linkTarget) : $(linkTarget) ;
|
|
}
|
|
|
|
# "Preferences" links
|
|
AddDirectoryToPackage data deskbar menu Preferences
|
|
: deskbar-preferences.rdef ;
|
|
DESKBAR_PREFERENCES = $(SYSTEM_PREFERENCES:B) ;
|
|
for linkTarget in $(DESKBAR_PREFERENCES) {
|
|
AddSymlinkToPackage data deskbar menu Preferences
|
|
: ../../../../preferences/$(linkTarget)
|
|
: $(linkTarget) ;
|
|
}
|
|
|
|
# "Demo" links
|
|
AddDirectoryToPackage data deskbar menu Demos
|
|
: deskbar-demos.rdef ;
|
|
for linkTarget in $(SYSTEM_DEMOS) {
|
|
AddSymlinkToPackage data deskbar menu Demos
|
|
: ../../../../demos/$(linkTarget) : $(linkTarget) ;
|
|
}
|
|
|
|
# Deskbar menu entries file
|
|
AddFilesToPackage data deskbar : <deskbar>menu_entries ;
|
|
|
|
# licenses
|
|
CopyDirectoryToPackage data
|
|
: [ FDirName $(HAIKU_TOP) data system data licenses ]
|
|
: licenses ;
|
|
|
|
# netresolv support files
|
|
CopyDirectoryToPackage data
|
|
: [ FDirName $(HAIKU_TOP) data system data network ]
|
|
: network ;
|
|
|
|
# Copy documentation as per DiskUsage's license requirement.
|
|
CopyDirectoryToPackage documentation
|
|
: [ FDirName $(HAIKU_TOP) docs apps diskusage ]
|
|
: diskusage ;
|
|
|
|
|
|
# empty directory
|
|
AddDirectoryToPackage data empty ;
|
|
|
|
|
|
BuildHaikuPackage $(haikuPackage) : haiku ;
|