| OLD | NEW |
| 1 # | 1 # |
| 2 # (C) Copyright 2010 | 2 # (C) Copyright 2010 |
| 3 # NVIDIA Corporation <www.nvidia.com> | 3 # NVIDIA Corporation <www.nvidia.com> |
| 4 # | 4 # |
| 5 # | 5 # |
| 6 # See file CREDITS for list of people who contributed to this | 6 # See file CREDITS for list of people who contributed to this |
| 7 # project. | 7 # project. |
| 8 # | 8 # |
| 9 # This program is free software; you can redistribute it and/or | 9 # This program is free software; you can redistribute it and/or |
| 10 # modify it under the terms of the GNU General Public License as | 10 # modify it under the terms of the GNU General Public License as |
| 11 # published by the Free Software Foundation; either version 2 of | 11 # published by the Free Software Foundation; either version 2 of |
| 12 # the License, or (at your option) any later version. | 12 # the License, or (at your option) any later version. |
| 13 # | 13 # |
| 14 # This program is distributed in the hope that it will be useful, | 14 # This program is distributed in the hope that it will be useful, |
| 15 # but WITHOUT ANY WARRANTY; without even the implied warranty of | 15 # but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 17 # GNU General Public License for more details. | 17 # GNU General Public License for more details. |
| 18 # | 18 # |
| 19 # You should have received a copy of the GNU General Public License | 19 # You should have received a copy of the GNU General Public License |
| 20 # along with this program; if not, write to the Free Software | 20 # along with this program; if not, write to the Free Software |
| 21 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, | 21 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, |
| 22 # MA 02111-1307 USA | 22 # MA 02111-1307 USA |
| 23 # | 23 # |
| 24 | 24 |
| 25 include $(TOPDIR)/config.mk | 25 include $(TOPDIR)/config.mk |
| 26 | 26 |
| 27 LIB = $(obj)lib$(BOARD).a | 27 LIB = $(obj)lib$(BOARD).a |
| 28 | 28 |
| 29 COBJS := $(BOARD).o | 29 COBJS := $(BOARD).o |
| 30 #ifdef CONFIG_TEGRA2_KEYBOARD |
| 31 COBJS += $(BOARD)_kbc.o |
| 32 #endif |
| 30 COBJS += ../common/board.o | 33 COBJS += ../common/board.o |
| 31 COBJS += ../common/sdmmc/nvboot_sdmmc.o | 34 COBJS += ../common/sdmmc/nvboot_sdmmc.o |
| 32 COBJS += ../common/sdmmc/nvboot_reset.o | 35 COBJS += ../common/sdmmc/nvboot_reset.o |
| 33 COBJS += ../common/sdmmc/nvboot_util.o | 36 COBJS += ../common/sdmmc/nvboot_util.o |
| 34 COBJS += ../common/sdmmc/nvboot_clocks.o | 37 COBJS += ../common/sdmmc/nvboot_clocks.o |
| 35 COBJS += ../common/sdmmc/nvboot_pads.o | 38 COBJS += ../common/sdmmc/nvboot_pads.o |
| 36 COBJS += ../common/sdmmc/nvboot_pinmux.o | 39 COBJS += ../common/sdmmc/nvboot_pinmux.o |
| 37 COBJS += ../common/sdmmc/nvboot_pinmux_tables.o | 40 COBJS += ../common/sdmmc/nvboot_pinmux_tables.o |
| 38 | 41 |
| 39 SRCS := $(COBJS:.o=.c) | 42 SRCS := $(COBJS:.o=.c) |
| 40 OBJS := $(addprefix $(obj),$(COBJS)) | 43 OBJS := $(addprefix $(obj),$(COBJS)) |
| 41 | 44 |
| 42 $(LIB): $(obj).depend $(OBJS) | 45 $(LIB): $(obj).depend $(OBJS) |
| 43 $(AR) $(ARFLAGS) $@ $(OBJS) | 46 $(AR) $(ARFLAGS) $@ $(OBJS) |
| 44 | 47 |
| 45 clean: | 48 clean: |
| 46 rm -f $(OBJS) | 49 rm -f $(OBJS) |
| 47 | 50 |
| 48 distclean: clean | 51 distclean: clean |
| 49 rm -f $(LIB) core *.bak $(obj).depend | 52 rm -f $(LIB) core *.bak $(obj).depend |
| 50 | 53 |
| 51 ######################################################################### | 54 ######################################################################### |
| 52 | 55 |
| 53 # defines $(obj).depend target | 56 # defines $(obj).depend target |
| 54 include $(SRCTREE)/rules.mk | 57 include $(SRCTREE)/rules.mk |
| 55 | 58 |
| 56 sinclude $(obj).depend | 59 sinclude $(obj).depend |
| 57 | 60 |
| 58 ######################################################################### | 61 ######################################################################### |
| OLD | NEW |