Browse Source

docs/manual: use TARGET_CONFIGURE_OPTS in generic-package tutorial

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>
Sergio Prado 9 years ago
parent
commit
89a33a0602
1 changed files with 1 additions and 1 deletions
  1. 1 1
      docs/manual/adding-packages-generic.txt

+ 1 - 1
docs/manual/adding-packages-generic.txt

@@ -29,7 +29,7 @@ system is based on hand-written Makefiles or shell scripts.
 14: LIBFOO_DEPENDENCIES = host-libaaa libbbb
 14: LIBFOO_DEPENDENCIES = host-libaaa libbbb
 15:
 15:
 16: define LIBFOO_BUILD_CMDS
 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
 18: endef
 19:
 19:
 20: define LIBFOO_INSTALL_STAGING_CMDS
 20: define LIBFOO_INSTALL_STAGING_CMDS