Changeset 353


Ignore:
Timestamp:
Aug 5, 2011, 11:57:14 PM (13 years ago)
Author:
katerina
Message:

Fix for ticket #258 (samhain_kmem keeps name in lsmod).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Makefile.in

    r335 r353  
    12581258        echo "KVERSION := \$$(shell uname -r)" > m_comp/Makefile;\
    12591259        echo "KSOURCE ?= /lib/modules/\$$(KVERSION)/build" >> m_comp/Makefile;\
    1260         echo "obj-m   := samhain_kmem.o"                   >> m_comp/Makefile;\
     1260        echo "obj-m   := @install_name@_kmem.o"            >> m_comp/Makefile;\
    12611261        echo ".PHONY: modules install clean modules_add"   >> m_comp/Makefile;\
    12621262        echo "install : modules_add"                       >> m_comp/Makefile;\
     
    12641264        echo "T\$$(MAKE) -C \$$(KSOURCE) \$$@ SUBDIRS=\$$(CURDIR) KBUILD_VERBOSE=2" |  tr T '\t' >> m_comp/Makefile;\
    12651265        cp config.h m_comp/; \
    1266         cp $(srcsrc)/samhain_kmem.c m_comp/; \
     1266        cp $(srcsrc)/samhain_kmem.c m_comp/@install_name@_kmem.c; \
    12671267        cd m_comp && $(MAKE) modules
    1268         @if test -f m_comp/samhain_kmem.ko; then \
    1269           cp -p m_comp/samhain_kmem.ko samhain_kmem.ko; \
     1268        @if test -f m_comp/@install_name@_kmem.ko; then \
     1269          cp -p m_comp/@install_name@_kmem.ko samhain_kmem.ko; \
    12701270          rm -rf m_comp/; \
    12711271        else \
Note: See TracChangeset for help on using the changeset viewer.