1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
|
# debian/rules dphys-kernel-packages fragment for openafs-1.4.1
# author Neil Franklin, last modification 2006.06.01 Gurkan Sengun
COMPILE_SUBPATH=dest/root.client/usr/vice/etc/modload
INSTALL_PATH=$(DESTDIR)/lib/modules/$(KVERS)/fs
configure-module:
@./configure --with-linux-kernel-headers=$(KSRC) --enable-littleendian
build-module:
@/usr/bin/make dest
install-module:
@if [ ! -d $(INSTALL_PATH) ] ; then \
/bin/mkdir -p $(INSTALL_PATH) ; \
fi
@# support both SMP and UP versions
@# support in each both 2.6 and 2.4 compile tree formats
@# libafs-* matches long names
@if /bin/grep --quiet CONFIG_SMP=y $(KSRC)/.config ; then \
if [ -d i386_linux26 ] ; then \
/bin/cp -p i386_linux26/$(COMPILE_SUBPATH)/libafs-*.ko \
$(INSTALL_PATH)/openafs.mp.ko ; \
else \
/bin/cp -p i386_linux24/$(COMPILE_SUBPATH)/libafs-*.o \
$(INSTALL_PATH)/openafs.mp.o ; \
fi \
else \
if [ -d i386_linux26 ] ; then \
/bin/cp -p i386_linux26/$(COMPILE_SUBPATH)/libafs-*.ko \
$(INSTALL_PATH)/openafs.ko ; \
else \
/bin/cp -p i386_linux24/$(COMPILE_SUBPATH)/libafs-*.o \
$(INSTALL_PATH)/openafs.o ; \
fi \
fi
clean-module:
@/bin/rm -rf $(INSTALL_PATH)
|