Sample buildfile

QNX SDP8.0User's GuideUser

Here's a sample buildfile for a PC-based target.

Note:
In a real buildfile, you can't use a backslash (\) to break a long line into shorter pieces, but we've done that here, just to make the buildfile easier to read.
[-optional]
[+keeplinked]
[image=0x2000000]
[virtual=x86_64,uefi +compress] boot = {
    startup-x86 -D8250..115200
    PATH=/proc/boot:/sbin:/bin:/usr/bin:/usr/sbin:/usr/libexec
    LD_LIBRARY_PATH=/proc/boot:/lib:/usr/lib:/lib/dll:/lib/dll/pci procnto-smp-instr
}

[+script] startup-script = {
    SYSNAME=nto
    TERM=qansi
    ENV=/etc/profile

    procmgr_symlink ../../proc/boot/ldqnx-64.so.2 /usr/lib/ldqnx-64.so.2

    ## Needed for ksh to run the echo command below
    pipe

    display_msg " "
    ksh -c "echo Welcome to QNX $(uname -r) on $(uname -m) !"
    display_msg " "

    slogger2
    dumper
    mqueue
    random

    ################################################################################
    ## PCI Server
    ################################################################################
    PCI_DEBUG_MODULE=/lib/dll/pci/pci_debug2.so
    PCI_SLOG_MODULE=/lib/dll/pci/pci_slog2.so
    PCI_BKWD_COMPAT_MODULE=/lib/dll/pci/pci_bkwd_compat.so
    PCI_HW_MODULE=/lib/dll/pci/pci_hw-Intel_x86.so

    display_msg "Starting PCI server ..."
    pci-server --aspace-enable --config=/etc/system/config/pci/pci_server.cfg

    ################################################################################
    ## Serial driver
    ################################################################################
    display_msg "Starting serial driver ..."
    devc-ser8250 -e -b115200
    waitfor /dev/ser1

    ################################################################################
    ## Block driver
    ################################################################################
    display_msg "Starting NVMe block driver ..."
    devb-nvme cam pnp
    waitfor /dev/hd0

    ################################################################################
    ## USB host driver
    ################################################################################
    display_msg "Starting USB host driver ..."
    io-usb-otg  -d xhci
    waitfor /dev/usb/io-usb-otg

    ################################################################################
    ## USB host driver
    ################################################################################
    display_msg "Starting devf-ram filesystem ..."
    devf-ram -i 9,0 -s0,16m
    waitfor /dev/fs9p0

    ################################################################################
    ## Network driver
    ################################################################################
    display_msg "Starting networking ..."
    io-sock -m phy -d vmx -m pci -d em -d ix -d re -d igc -m usb -d axe -d axge \
         -d cdce -d smsc

    ################################################################################
    ## DHCP client
    ################################################################################
    display_msg "Starting DHCP client ..."
    dhcpcd -bqq

    ################################################################################
    ## Start the main shell
    ################################################################################
    reopen /dev/ser1
    display_msg "Starting shell ..."
    [+session] ksh &
}
Page updated: