25 lines
659 B
Makefile
25 lines
659 B
Makefile
# Makefile - hhl - /usr/src/world/kmod
|
|
# Copyright 2020 Nathan Fisher <nfisher.sr@gmail.com>
|
|
#
|
|
distname = kmod
|
|
include world.mk
|
|
|
|
config_opts += --host=$(tgt)
|
|
config_opts += --with-sysroot=$(DESTDIR)
|
|
config_opts += --bindir=/bin
|
|
config_opts += --sysconfdir=/etc
|
|
config_opts += --with-rootlibdir=/lib
|
|
config_opts += --with-xz
|
|
config_opts += --with-zlib
|
|
|
|
define post_install
|
|
ln -sf ../bin/kmod $(DESTDIR)/sbin/depmod
|
|
ln -sf ../bin/kmod $(DESTDIR)/sbin/insmod
|
|
ln -sf ../bin/kmod $(DESTDIR)/sbin/lsmod
|
|
ln -sf ../bin/kmod $(DESTDIR)/sbin/modinfo
|
|
ln -sf ../bin/kmod $(DESTDIR)/sbin/rmmod
|
|
ln -sf ../bin/kmod $(DESTDIR)/sbin/modprobe
|
|
endef
|
|
|
|
include targets.mk
|