瀏覽代碼

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=""
 
 #