1 # 2 # Copyright (c) 2016 Fujitsu Ltd. 3 # Author:Guangwen Feng <fenggw-fnst (at] cn.fujitsu.com> 4 # 5 # This program is free software; you can redistribute it and/or modify 6 # it under the terms of the GNU General Public License as published by 7 # the Free Software Foundation; either version 2 of the License, or 8 # (at your option) any later version. 9 # 10 # This program is distributed in the hope that it will be useful, 11 # but WITHOUT ANY WARRANTY; without even the implied warranty of 12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 # GNU General Public License for more details. 14 # 15 16 ifneq ($(KERNELRELEASE),) 17 18 obj-m := ltp_insmod01.o 19 20 else 21 22 top_srcdir ?= ../../.. 23 include $(top_srcdir)/include/mk/testcases.mk 24 25 REQ_VERSION_MAJOR := 2 26 REQ_VERSION_PATCH := 6 27 MAKE_TARGETS := ltp_insmod01.ko 28 29 include $(top_srcdir)/include/mk/env_pre.mk 30 31 INSTALL_TARGETS := insmod01.sh 32 33 include $(top_srcdir)/include/mk/module.mk 34 include $(top_srcdir)/include/mk/generic_leaf_target.mk 35 36 endif 37