source: freewrt/package/broadcom-diag/Makefile@ db5651c

freewrt_1_0 freewrt_2_0
Last change on this file since db5651c was db5651c, checked in by Waldemar Brodkorb <wbx@…>, 19 years ago

merge wbx-target-cleanup to trunk.

  • mk directory for some top level makefiles (build.mk,vars.mk)
  • add a separate configfs partition to all models, 128 kb big
  • add model and platform specific startup files and kernel configs
  • delete target/linux/package, add all addon kernel packages to packages
  • simplify target/linux/brcm-2.4/Makefile, abstraction to mk/ comes later
  • add target/image directory, place where the different images are created
  • default off for all extra packages, be sure that you enable all packages you need to get a dsl-capable router. snapshots will be created by a specific config which contains all needed stuff (iptables, pppoe, pptp, haserl, webif)

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

  • Property mode set to 100644
File size: 1.1 KB
Line 
1include $(TOPDIR)/rules.mk
2include $(TOPDIR)/mk/targets.mk
3
4PKG_NAME:= broadcom-diag
5PKG_RELEASE:= 1
6
7DISTFILES:=
8
9include $(TOPDIR)/package/rules.mk
10
11$(eval $(call PKG_template,KMOD_BROADCOM_DIAG,kmod-$(PKG_NAME),$(KERNEL_VERSION)-$(BOARD)-$(PKG_RELEASE),$(ARCH),kernel ($(KERNEL_VERSION)-$(BOARD)-$(KERNEL_RELEASE))))
12
13DIAG_FLAGS:=$(TARGET_CFLAGS) -D__KERNEL__ -fno-strict-aliasing -fno-common -fomit-frame-pointer -G 0 \
14 -mno-abicalls -fno-pic -finline-limit=100000 -mabi=32 -march=mips32 -Wa,-32 -Wa,-march=mips32 \
15 -Wa,-mips32 -Wa,--trap -Wstrict-prototypes -Wno-trigraphs -DMODULE -mlong-calls -fno-common -I. -I linux-2.4 -nostdinc \
16 -iwithprefix include -I$(LINUX_DIR)/include -I$(LINUX_DIR)/include/asm/gcc -c -I$(LINUX_DIR)/arch/mips/bcm947xx/include -DBCMDRIVER
17
18$(WRKBUILD)/.prepared:
19 mkdir -p $(WRKBUILD)
20 touch $@
21
22$(WRKBUILD)/.built:
23 $(TARGET_CC) $(DIAG_FLAGS) -o $(WRKBUILD)/diag.o diag_led.c
24 touch $@
25
26$(IPKG_KMOD_BROADCOM_DIAG):
27 mkdir -p $(IDIR_KMOD_BROADCOM_DIAG)/lib/modules/$(KERNEL_VERSION)
28 $(CP) $(WRKBUILD)/diag.o $(IDIR_KMOD_BROADCOM_DIAG)/lib/modules/$(KERNEL_VERSION)/
29 $(IPKG_BUILD) $(IDIR_KMOD_BROADCOM_DIAG) $(PACKAGE_DIR)
Note: See TracBrowser for help on using the repository browser.