Преглед на файлове

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 години
родител
ревизия
f1178606a0
променени са 2 файла, в които са добавени 6 реда и са изтрити 3 реда
  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=""
 
 #