Skip to content

Commit 4983685

Browse files
committed
modules: Simplify some expressions
When we only use SYSDIR once or twice, expand it and don't define it. Minor other consistency changes. Sponsored by: Netflix
1 parent 3faa5bf commit 4983685

File tree

9 files changed

+8
-20
lines changed

9 files changed

+8
-20
lines changed

sys/modules/ktest/ktest/Makefile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
PACKAGE= tests
2-
SYSDIR?=${SRCTOP}/sys
3-
.PATH: ${SYSDIR}/tests
2+
.PATH: ${SRCTOP}/sys/tests
43

54
KMOD= ktest
65
SRCS= ktest.c

sys/modules/ktest/ktest_example/Makefile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
PACKAGE= tests
22

3-
SYSDIR?=${SRCTOP}/sys
4-
.include "${SYSDIR}/conf/kern.opts.mk"
3+
.include "${SRCTOP}/sys/conf/kern.opts.mk"
54

6-
.PATH: ${SYSDIR}/tests
5+
.PATH: ${SRCTOP}/sys/tests
76

87
KMOD= ktest_example
98
SRCS= ktest_example.c

sys/modules/netgraph/Makefile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# $Whistle: Makefile,v 1.5 1999/01/24 06:48:37 archie Exp $
2-
31
SYSDIR?=${SRCTOP}/sys
42
.include "${SYSDIR}/conf/kern.opts.mk"
53

sys/modules/opensolaris/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
SYSDIR?= ${SRCTOP}/sys
1+
SYSDIR?=${SRCTOP}/sys
22

33
.PATH: ${SYSDIR}/cddl/compat/opensolaris/kern
44
.PATH: ${SYSDIR}/contrib/openzfs/module/os/freebsd/spl

sys/modules/rtwn/Makefile

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
.PATH: ${SRCTOP}/sys/dev/rtwn
2-
3-
SYSDIR?=${SRCTOP}/sys
4-
.include "${SYSDIR}/conf/kern.opts.mk"
2+
.include "${SRCTOP}/sys/conf/kern.opts.mk"
53

64
KMOD = rtwn
75
SRCS = if_rtwn.c if_rtwn_tx.c if_rtwn_rx.c if_rtwn_beacon.c \

sys/modules/rtwn_pci/Makefile

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
.PATH: ${SRCTOP}/sys/dev/rtwn/pci
2-
3-
SYSDIR?=${SRCTOP}/sys
4-
.include "${SYSDIR}/conf/kern.opts.mk"
2+
.include "${SRCTOP}/sys/conf/kern.opts.mk"
53

64
KMOD = if_rtwn_pci
75
SRCS = rtwn_pci_attach.c rtwn_pci_reg.c rtwn_pci_rx.c rtwn_pci_tx.c \

sys/modules/rtwn_usb/Makefile

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
.PATH: ${SRCTOP}/sys/dev/rtwn/usb
2-
3-
SYSDIR?=${SRCTOP}/sys
4-
.include "${SYSDIR}/conf/kern.opts.mk"
2+
.include "${SRCTOP}/sys/conf/kern.opts.mk"
53

64
KMOD = if_rtwn_usb
75
SRCS = rtwn_usb_attach.c rtwn_usb_ep.c rtwn_usb_reg.c rtwn_usb_rx.c \

sys/modules/sound/driver/Makefile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
SYSDIR?=${SRCTOP}/sys
2-
.include "${SYSDIR}/conf/kern.opts.mk"
1+
.include "${SRCTOP}/sys/conf/kern.opts.mk"
32

43
# Modules that include binary-only blobs of microcode should be selectable by
54
# MK_SOURCELESS_UCODE option (see below).

sys/modules/sound/sound/Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
SYSDIR?=${SRCTOP}/sys
2-
32
.PATH: ${SYSDIR}/dev/sound
43
.PATH: ${SYSDIR}/dev/sound/pcm
54
.PATH: ${SYSDIR}/dev/sound/midi

0 commit comments

Comments
 (0)