Skip to content

Commit

Permalink
Makefile.in: Allow extra make flags to be passed to the kernel
Browse files Browse the repository at this point in the history
It can be useful to pass additional flags to sub-make run in the kernel's
source tree. For example, you might want to adjust the warning levels or
modify some behavior of the kernel's Makefiles. To enable this ability,
when input-wacom is built with an EXTRA_MAKEFLAGS variable set, its
contents will be passed to the sub-make.

For example, to enable additional kernel warnings, you can now call the
input-wacom make as follows: `$ make W=123`

Signed-off-by: Jason Gerecke <[email protected]>
  • Loading branch information
jigpu committed Jun 8, 2023
1 parent bc06aec commit ab1275e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion 3.17/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ endif

all:
@echo ' Building input-wacom drivers for $(WCM_KERNEL_VER) kernel.'
$(MAKE) -C $(WCM_KERNEL_DIR) M=$(PWD)
$(MAKE) -C $(WCM_KERNEL_DIR) M=$(PWD) $(EXTRA_MAKEFLAGS)

clean:
$(MAKE) -C $(WCM_KERNEL_DIR) M=$(PWD) clean
Expand Down
2 changes: 1 addition & 1 deletion 3.7/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ endif

all:
@echo ' Building input-wacom drivers for $(WCM_VERSION_VER) kernel.'
$(MAKE) -C $(WCM_KERNEL_DIR) M=$(PWD)
$(MAKE) -C $(WCM_KERNEL_DIR) M=$(PWD) $(EXTRA_MAKEFLAGS)

clean:
$(MAKE) -C $(WCM_KERNEL_DIR) M=$(PWD) clean
Expand Down
2 changes: 1 addition & 1 deletion 4.5/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ endif

all:
@echo ' Building input-wacom drivers for $(WCM_KERNEL_VER) kernel.'
$(MAKE) -C $(WCM_KERNEL_DIR) M=$(PWD)
$(MAKE) -C $(WCM_KERNEL_DIR) M=$(PWD) $(EXTRA_MAKEFLAGS)

clean:
$(MAKE) -C $(WCM_KERNEL_DIR) M=$(PWD) clean
Expand Down

0 comments on commit ab1275e

Please sign in to comment.