Bladeren bron

swupdate: Set build flags

Sets the recipe build flags in the default configuration file. This
ensures that swupdate is correctly compiled with the flags that are set
by build, for example ensuring that debug symbols are present.

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Joshua Watt 5 jaren geleden
bovenliggende
commit
f1178606a0
2 gewijzigde bestanden met toevoegingen van 6 en 3 verwijderingen
  1. 6 1
      recipes-support/swupdate/swupdate.inc
  2. 0 2
      recipes-support/swupdate/swupdate/defconfig

+ 6 - 1
recipes-support/swupdate/swupdate.inc

@@ -191,7 +191,12 @@ python () {
 }
 
 do_configure () {
-    cp ${WORKDIR}/defconfig ${WORKDIR}/.config
+    cat > ${WORKDIR}/.config <<HEREDOC
+CONFIG_EXTRA_CFLAGS="${CFLAGS}"
+CONFIG_EXTRA_LDFLAGS="${LDFLAGS}"
+HEREDOC
+    cat ${WORKDIR}/defconfig >> ${WORKDIR}/.config
+
     merge_config.sh -O ${B} -m ${WORKDIR}/.config ${@" ".join(find_cfgs(d))}
     (cd ${S} && cml1_do_configure)
 }

+ 0 - 2
recipes-support/swupdate/swupdate/defconfig

@@ -36,8 +36,6 @@ CONFIG_LUAPKG="lua"
 #
 CONFIG_CROSS_COMPILE=""
 CONFIG_SYSROOT=""
-CONFIG_EXTRA_CFLAGS=""
-CONFIG_EXTRA_LDFLAGS=""
 CONFIG_EXTRA_LDLIBS=""
 
 #