source: freewrt/package/broadcom-diag/Makefile@ 0519ae9

freewrt_1_0 freewrt_2_0
Last change on this file since 0519ae9 was 7e671e6, checked in by Waldemar Brodkorb <wbx@…>, 19 years ago
  • add PKG_VERSION to every package in default selection
  • add broadcom-scripts package as default for 1.0, it adds network and switch configuration scripts to base suggested by markus to separate these from webif package
  • move ed to application and disable by default, sorry tg, but not everybody needs it
  • be sure that if broadcom-scripts are installed, new ifup/ifdown network configuration is not used

git-svn-id: svn://www.freewrt.org/trunk/freewrt@719 afb5a338-a214-0410-bd46-81f09a774fd1

  • Property mode set to 100644
File size: 1.4 KB
Line 
1# $FreeWRT$
2#-
3# This file is part of the FreeWRT project. FreeWRT is copyrighted
4# material, please see the LICENCE file in the top-level directory
5# or at http://www.freewrt.org/licence for details.
6
7include $(TOPDIR)/rules.mk
8include $(TOPDIR)/mk/targets.mk
9
10PKG_NAME:= broadcom-diag
11PKG_VERSION:= 1.0
12PKG_RELEASE:= 1
13
14DISTFILES:=
15
16include $(TOPDIR)/mk/package.mk
17
18$(eval $(call PKG_template,KMOD_BROADCOM_DIAG,kmod-$(PKG_NAME),$(KERNEL_VERSION)-$(BOARD)-$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH),kernel ($(KERNEL_VERSION)-$(BOARD)-$(KERNEL_RELEASE))))
19
20DIAG_FLAGS:=$(TARGET_CFLAGS) -D__KERNEL__ -fno-strict-aliasing -fno-common -fomit-frame-pointer -G 0 \
21 -mno-abicalls -fno-pic -finline-limit=100000 -mabi=32 -march=mips32 -Wa,-32 -Wa,-march=mips32 \
22 -Wa,-mips32 -Wa,--trap -Wstrict-prototypes -Wno-trigraphs -DMODULE -mlong-calls -fno-common -I. -I linux-2.4 -nostdinc \
23 -iwithprefix include -I$(LINUX_DIR)/include -I$(LINUX_DIR)/include/asm/gcc -c -I$(LINUX_DIR)/arch/mips/bcm947xx/include -DBCMDRIVER
24
25$(WRKBUILD)/.prepared:
26 mkdir -p $(WRKBUILD)
27 touch $@
28
29$(WRKBUILD)/.built:
30 $(TARGET_CC) $(DIAG_FLAGS) -o $(WRKBUILD)/diag.o diag_led.c
31 touch $@
32
33$(IPKG_KMOD_BROADCOM_DIAG):
34 $(INSTALL_DIR) $(IDIR_KMOD_BROADCOM_DIAG)/lib/modules/$(KERNEL_VERSION)
35 $(INSTALL_DATA) $(WRKBUILD)/diag.o \
36 $(IDIR_KMOD_BROADCOM_DIAG)/lib/modules/$(KERNEL_VERSION)/
37 $(IPKG_BUILD) $(IDIR_KMOD_BROADCOM_DIAG) $(PACKAGE_DIR)
Note: See TracBrowser for help on using the repository browser.