# # Copyright (C) 2012 Texas Instruments Incorporated - http://www.ti.com/ # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; version 2 of the License. # # 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, see # ifeq ($(KERNELRELEASE),) EXBASE = .. include $(EXBASE)/products.mak CFLAGS = CROSS_COMPILE=arm-none-linux-gnueabi- ARCH=arm EXTRA_CFLAGS = "-I$(IPC_INSTALL_DIR)/packages -I$(SYSLINK_INSTALL_DIR)/packages" all:PATH:=$(CGT_ARM_INSTALL_DIR)/bin:$(PATH) all: echo "CGT_ARM_INSTALL_DIR=$(CGT_ARM_INSTALL_DIR)" $(MAKE) -C $(LINUXKERNEL) M=$(CURDIR) $(CFLAGS) \ EXTRA_CFLAGS=$(EXTRA_CFLAGS) modules clean:: $(MAKE) -C $(LINUXKERNEL) M=$(CURDIR) clean rm -f modules.order rm -f Modules.symvers else obj-m := umsg.o umsg-objs := driver.o umsg_drv.o endif