Changeset 457


Ignore:
Timestamp:
Dec 30, 2009, 6:04:56 PM (11 years ago)
Author:
Pierre Pronchery
Message:

Allow alternative bootloader files to be specified (should also help cross-compiling)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Apps/Devel/Sources/scripts/targets/NetBSD

    r448 r457  
    55
    66#variables
     7[ -z "$BOOT" ]          && BOOT="/usr/mdec/boot"
    78[ -z "$FDISK" ]         && FDISK="fdisk"
    89[ -z "$INSTALLBOOT" ]   && INSTALLBOOT="installboot"
     
    2324{
    2425        USAGE="Options for $IMAGE_TYPE on $TARGET:
     26  BOOT          Path to the bootloader
    2527  IMAGE_FILE    Where to write the filesystem image
    2628  IMAGE_KERNEL  Path to the kernel
     
    6870        $SUDO $MKDIR "$DESTDIR/tmp"                             &&
    6971        $SUDO $CHMOD "1777" "$DESTDIR/tmp"                      &&
    70         $SUDO $INSTALL -m 644 "/usr/mdec/boot" "$DESTDIR/boot"  &&
     72        $SUDO $INSTALL -m 644 "$BOOT" "$DESTDIR/boot"           &&
    7173        $SUDO $INSTALL -m 755 "$IMAGE_KERNEL" "$DESTDIR/netbsd" &&
    7274        $SUDO $INSTALLBOOT -m "$ARCH" -o "console=pc" "/dev/r${VND}e" \
     
    8385{
    8486        USAGE="Options for $IMAGE_TYPE on $TARGET:
     87  BOOT          Path to the bootloader
    8588  IMAGE_FILE    Where to write the filesystem image
    8689  IMAGE_KERNEL  Path to the kernel
     
    103106                        "$DESTDIR/sbin/init"                    || exit 2
    104107        $INSTALL -m 755 "$IMAGE_KERNEL" "$DESTDIR/netbsd"       || exit 2
    105         $INSTALL -m 644 "/usr/mdec/boot" "$DESTDIR/boot"        || exit 2
     108        $INSTALL -m 644 "$BOOT" "$DESTDIR/boot"                 || exit 2
    106109        $INSTALL -m 644 "/usr/mdec/bootxx_cd9660" "bootxx"      || exit 2
    107110        $INSTALLBOOT -m "$ARCH" -o "console=pc" -e bootxx       || exit 2
Note: See TracChangeset for help on using the changeset viewer.