From d9aead4fdc1e1058631405aa77dd6c515fc181f8 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sat, 22 Oct 2005 11:07:28 +0000 Subject: [PATCH] document package makefile format changes SVN-Revision: 2226 --- openwrt/docs/buildroot-documentation.html | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/openwrt/docs/buildroot-documentation.html b/openwrt/docs/buildroot-documentation.html index 92628881d8..ede3796a61 100644 --- a/openwrt/docs/buildroot-documentation.html +++ b/openwrt/docs/buildroot-documentation.html @@ -478,7 +478,7 @@ foo-compile: bar-compile 18 19 $(eval $(call PKG_template,FOO,foo,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH))) 20 - 21 $(PKG_BUILD_DIR)/.configured: $(PKG_BUILD_DIR)/.prepared + 21 $(PKG_BUILD_DIR)/.configured: 22 (cd $(PKG_BUILD_DIR); \ 23 $(TARGET_CONFIGURE_OPTS) \ 24 CFLAGS="$(TARGET_CFLAGS)" \ @@ -587,6 +587,16 @@ foo-compile: bar-compile recursevily strip all binaries and libraries. Finally IPKG_BUILD is called to create the package.

+

If you want other targets to be executed at compile, + install or clean time (e.g. for installing + a library into the staging dir), just create the targets (usually + install-dev and uninstall-dev) and enable + them like this: +

+compile-targets: install-dev
+clean-targets: uninstall-dev
+
+

Conclusion

As you can see, adding a software to buildroot is simply a -- 2.30.2