소스 검색

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