Makefile: strip: use the correct filename for the .ko (when other files are linked in)
This commit is contained in:
@@ -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) ---"
|
||||
|
||||
@@ -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) ---"
|
||||
|
||||
@@ -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) ---"
|
||||
|
||||
@@ -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) ---"
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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) ---"
|
||||
|
||||
@@ -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) ---"
|
||||
|
||||
@@ -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) ---"
|
||||
|
||||
@@ -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) ---"
|
||||
|
||||
@@ -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) ---"
|
||||
|
||||
Reference in New Issue
Block a user