| Line | |
|---|
| 1 | include $(TOPDIR)/rules.mk
|
|---|
| 2 | include $(TOPDIR)/mk/targets.mk
|
|---|
| 3 |
|
|---|
| 4 | PKG_NAME:= base-files-arch
|
|---|
| 5 | PKG_RELEASE:= 1
|
|---|
| 6 | WRKSRC= ${WRKDIR}/$(PKG_NAME)
|
|---|
| 7 | DISTFILES:=
|
|---|
| 8 |
|
|---|
| 9 | include $(TOPDIR)/package/rules.mk
|
|---|
| 10 |
|
|---|
| 11 | IDIR_BASE_ARCH:=$(WRKBUILD)/$(PKG_NAME)
|
|---|
| 12 | IPKG_BASE_ARCH:=$(PACKAGE_DIR)/base-files-arch_$(PKG_RELEASE)_$(ARCH).ipk
|
|---|
| 13 |
|
|---|
| 14 | $(WRKBUILD)/.prepared:
|
|---|
| 15 | mkdir -p $(WRKBUILD)
|
|---|
| 16 | touch $@
|
|---|
| 17 |
|
|---|
| 18 | $(WRKBUILD)/.configured:
|
|---|
| 19 | touch $@
|
|---|
| 20 |
|
|---|
| 21 | $(WRKBUILD)/.built:
|
|---|
| 22 | touch $@
|
|---|
| 23 |
|
|---|
| 24 | $(IPKG_BASE_ARCH):
|
|---|
| 25 | mkdir -p $(IDIR_BASE_ARCH)
|
|---|
| 26 | $(SCRIPT_DIR)/make-ipkg-dir.sh $(IDIR_BASE_ARCH) ipkg/$(PKG_NAME).control $(PKG_RELEASE) $(ARCH)
|
|---|
| 27 | echo "copy $(TOPDIR)/target/linux/$(BOARD)-$(KERNEL)/files"
|
|---|
| 28 | -[ -d $(TOPDIR)/target/linux/$(BOARD)-$(KERNEL)/files ] && \
|
|---|
| 29 | $(CP) $(TOPDIR)/target/linux/$(BOARD)-$(KERNEL)/files/* $(IDIR_BASE_ARCH)
|
|---|
| 30 | -[ -d $(TOPDIR)/target/linux/$(BOARD)-$(KERNEL)/$(MODEL)/files ] && \
|
|---|
| 31 | $(CP) $(TOPDIR)/target/linux/$(BOARD)-$(KERNEL)/$(MODEL)/files/* $(IDIR_BASE_ARCH)
|
|---|
| 32 | -find $(IDIR_BASE) -type d -name CVS | xargs rm -rf
|
|---|
| 33 | -find $(IDIR_BASE) -type d -name .svn | xargs rm -rf
|
|---|
| 34 | -find $(IDIR_BASE) -name '.#*' | xargs rm -f
|
|---|
| 35 | $(IPKG_BUILD) $(IDIR_BASE_ARCH) $(PACKAGE_DIR)
|
|---|
| 36 |
|
|---|
| 37 | compile-targets: $(IPKG_BASE_ARCH)
|
|---|
| 38 | install-targets: compile
|
|---|
| 39 | $(IPKG) install $(IPKG_BASE_ARCH)
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.