freewrt_1_0
freewrt_2_0
|
Last change
on this file since ed2dd9f was ed2dd9f, checked in by Thorsten Glaser <tg@…>, 19 years ago |
|
instead of setting WRKBUILD, set WRKSRC and let WRKBUILD?=WRKSRC like mirports
(WRKSRC isn't used anywhere though)
git-svn-id: svn://www.freewrt.org/trunk/freewrt@306 afb5a338-a214-0410-bd46-81f09a774fd1
|
-
Property mode
set to
100644
|
|
File size:
970 bytes
|
| Line | |
|---|
| 1 | # $Id: Makefile 3198 2006-02-09 03:21:01Z nbd $
|
|---|
| 2 |
|
|---|
| 3 | include $(TOPDIR)/rules.mk
|
|---|
| 4 |
|
|---|
| 5 | PKG_NAME := mtd
|
|---|
| 6 | PKG_RELEASE := 4
|
|---|
| 7 |
|
|---|
| 8 | WRKSRC := ${WRKDIR}/$(PKG_NAME)
|
|---|
| 9 |
|
|---|
| 10 | DISTFILES:=
|
|---|
| 11 | include $(TOPDIR)/package/rules.mk
|
|---|
| 12 |
|
|---|
| 13 | $(eval $(call PKG_template,MTD,$(PKG_NAME),$(PKG_RELEASE),$(ARCH)))
|
|---|
| 14 | $(eval $(call PKG_template,MTD_STATIC,mtd-static,$(PKG_RELEASE),$(ARCH)))
|
|---|
| 15 |
|
|---|
| 16 | $(WRKBUILD)/.prepared:
|
|---|
| 17 | mkdir -p $(WRKBUILD)
|
|---|
| 18 | touch $@
|
|---|
| 19 |
|
|---|
| 20 | $(WRKBUILD)/.configured:
|
|---|
| 21 | touch $@
|
|---|
| 22 |
|
|---|
| 23 | $(WRKBUILD)/.built:
|
|---|
| 24 | $(TARGET_CC) $(TARGET_CFLAGS) -o $(WRKBUILD)/mtd mtd.c
|
|---|
| 25 | $(TARGET_CC) -static $(TARGET_CFLAGS) -o $(WRKBUILD)/mtd-static mtd.c
|
|---|
| 26 | touch $@
|
|---|
| 27 |
|
|---|
| 28 | $(IPKG_MTD):
|
|---|
| 29 | install -d -m0755 $(IDIR_MTD)/sbin
|
|---|
| 30 | install -m0755 $(WRKBUILD)/mtd $(IDIR_MTD)/sbin
|
|---|
| 31 | $(RSTRIP) $(IDIR_MTD)/sbin/*
|
|---|
| 32 | $(IPKG_BUILD) $(IDIR_MTD) $(PACKAGE_DIR)
|
|---|
| 33 |
|
|---|
| 34 | $(IPKG_MTD_STATIC):
|
|---|
| 35 | install -d -m0755 $(IDIR_MTD_STATIC)/sbin
|
|---|
| 36 | install -m0755 $(WRKBUILD)/mtd-static $(IDIR_MTD_STATIC)/sbin
|
|---|
| 37 | $(RSTRIP) $(IDIR_MTD_STATIC)/sbin/*
|
|---|
| 38 | $(IPKG_BUILD) $(IDIR_MTD_STATIC) $(PACKAGE_DIR)
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.