diff --git a/ch13/2_list_demo_rdwrlock/Makefile b/ch13/2_list_demo_rdwrlock/Makefile index 8966c47..9789a56 100644 --- a/ch13/2_list_demo_rdwrlock/Makefile +++ b/ch13/2_list_demo_rdwrlock/Makefile @@ -133,7 +133,7 @@ all: @echo make -C $(KDIR) M=$(PWD) modules if [ "${DBG_STRIP}" = "y" ]; then \ - ${STRIP} --strip-debug ${FNAME_C}.ko ; \ + ${STRIP} --strip-debug ${FNAME_C}_lkm.ko ; \ fi install: @echo @@ -144,9 +144,9 @@ install: @echo " [Now for the 'sudo make install' ]" sudo make -C $(KDIR) M=$(PWD) modules_install sudo depmod - @echo " [If !debug and !(module signing), stripping debug info from ${KMODDIR}/extra/${FNAME_C}.ko]" + @echo " [If !debug and !(module signing), stripping debug info from ${KMODDIR}/extra/${FNAME_C}_lkm.ko]" if [ "${DBG_STRIP}" = "y" ]; then \ - sudo ${STRIP} --strip-debug ${KMODDIR}/extra/${FNAME_C}.ko ; \ + sudo ${STRIP} --strip-debug ${KMODDIR}/extra/${FNAME_C}_lkm.ko ; \ fi nsdeps: @echo "--- nsdeps (namespace dependencies resolution; for possibly importing ns's) ---" diff --git a/ch13/3_lockfree/list_demo_rcu/Makefile b/ch13/3_lockfree/list_demo_rcu/Makefile index d96e153..d0deb3c 100644 --- a/ch13/3_lockfree/list_demo_rcu/Makefile +++ b/ch13/3_lockfree/list_demo_rcu/Makefile @@ -132,7 +132,7 @@ all: @echo make -C $(KDIR) M=$(PWD) modules if [ "${DBG_STRIP}" = "y" ]; then \ - ${STRIP} --strip-debug ${FNAME_C}.ko ; \ + ${STRIP} --strip-debug ${FNAME_C}_lkm.ko ; \ fi install: @echo @@ -143,9 +143,9 @@ install: @echo " [Now for the 'sudo make install' ]" sudo make -C $(KDIR) M=$(PWD) modules_install sudo depmod - @echo " [If !debug and !(module signing), stripping debug info from ${KMODDIR}/extra/${FNAME_C}.ko]" + @echo " [If !debug and !(module signing), stripping debug info from ${KMODDIR}/extra/${FNAME_C}_lkm.ko]" if [ "${DBG_STRIP}" = "y" ]; then \ - sudo ${STRIP} --strip-debug ${KMODDIR}/extra/${FNAME_C}.ko ; \ + sudo ${STRIP} --strip-debug ${KMODDIR}/extra/${FNAME_C}_lkm.ko ; \ fi nsdeps: @echo "--- nsdeps (namespace dependencies resolution; for possibly importing ns's) ---" diff --git a/ch13/3_lockfree/thrdshowall_rcu/Makefile b/ch13/3_lockfree/thrdshowall_rcu/Makefile index 323ea64..a9b8af1 100644 --- a/ch13/3_lockfree/thrdshowall_rcu/Makefile +++ b/ch13/3_lockfree/thrdshowall_rcu/Makefile @@ -131,7 +131,7 @@ all: @echo make -C $(KDIR) M=$(PWD) modules if [ "${DBG_STRIP}" = "y" ]; then \ - ${STRIP} --strip-debug ${FNAME_C}.ko ; \ + ${STRIP} --strip-debug lkm_${FNAME_C}.ko ; \ fi install: @echo @@ -142,9 +142,9 @@ install: @echo " [Now for the 'sudo make install' ]" sudo make -C $(KDIR) M=$(PWD) modules_install sudo depmod - @echo " [If !debug and !(module signing), stripping debug info from ${KMODDIR}/extra/${FNAME_C}.ko]" + @echo " [If !debug and !(module signing), stripping debug info from ${KMODDIR}/extra/lkm_${FNAME_C}.ko]" if [ "${DBG_STRIP}" = "y" ]; then \ - sudo ${STRIP} --strip-debug ${KMODDIR}/extra/${FNAME_C}.ko ; \ + sudo ${STRIP} --strip-debug ${KMODDIR}/extra/lkm_${FNAME_C}.ko ; \ fi nsdeps: @echo "--- nsdeps (namespace dependencies resolution; for possibly importing ns's) ---" diff --git a/ch13/4_lockdep/buggy_thrdshow_eg/Makefile b/ch13/4_lockdep/buggy_thrdshow_eg/Makefile index 869cd6c..4f3085e 100644 --- a/ch13/4_lockdep/buggy_thrdshow_eg/Makefile +++ b/ch13/4_lockdep/buggy_thrdshow_eg/Makefile @@ -131,7 +131,7 @@ all: @echo make -C $(KDIR) M=$(PWD) modules if [ "${DBG_STRIP}" = "y" ]; then \ - ${STRIP} --strip-debug ${FNAME_C}.ko ; \ + ${STRIP} --strip-debug lkm_${FNAME_C}.ko ; \ fi install: @echo @@ -142,9 +142,9 @@ install: @echo " [Now for the 'sudo make install' ]" sudo make -C $(KDIR) M=$(PWD) modules_install sudo depmod - @echo " [If !debug and !(module signing), stripping debug info from ${KMODDIR}/extra/${FNAME_C}.ko]" + @echo " [If !debug and !(module signing), stripping debug info from ${KMODDIR}/extra/lkm_${FNAME_C}.ko]" if [ "${DBG_STRIP}" = "y" ]; then \ - sudo ${STRIP} --strip-debug ${KMODDIR}/extra/${FNAME_C}.ko ; \ + sudo ${STRIP} --strip-debug ${KMODDIR}/extra/lkm_${FNAME_C}.ko ; \ fi nsdeps: @echo "--- nsdeps (namespace dependencies resolution; for possibly importing ns's) ---" diff --git a/ch6/foreach/prcs_showall/Makefile b/ch6/foreach/prcs_showall/Makefile index 45c418f..60ca2b9 100644 --- a/ch6/foreach/prcs_showall/Makefile +++ b/ch6/foreach/prcs_showall/Makefile @@ -98,7 +98,7 @@ all: @${CC} --version|head -n1 @echo make -C $(KDIR) M=$(PWD) modules - $(shell [ "${MYDEBUG}" != "y" ] && ${STRIP} --strip-debug ./${FNAME_C}.ko) + $(shell [ "${MYDEBUG}" != "y" ] && ${STRIP} --strip-debug ./lkm_${FNAME_C}.ko) install: @echo @echo "--- installing ---" @@ -109,8 +109,8 @@ install: sudo make -C $(KDIR) M=$(PWD) modules_install @echo " sudo depmod" sudo depmod - @echo " [If !debug, stripping debug info from ${KMODDIR}/extra/${FNAME_C}.ko]" - $(shell if [ "${MYDEBUG}" != "y" ]; then sudo ${STRIP} --strip-debug ${KMODDIR}/extra/${FNAME_C}.ko; fi) + @echo " [If !debug, stripping debug info from ${KMODDIR}/extra/lkm_${FNAME_C}.ko]" + $(shell if [ "${MYDEBUG}" != "y" ]; then sudo ${STRIP} --strip-debug ${KMODDIR}/extra/lkm_${FNAME_C}.ko; fi) nsdeps: @echo "--- nsdeps (namespace dependencies resolution; for possibly importing ns's) ---" make -C $(KDIR) M=$(PWD) nsdeps diff --git a/ch6/foreach/thrd_showall/Makefile b/ch6/foreach/thrd_showall/Makefile index b2a641a..8ff7e11 100644 --- a/ch6/foreach/thrd_showall/Makefile +++ b/ch6/foreach/thrd_showall/Makefile @@ -131,7 +131,7 @@ all: @echo make -C $(KDIR) M=$(PWD) modules if [ "${DBG_STRIP}" = "y" ]; then \ - ${STRIP} --strip-debug ${FNAME_C}.ko ; \ + ${STRIP} --strip-debug lkm_${FNAME_C}.ko ; \ fi install: @echo @@ -142,9 +142,9 @@ install: @echo " [Now for the 'sudo make install' ]" sudo make -C $(KDIR) M=$(PWD) modules_install sudo depmod - @echo " [If !debug and !(module signing), stripping debug info from ${KMODDIR}/extra/${FNAME_C}.ko]" + @echo " [If !debug and !(module signing), stripping debug info from ${KMODDIR}/extra/lkm_${FNAME_C}.ko]" if [ "${DBG_STRIP}" = "y" ]; then \ - sudo ${STRIP} --strip-debug ${KMODDIR}/extra/${FNAME_C}.ko ; \ + sudo ${STRIP} --strip-debug ${KMODDIR}/extra/lkm_${FNAME_C}.ko ; \ fi nsdeps: @echo "--- nsdeps (namespace dependencies resolution; for possibly importing ns's) ---" diff --git a/ch7/show_kernel_vas/Makefile b/ch7/show_kernel_vas/Makefile index 9879dcd..f7301cd 100644 --- a/ch7/show_kernel_vas/Makefile +++ b/ch7/show_kernel_vas/Makefile @@ -131,7 +131,7 @@ all: @echo make -C $(KDIR) M=$(PWD) modules if [ "${DBG_STRIP}" = "y" ]; then \ - ${STRIP} --strip-debug ${FNAME_C}.ko ; \ + ${STRIP} --strip-debug show_${FNAME_C}.ko ; \ fi install: @echo @@ -142,9 +142,9 @@ install: @echo " [Now for the 'sudo make install' ]" sudo make -C $(KDIR) M=$(PWD) modules_install sudo depmod - @echo " [If !debug and !(module signing), stripping debug info from ${KMODDIR}/extra/${FNAME_C}.ko]" + @echo " [If !debug and !(module signing), stripping debug info from ${KMODDIR}/extra/show_${FNAME_C}.ko]" if [ "${DBG_STRIP}" = "y" ]; then \ - sudo ${STRIP} --strip-debug ${KMODDIR}/extra/${FNAME_C}.ko ; \ + sudo ${STRIP} --strip-debug ${KMODDIR}/extra/show_${FNAME_C}.ko ; \ fi nsdeps: @echo "--- nsdeps (namespace dependencies resolution; for possibly importing ns's) ---" diff --git a/ch8/lowlevel_mem/Makefile b/ch8/lowlevel_mem/Makefile index c7d091d..e136569 100644 --- a/ch8/lowlevel_mem/Makefile +++ b/ch8/lowlevel_mem/Makefile @@ -131,7 +131,7 @@ all: @echo make -C $(KDIR) M=$(PWD) modules if [ "${DBG_STRIP}" = "y" ]; then \ - ${STRIP} --strip-debug ${FNAME_C}.ko ; \ + ${STRIP} --strip-debug ${FNAME_C}_lkm.ko ; \ fi install: @echo @@ -142,9 +142,9 @@ install: @echo " [Now for the 'sudo make install' ]" sudo make -C $(KDIR) M=$(PWD) modules_install sudo depmod - @echo " [If !debug and !(module signing), stripping debug info from ${KMODDIR}/extra/${FNAME_C}.ko]" + @echo " [If !debug and !(module signing), stripping debug info from ${KMODDIR}/extra/${FNAME_C}_lkm.ko]" if [ "${DBG_STRIP}" = "y" ]; then \ - sudo ${STRIP} --strip-debug ${KMODDIR}/extra/${FNAME_C}.ko ; \ + sudo ${STRIP} --strip-debug ${KMODDIR}/extra/${FNAME_C}_lkm.ko ; \ fi nsdeps: @echo "--- nsdeps (namespace dependencies resolution; for possibly importing ns's) ---" diff --git a/ch9/slab_custom/Makefile b/ch9/slab_custom/Makefile index 1be1487..e683de5 100644 --- a/ch9/slab_custom/Makefile +++ b/ch9/slab_custom/Makefile @@ -131,7 +131,7 @@ all: @echo make -C $(KDIR) M=$(PWD) modules if [ "${DBG_STRIP}" = "y" ]; then \ - ${STRIP} --strip-debug ${FNAME_C}.ko ; \ + ${STRIP} --strip-debug lkm_${FNAME_C}.ko ; \ fi install: @echo @@ -142,9 +142,9 @@ install: @echo " [Now for the 'sudo make install' ]" sudo make -C $(KDIR) M=$(PWD) modules_install sudo depmod - @echo " [If !debug and !(module signing), stripping debug info from ${KMODDIR}/extra/${FNAME_C}.ko]" + @echo " [If !debug and !(module signing), stripping debug info from ${KMODDIR}/extra/lkm_${FNAME_C}.ko]" if [ "${DBG_STRIP}" = "y" ]; then \ - sudo ${STRIP} --strip-debug ${KMODDIR}/extra/${FNAME_C}.ko ; \ + sudo ${STRIP} --strip-debug ${KMODDIR}/extra/lkm_${FNAME_C}.ko ; \ fi nsdeps: @echo "--- nsdeps (namespace dependencies resolution; for possibly importing ns's) ---" diff --git a/solutions_to_assgn/ch9/slab_custom_mult/Makefile b/solutions_to_assgn/ch9/slab_custom_mult/Makefile index fc496cc..35802da 100644 --- a/solutions_to_assgn/ch9/slab_custom_mult/Makefile +++ b/solutions_to_assgn/ch9/slab_custom_mult/Makefile @@ -131,7 +131,7 @@ all: @echo make -C $(KDIR) M=$(PWD) modules if [ "${DBG_STRIP}" = "y" ]; then \ - ${STRIP} --strip-debug ${FNAME_C}.ko ; \ + ${STRIP} --strip-debug lkm_${FNAME_C}.ko ; \ fi install: @echo @@ -142,9 +142,9 @@ install: @echo " [Now for the 'sudo make install' ]" sudo make -C $(KDIR) M=$(PWD) modules_install sudo depmod - @echo " [If !debug and !(module signing), stripping debug info from ${KMODDIR}/extra/${FNAME_C}.ko]" + @echo " [If !debug and !(module signing), stripping debug info from ${KMODDIR}/extra/lkm_${FNAME_C}.ko]" if [ "${DBG_STRIP}" = "y" ]; then \ - sudo ${STRIP} --strip-debug ${KMODDIR}/extra/${FNAME_C}.ko ; \ + sudo ${STRIP} --strip-debug ${KMODDIR}/extra/lkm_${FNAME_C}.ko ; \ fi nsdeps: @echo "--- nsdeps (namespace dependencies resolution; for possibly importing ns's) ---"