helper/platform/dpdk: return make errors

Message ID 1469036248-13341-3-git-send-email-zoltan.kiss@linaro.org
State New
Headers show

Commit Message

Zoltan Kiss July 20, 2016, 5:37 p.m.
Signed-off-by: Zoltan Kiss <zoltan.kiss@linaro.org>
---
 helper/platform/dpdk | 2 ++
 1 file changed, 2 insertions(+)

Comments

Anders Roxell July 20, 2016, 6:24 p.m. | #1
On 2016-07-20 18:37, Zoltan Kiss wrote:
> Signed-off-by: Zoltan Kiss <zoltan.kiss@linaro.org>
> ---
>  helper/platform/dpdk | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/helper/platform/dpdk b/helper/platform/dpdk
> index 46326db..b1a33f3 100644
> --- a/helper/platform/dpdk
> +++ b/helper/platform/dpdk
> @@ -39,7 +39,9 @@ dpdk_build() {
>      sed -ri 's,(CONFIG_RTE_LIBRTE_PMD_PCAP=).*,\1y,' "${dpdk_target}"/.config
>      sed -ri 's,(CONFIG_RTE_MAX_MEMSEG=).*,\11024,' "${dpdk_target}"/.config
>      make -j ${NUM_CPUS} build T="${dpdk_target}" O="${dpdk_target}" EXTRA_CFLAGS="-fPIC -g -O3"
> +    RETVAL=$?
>      popd >/dev/null
> +    return $RETVAL
>  }
>  
>  dpdk_cleanup(){
> -- 
> 1.9.1
> 

Applied.

Cheers,
Anders

Patch hide | download patch | download mbox

diff --git a/helper/platform/dpdk b/helper/platform/dpdk
index 46326db..b1a33f3 100644
--- a/helper/platform/dpdk
+++ b/helper/platform/dpdk
@@ -39,7 +39,9 @@  dpdk_build() {
     sed -ri 's,(CONFIG_RTE_LIBRTE_PMD_PCAP=).*,\1y,' "${dpdk_target}"/.config
     sed -ri 's,(CONFIG_RTE_MAX_MEMSEG=).*,\11024,' "${dpdk_target}"/.config
     make -j ${NUM_CPUS} build T="${dpdk_target}" O="${dpdk_target}" EXTRA_CFLAGS="-fPIC -g -O3"
+    RETVAL=$?
     popd >/dev/null
+    return $RETVAL
 }
 
 dpdk_cleanup(){