21 lines · bash
1#!/bin/sh2# SPDX-License-Identifier: GPL-2.0+3#4# Generate the hardware extension to the litmus-test filename, or the5# empty string if this is an LKMM run. The extension is placed in6# the shell variable hwfnseg.7#8# Usage:9# . hwfnseg.sh10#11# Copyright IBM Corporation, 201912#13# Author: Paul E. McKenney <paulmck@linux.ibm.com>14 15if test -z "$LKMM_HW_MAP_FILE"16then17 hwfnseg=18else19 hwfnseg=".$LKMM_HW_MAP_FILE"20fi21