###############################################################################
#
# Broadcom oops capture and display (boops)
#
# Copyright (C) 2017 Broadcom
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# version 2 as published by the Free Software Foundation.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
# 02110-1301 USA
#
###############################################################################

obj-m += boops.o
boops-y :=  source/boops_k.o\
			source/boops_k_proc.o

boops-$(CONFIG_MMC) += source/boops_k_storage_mmc.o
boops-$(CONFIG_MTD_UBI) += source/boops_k_storage_ubi.o

all:
	make -C $(KERNEL_SRC) M=$(PWD) modules

clean:
	make -C $(KERNEL_SRC) M=$(PWD) clean
