Revert "and added files"
[bcm963xx.git] / bcmdrivers / opensource / Makefile
1 # File: modules/drivers/Makefile
2 #
3 # Makefile for the GPLed Linux kernel modules.
4 #
5
6 LN_NAME=bcm9$(BRCM_CHIP)
7 LN_DRIVER_DIRS =
8
9 -include $(KERNEL_DIR)/.config
10
11 ifneq ($(CONFIG_BCM_BOARD),)
12   LN_DRIVER_DIRS +=ln -sn impl$(CONFIG_BCM_BOARD_IMPL) char/board/$(BRCM_BOARD)/$(LN_NAME);
13 endif
14
15 ifneq ($(CONFIG_BCM_SERIAL),)
16   LN_DRIVER_DIRS +=ln -sn impl$(CONFIG_BCM_SERIAL_IMPL) char/serial/$(LN_NAME);
17 endif
18
19 obj-$(CONFIG_BCM_BOARD) += char/board/$(BRCM_BOARD)/$(LN_NAME)/
20 obj-$(CONFIG_BCM_SERIAL) += char/serial/$(LN_NAME)/
21
22
23 symlinks:
24         find . -lname "*" -name "$(LN_NAME)" -print -exec rm -f "{}" ";"        
25         $(CONFIG_SHELL) -c "$(LN_DRIVER_DIRS)"