freewrt_1_0
freewrt_2_0
|
Last change
on this file since 9404987 was 9404987, checked in by Thorsten Glaser <tg@…>, 19 years ago |
|
start the WRKDIR conversion here too
package/rules.mk is still broken. I don't get this GNU make shit
tonight any more. Please use r274, I know that one works, for now.
git-svn-id: svn://www.freewrt.org/trunk/freewrt@323 afb5a338-a214-0410-bd46-81f09a774fd1
|
-
Property mode
set to
100644
|
|
File size:
1.2 KB
|
| Line | |
|---|
| 1 | # Makefile for the diag module
|
|---|
| 2 | #
|
|---|
| 3 | # $Id: Makefile 3112 2006-02-01 23:53:19Z mbm $
|
|---|
| 4 |
|
|---|
| 5 | include $(TOPDIR)/rules.mk
|
|---|
| 6 |
|
|---|
| 7 | PKG_NAME := kmod-diag
|
|---|
| 8 | PKG_RELEASE := 1
|
|---|
| 9 | WRKBUILD := $(BUILD_DIR)/$(PKG_NAME)
|
|---|
| 10 |
|
|---|
| 11 | DISTFILES:=
|
|---|
| 12 | include $(TOPDIR)/package/rules.mk
|
|---|
| 13 |
|
|---|
| 14 | $(eval $(call PKG_template,KMOD_DIAG,$(PKG_NAME),$(LINUX_VERSION)-$(BOARD)-$(PKG_RELEASE),$(ARCH),kernel ($(LINUX_VERSION)-$(BOARD)-$(LINUX_RELEASE))))
|
|---|
| 15 |
|
|---|
| 16 | DIAG_FLAGS:=$(TARGET_CFLAGS) -D__KERNEL__ -fno-strict-aliasing -fno-common -fomit-frame-pointer -G 0 \
|
|---|
| 17 | -mno-abicalls -fno-pic -finline-limit=100000 -mabi=32 -march=mips32 -Wa,-32 -Wa,-march=mips32 \
|
|---|
| 18 | -Wa,-mips32 -Wa,--trap -Wstrict-prototypes -Wno-trigraphs -DMODULE -mlong-calls -fno-common -I. -I linux-2.4 -nostdinc \
|
|---|
| 19 | -iwithprefix include -I$(LINUX_DIR)/include -I$(LINUX_DIR)/include/asm/gcc -c -I$(LINUX_DIR)/arch/mips/bcm947xx/include -DBCMDRIVER
|
|---|
| 20 |
|
|---|
| 21 | $(WRKBUILD)/.prepared:
|
|---|
| 22 | mkdir -p $(WRKBUILD)
|
|---|
| 23 | touch $@
|
|---|
| 24 |
|
|---|
| 25 | $(WRKBUILD)/.built:
|
|---|
| 26 | $(TARGET_CC) $(DIAG_FLAGS) -o $(WRKBUILD)/diag.o diag_led.c
|
|---|
| 27 | touch $@
|
|---|
| 28 |
|
|---|
| 29 | $(IPKG_KMOD_DIAG):
|
|---|
| 30 | mkdir -p $(IDIR_KMOD_DIAG)/lib/modules/$(LINUX_VERSION)
|
|---|
| 31 | $(CP) $(WRKBUILD)/diag.o $(IDIR_KMOD_DIAG)/lib/modules/$(LINUX_VERSION)/
|
|---|
| 32 | $(IPKG_BUILD) $(IDIR_KMOD_DIAG) $(PACKAGE_DIR)
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.