Skip to content

Commit

Permalink
Makefile: prefix the include config directive with '-' to fail gracef…
Browse files Browse the repository at this point in the history
…ully if reqd
  • Loading branch information
kaiwan committed Nov 26, 2024
1 parent b7bb3ea commit 1eea584
Show file tree
Hide file tree
Showing 28 changed files with 28 additions and 28 deletions.
2 changes: 1 addition & 1 deletion ch12/1_miscdrv_rdwr_mutexlock/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ ccflags-y += -DDYNAMIC_DEBUG_MODULE
KMODDIR ?= /lib/modules/$(shell uname -r)

# Gain access to kernel configs
include $(KDIR)/.config
-include $(KDIR)/.config

# Strip the module? Note:
# a) Only strip debug symbols else it won't load correctly
Expand Down
2 changes: 1 addition & 1 deletion ch12/2_miscdrv_rdwr_spinlock/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ ccflags-y += -DDYNAMIC_DEBUG_MODULE
KMODDIR ?= /lib/modules/$(shell uname -r)

# Gain access to kernel configs
include $(KDIR)/.config
-include $(KDIR)/.config

# Strip the module? Note:
# a) Only strip debug symbols else it won't load correctly
Expand Down
2 changes: 1 addition & 1 deletion ch13/1_rmw_atomic_bitops/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ ccflags-y += -DDYNAMIC_DEBUG_MODULE
KMODDIR ?= /lib/modules/$(shell uname -r)

# Gain access to kernel configs
include $(KDIR)/.config
-include $(KDIR)/.config

# Strip the module? Note:
# a) Only strip debug symbols else it won't load correctly
Expand Down
2 changes: 1 addition & 1 deletion ch13/2_list_demo_rdwrlock/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ ccflags-y += -DDYNAMIC_DEBUG_MODULE
KMODDIR ?= /lib/modules/$(shell uname -r)

# Gain access to kernel configs
-include $(KDIR)/.config
--include $(KDIR)/.config

# Strip the module? Note:
# a) Only strip debug symbols else it won't load correctly
Expand Down
2 changes: 1 addition & 1 deletion ch13/3_lockfree/list_demo_rcu/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ ccflags-y += -DDYNAMIC_DEBUG_MODULE
KMODDIR ?= /lib/modules/$(shell uname -r)

# Gain access to kernel configs
include $(KDIR)/.config
-include $(KDIR)/.config

# Strip the module? Note:
# a) Only strip debug symbols else it won't load correctly
Expand Down
2 changes: 1 addition & 1 deletion ch13/3_lockfree/percpu/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ ccflags-y += -DDYNAMIC_DEBUG_MODULE
KMODDIR ?= /lib/modules/$(shell uname -r)

# Gain access to kernel configs
include $(KDIR)/.config
-include $(KDIR)/.config

# Strip the module? Note:
# a) Only strip debug symbols else it won't load correctly
Expand Down
2 changes: 1 addition & 1 deletion ch13/3_lockfree/thrdshowall_rcu/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ ccflags-y += -DDYNAMIC_DEBUG_MODULE
KMODDIR ?= /lib/modules/$(shell uname -r)

# Gain access to kernel configs
include $(KDIR)/.config
-include $(KDIR)/.config

# Strip the module? Note:
# a) Only strip debug symbols else it won't load correctly
Expand Down
2 changes: 1 addition & 1 deletion ch13/4_lockdep/buggy_thrdshow_eg/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ ccflags-y += -DDYNAMIC_DEBUG_MODULE
KMODDIR ?= /lib/modules/$(shell uname -r)

# Gain access to kernel configs
include $(KDIR)/.config
-include $(KDIR)/.config

# Strip the module? Note:
# a) Only strip debug symbols else it won't load correctly
Expand Down
2 changes: 1 addition & 1 deletion ch13/4_lockdep/deadlock_eg_AB-BA/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ ccflags-y += -DDYNAMIC_DEBUG_MODULE
KMODDIR ?= /lib/modules/$(shell uname -r)

# Gain access to kernel configs
include $(KDIR)/.config
-include $(KDIR)/.config

# Strip the module? Note:
# a) Only strip debug symbols else it won't load correctly
Expand Down
2 changes: 1 addition & 1 deletion ch13/4_lockdep/fixed_thrdshow_eg/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ ccflags-y += -DDYNAMIC_DEBUG_MODULE
KMODDIR ?= /lib/modules/$(shell uname -r)

# Gain access to kernel configs
include $(KDIR)/.config
-include $(KDIR)/.config

# Strip the module? Note:
# a) Only strip debug symbols else it won't load correctly
Expand Down
2 changes: 1 addition & 1 deletion ch13/rdwr_concurrent/1_demo_rdwr_nolocks/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ ccflags-y += -DDYNAMIC_DEBUG_MODULE
KMODDIR ?= /lib/modules/$(shell uname -r)

# Gain access to kernel configs
include $(KDIR)/.config
-include $(KDIR)/.config

# Strip the module? Note:
# a) Only strip debug symbols else it won't load correctly
Expand Down
2 changes: 1 addition & 1 deletion ch13/rdwr_concurrent/2_demo_rdwr_rwlock/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ ccflags-y += -DDYNAMIC_DEBUG_MODULE
KMODDIR ?= /lib/modules/$(shell uname -r)

# Gain access to kernel configs
include $(KDIR)/.config
-include $(KDIR)/.config

# Strip the module? Note:
# a) Only strip debug symbols else it won't load correctly
Expand Down
2 changes: 1 addition & 1 deletion ch13/rdwr_concurrent/3_demo_rdwr_rcu/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ ccflags-y += -DDYNAMIC_DEBUG_MODULE
KMODDIR ?= /lib/modules/$(shell uname -r)

# Gain access to kernel configs
include $(KDIR)/.config
-include $(KDIR)/.config

# Strip the module? Note:
# a) Only strip debug symbols else it won't load correctly
Expand Down
2 changes: 1 addition & 1 deletion ch5/cross/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ ccflags-y += -DDYNAMIC_DEBUG_MODULE
KMODDIR ?= /lib/modules/$(shell uname -r)

# Gain access to kernel configs
include $(KDIR)/.config
-include $(KDIR)/.config

# Strip the module? Note:
# a) Only strip debug symbols else it won't load correctly
Expand Down
2 changes: 1 addition & 1 deletion ch5/fp_in_lkm/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ ccflags-y += -DDYNAMIC_DEBUG_MODULE
KMODDIR ?= /lib/modules/$(shell uname -r)

# Gain access to kernel configs
include $(KDIR)/.config
--include $(KDIR)/.config

# Strip the module? Note:
# a) Only strip debug symbols else it won't load correctly
Expand Down
2 changes: 1 addition & 1 deletion ch5/lkm_template/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ ccflags-y += -DDYNAMIC_DEBUG_MODULE
KMODDIR ?= /lib/modules/$(shell uname -r)

# Gain access to kernel configs (the '-' says 'continue on error')
-include $(KDIR)/.config
--include $(KDIR)/.config

# Strip the module? Note:
# a) Only strip debug symbols else it won't load correctly
Expand Down
2 changes: 1 addition & 1 deletion ch5/min_sysinfo/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ ccflags-y += -DDYNAMIC_DEBUG_MODULE
KMODDIR ?= /lib/modules/$(shell uname -r)

# Gain access to kernel configs
include $(KDIR)/.config
-include $(KDIR)/.config

# Strip the module? Note:
# a) Only strip debug symbols else it won't load correctly
Expand Down
2 changes: 1 addition & 1 deletion ch5/modparams/modparams1/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ ccflags-y += -DDYNAMIC_DEBUG_MODULE
KMODDIR ?= /lib/modules/$(shell uname -r)

# Gain access to kernel configs
include $(KDIR)/.config
-include $(KDIR)/.config

# Strip the module? Note:
# a) Only strip debug symbols else it won't load correctly
Expand Down
2 changes: 1 addition & 1 deletion ch6/current_affairs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ ccflags-y += -DDYNAMIC_DEBUG_MODULE
KMODDIR ?= /lib/modules/$(shell uname -r)

# Gain access to kernel configs
include $(KDIR)/.config
-include $(KDIR)/.config

# Strip the module? Note:
# a) Only strip debug symbols else it won't load correctly
Expand Down
2 changes: 1 addition & 1 deletion ch6/foreach/thrd_showall/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ ccflags-y += -DDYNAMIC_DEBUG_MODULE
KMODDIR ?= /lib/modules/$(shell uname -r)

# Gain access to kernel configs
include $(KDIR)/.config
-include $(KDIR)/.config

# Strip the module? Note:
# a) Only strip debug symbols else it won't load correctly
Expand Down
2 changes: 1 addition & 1 deletion ch6/list_demo/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ ccflags-y += -DDYNAMIC_DEBUG_MODULE
KMODDIR ?= /lib/modules/$(shell uname -r)

# Gain access to kernel configs
include $(KDIR)/.config
-include $(KDIR)/.config

# Strip the module? Note:
# a) Only strip debug symbols else it won't load correctly
Expand Down
2 changes: 1 addition & 1 deletion ch7/show_kernel_vas/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ ccflags-y += -DDYNAMIC_DEBUG_MODULE
KMODDIR ?= /lib/modules/$(shell uname -r)

# Gain access to kernel configs
include $(KDIR)/.config
-include $(KDIR)/.config

# Strip the module? Note:
# a) Only strip debug symbols else it won't load correctly
Expand Down
2 changes: 1 addition & 1 deletion ch7/sparsemem_show/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ ccflags-y += -DDYNAMIC_DEBUG_MODULE
KMODDIR ?= /lib/modules/$(shell uname -r)

# Gain access to kernel configs
include $(KDIR)/.config
-include $(KDIR)/.config

# Strip the module? Note:
# a) Only strip debug symbols else it won't load correctly
Expand Down
2 changes: 1 addition & 1 deletion ch8/lowlevel_mem/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ ccflags-y += -DDYNAMIC_DEBUG_MODULE
KMODDIR ?= /lib/modules/$(shell uname -r)

# Gain access to kernel configs
include $(KDIR)/.config
-include $(KDIR)/.config

# Strip the module? Note:
# a) Only strip debug symbols else it won't load correctly
Expand Down
2 changes: 1 addition & 1 deletion ch9/slab_custom/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ ccflags-y += -DDYNAMIC_DEBUG_MODULE
KMODDIR ?= /lib/modules/$(shell uname -r)

# Gain access to kernel configs
include $(KDIR)/.config
-include $(KDIR)/.config

# Strip the module? Note:
# a) Only strip debug symbols else it won't load correctly
Expand Down
2 changes: 1 addition & 1 deletion ch9/vmalloc_demo/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ ccflags-y += -DDYNAMIC_DEBUG_MODULE
KMODDIR ?= /lib/modules/$(shell uname -r)

# Gain access to kernel configs
include $(KDIR)/.config
-include $(KDIR)/.config

# Strip the module? Note:
# a) Only strip debug symbols else it won't load correctly
Expand Down
2 changes: 1 addition & 1 deletion solutions_to_assgn/ch13/miscdrv_rdwr_refcount/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ ccflags-y += -DDYNAMIC_DEBUG_MODULE
KMODDIR ?= /lib/modules/$(shell uname -r)

# Gain access to kernel configs
include $(KDIR)/.config
-include $(KDIR)/.config

# Strip the module? Note:
# a) Only strip debug symbols else it won't load correctly
Expand Down
2 changes: 1 addition & 1 deletion solutions_to_assgn/ch9/slab_custom_mult/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ ccflags-y += -DDYNAMIC_DEBUG_MODULE
KMODDIR ?= /lib/modules/$(shell uname -r)

# Gain access to kernel configs
include $(KDIR)/.config
-include $(KDIR)/.config

# Strip the module? Note:
# a) Only strip debug symbols else it won't load correctly
Expand Down

0 comments on commit 1eea584

Please sign in to comment.