docs/manual: use TARGET_CONFIGURE_OPTS in generic-package tutorial
authorSergio Prado <sergio.prado@e-labworks.com>
Mon, 25 Jul 2016 18:35:18 +0000 (15:35 -0300)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Mon, 25 Jul 2016 20:49:04 +0000 (22:49 +0200)
TARGET_CONFIGURE_OPTS is preferred over manually using CC and LD.

Signed-off-by: Sergio Prado <sergio.prado@e-labworks.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
docs/manual/adding-packages-generic.txt

index f18465b851078effb12af1dce5407595822fc087..ef895ec91717986c1fb5cb0dc343aee7fae3617a 100644 (file)
@@ -29,7 +29,7 @@ system is based on hand-written Makefiles or shell scripts.
 14: LIBFOO_DEPENDENCIES = host-libaaa libbbb
 15:
 16: define LIBFOO_BUILD_CMDS
-17:    $(MAKE) CC="$(TARGET_CC)" LD="$(TARGET_LD)" -C $(@D) all
+17:    $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D) all
 18: endef
 19:
 20: define LIBFOO_INSTALL_STAGING_CMDS