diff --git a/meta-digi-arm/recipes-bsp/libdigi/libdigi.bb b/meta-digi-arm/recipes-bsp/libdigi/libdigi.bb index 4cf7fc08a..6f9c00945 100644 --- a/meta-digi-arm/recipes-bsp/libdigi/libdigi.bb +++ b/meta-digi-arm/recipes-bsp/libdigi/libdigi.bb @@ -1,4 +1,4 @@ -# Copyright (C) 2013 Digi International. +# Copyright (C) 2013,2017 Digi International. SUMMARY = "Digi's utilities library" SECTION = "libs" @@ -22,11 +22,11 @@ SRC_URI = " \ S = "${WORKDIR}" do_compile() { - ${CC} -O2 -Wall -c -o log.o log.c - ${CC} -O2 -Wall -c -o cmdopt.o cmdopt.c - ${CC} -O2 -Wall -c -o mem.o mem.c - ${CC} -O2 -Wall -c -o crc32.o crc32.c - ${CC} -O2 -Wall -c -o platform.o platform.c + ${CC} -O2 -Wall ${LDFLAGS} -c -o log.o log.c + ${CC} -O2 -Wall ${LDFLAGS} -c -o cmdopt.o cmdopt.c + ${CC} -O2 -Wall ${LDFLAGS} -c -o mem.o mem.c + ${CC} -O2 -Wall ${LDFLAGS} -c -o crc32.o crc32.c + ${CC} -O2 -Wall ${LDFLAGS} -c -o platform.o platform.c ${AR} -rcs libdigi.a log.o cmdopt.o mem.o crc32.o platform.o } diff --git a/meta-digi-arm/recipes-bsp/update-flash/update-flash.bb b/meta-digi-arm/recipes-bsp/update-flash/update-flash.bb index 44451f764..49194d0b7 100644 --- a/meta-digi-arm/recipes-bsp/update-flash/update-flash.bb +++ b/meta-digi-arm/recipes-bsp/update-flash/update-flash.bb @@ -1,4 +1,4 @@ -# Copyright (C) 2013 Digi International. +# Copyright (C) 2013,2017 Digi International. SUMMARY = "Digi's update test utility" SECTION = "base" @@ -17,7 +17,7 @@ GIT_SHA1 = "$(cd ${THISDIR} && git rev-parse --short HEAD)" S = "${WORKDIR}" do_compile() { - ${CC} -O2 -Wall -DGIT_SHA1=\"${GIT_SHA1}\" update_flash.c -o update_flash -ldigi + ${CC} -O2 -Wall ${LDFLAGS} -DGIT_SHA1=\"${GIT_SHA1}\" update_flash.c -o update_flash -ldigi } do_install() { diff --git a/meta-digi-dey/recipes-digi/dey-examples/dey-examples-alsa.bb b/meta-digi-dey/recipes-digi/dey-examples/dey-examples-alsa.bb index 3ab5af986..755e248dc 100644 --- a/meta-digi-dey/recipes-digi/dey-examples/dey-examples-alsa.bb +++ b/meta-digi-dey/recipes-digi/dey-examples/dey-examples-alsa.bb @@ -1,4 +1,4 @@ -# Copyright (C) 2013 Digi International. +# Copyright (C) 2013,2017 Digi International. SUMMARY = "DEY examples: ALSA API test application" SECTION = "examples" @@ -12,7 +12,7 @@ SRC_URI = "file://alsa_test" S = "${WORKDIR}/alsa_test" do_compile() { - ${CC} -O2 -Wall alsa_test.c -o alsa_test -lasound + ${CC} -O2 -Wall ${LDFLAGS} alsa_test.c -o alsa_test -lasound } do_install() { diff --git a/meta-digi-dey/recipes-digi/dey-examples/dey-examples-bt.bb b/meta-digi-dey/recipes-digi/dey-examples/dey-examples-bt.bb index 71866c3fc..ed1a49ad6 100644 --- a/meta-digi-dey/recipes-digi/dey-examples/dey-examples-bt.bb +++ b/meta-digi-dey/recipes-digi/dey-examples/dey-examples-bt.bb @@ -1,4 +1,4 @@ -# Copyright (C) 2013 Digi International. +# Copyright (C) 2013,2017 Digi International. SUMMARY = "DEY examples: application to transfer data over bluetooth" SECTION = "examples" @@ -14,7 +14,7 @@ SRC_URI = "file://bt_test" S = "${WORKDIR}/bt_test" do_compile() { - ${CC} -O2 -Wall bt_test.c -o bt_test -lbluetooth -pthread + ${CC} -O2 -Wall ${LDFLAGS} bt_test.c -o bt_test -lbluetooth -pthread } do_install() { diff --git a/meta-digi-dey/recipes-digi/dey-examples/dey-examples-btconfig.bb b/meta-digi-dey/recipes-digi/dey-examples/dey-examples-btconfig.bb index 0e997e1a3..f05173b94 100644 --- a/meta-digi-dey/recipes-digi/dey-examples/dey-examples-btconfig.bb +++ b/meta-digi-dey/recipes-digi/dey-examples/dey-examples-btconfig.bb @@ -1,4 +1,4 @@ -# Copyright (C) 2013 Digi International. +# Copyright (C) 2013,2017 Digi International. SUMMARY = "DEY examples: application to perform low level bluetooth" SECTION = "examples" @@ -14,7 +14,7 @@ SRC_URI = "file://btconfig" S = "${WORKDIR}/btconfig" do_compile() { - ${CC} -O2 -Wall btconfig.c -o btconfig -lbluetooth + ${CC} -O2 -Wall ${LDFLAGS} btconfig.c -o btconfig -lbluetooth } do_install() { diff --git a/meta-digi-dey/recipes-digi/dey-examples/dey-examples-can.bb b/meta-digi-dey/recipes-digi/dey-examples/dey-examples-can.bb index a6c7de141..a0cd3eecd 100644 --- a/meta-digi-dey/recipes-digi/dey-examples/dey-examples-can.bb +++ b/meta-digi-dey/recipes-digi/dey-examples/dey-examples-can.bb @@ -1,4 +1,4 @@ -# Copyright (C) 2013 Digi International. +# Copyright (C) 2013,2017 Digi International. SUMMARY = "DEY examples: CAN bus test application" SECTION = "examples" @@ -10,7 +10,7 @@ SRC_URI = "file://can_test" S = "${WORKDIR}/can_test" do_compile() { - ${CC} -O2 -Wall can_test.c -o can_test -pthread + ${CC} -O2 -Wall ${LDFLAGS} can_test.c -o can_test -pthread } do_install() { diff --git a/meta-digi-dey/recipes-digi/dey-examples/dey-examples-gpio-sysfs.bb b/meta-digi-dey/recipes-digi/dey-examples/dey-examples-gpio-sysfs.bb index f97385b82..0c5847b3d 100644 --- a/meta-digi-dey/recipes-digi/dey-examples/dey-examples-gpio-sysfs.bb +++ b/meta-digi-dey/recipes-digi/dey-examples/dey-examples-gpio-sysfs.bb @@ -1,4 +1,4 @@ -# Copyright (C) 2013 Digi International. +# Copyright (C) 2013,2017 Digi International. SUMMARY = "DEY examples: GPIO sysfs API test application" SECTION = "examples" @@ -10,7 +10,7 @@ SRC_URI = "file://gpio_sysfs_test" S = "${WORKDIR}/gpio_sysfs_test" do_compile() { - ${CC} -O2 -Wall gpio_sysfs_test.c sysfsgpio.c -o gpio_sysfs_test + ${CC} -O2 -Wall ${LDFLAGS} gpio_sysfs_test.c sysfsgpio.c -o gpio_sysfs_test } do_install() { diff --git a/meta-digi-dey/recipes-digi/dey-examples/dey-examples-rtc.bb b/meta-digi-dey/recipes-digi/dey-examples/dey-examples-rtc.bb index ac58eb68b..f8e96ec7c 100644 --- a/meta-digi-dey/recipes-digi/dey-examples/dey-examples-rtc.bb +++ b/meta-digi-dey/recipes-digi/dey-examples/dey-examples-rtc.bb @@ -1,4 +1,4 @@ -# Copyright (C) 2013 Digi International. +# Copyright (C) 2013,2017 Digi International. SUMMARY = "DEY examples: RTC test application" SECTION = "examples" @@ -10,7 +10,7 @@ SRC_URI = "file://rtc_test" S = "${WORKDIR}/rtc_test" do_compile() { - ${CC} -O2 -Wall rtc_test.c -o rtc_test + ${CC} -O2 -Wall ${LDFLAGS} rtc_test.c -o rtc_test } do_install() { diff --git a/meta-digi-dey/recipes-digi/dey-examples/dey-examples-spidev.bb b/meta-digi-dey/recipes-digi/dey-examples/dey-examples-spidev.bb index 91fb30abf..1f2ef985b 100644 --- a/meta-digi-dey/recipes-digi/dey-examples/dey-examples-spidev.bb +++ b/meta-digi-dey/recipes-digi/dey-examples/dey-examples-spidev.bb @@ -1,4 +1,4 @@ -# Copyright (C) 2013 Digi International. +# Copyright (C) 2013,2017 Digi International. SUMMARY = "DEY examples: SPI device driver test application" SECTION = "examples" @@ -21,7 +21,7 @@ python do_warning_spidev_ccardimx28() { addtask warning_spidev before do_compile do_compile() { - ${CC} -O2 -Wall spidev_test.c -o spidev_test + ${CC} -O2 -Wall ${LDFLAGS} spidev_test.c -o spidev_test } do_install() { diff --git a/meta-digi-dey/recipes-digi/dey-examples/dey-examples-v4l2.bb b/meta-digi-dey/recipes-digi/dey-examples/dey-examples-v4l2.bb index 1e0ce763d..2d9195891 100644 --- a/meta-digi-dey/recipes-digi/dey-examples/dey-examples-v4l2.bb +++ b/meta-digi-dey/recipes-digi/dey-examples/dey-examples-v4l2.bb @@ -1,4 +1,4 @@ -# Copyright (C) 2013 Digi International. +# Copyright (C) 2013,2017 Digi International. SUMMARY = "DEY examples: V4L2 test application" SECTION = "examples" @@ -14,8 +14,8 @@ INCLUDE_PATH_ccimx6 = "-I${STAGING_KERNEL_DIR}/arch/arm/include -I${STAGING_KERN S = "${WORKDIR}/v4l2_test" do_compile() { - ${CC} -O2 -Wall ${INCLUDE_PATH} v4l2_still.c -o v4l2_still -lpthread - ${CC} -O2 -Wall ${INCLUDE_PATH} v4l2_common.c v4l2_preview_test.c -o v4l2_preview_test -lpthread + ${CC} -O2 -Wall ${INCLUDE_PATH} ${LDFLAGS} v4l2_still.c -o v4l2_still -lpthread + ${CC} -O2 -Wall ${INCLUDE_PATH} ${LDFLAGS} v4l2_common.c v4l2_preview_test.c -o v4l2_preview_test -lpthread } do_install() { diff --git a/meta-digi-dey/recipes-digi/dey-examples/dey-examples-vplay.bb b/meta-digi-dey/recipes-digi/dey-examples/dey-examples-vplay.bb index eedcb9da5..c40b381f0 100644 --- a/meta-digi-dey/recipes-digi/dey-examples/dey-examples-vplay.bb +++ b/meta-digi-dey/recipes-digi/dey-examples/dey-examples-vplay.bb @@ -1,4 +1,4 @@ -# Copyright (C) 2013 Digi International. +# Copyright (C) 2013,2017 Digi International. SUMMARY = "DEY examples: OSS (open sound system) test application" SECTION = "examples" @@ -10,7 +10,7 @@ SRC_URI = "file://vplay_test" S = "${WORKDIR}/vplay_test" do_compile() { - ${CC} -O2 -Wall vplay.c -o vplay + ${CC} -O2 -Wall ${LDFLAGS} vplay.c -o vplay } do_install() { diff --git a/meta-digi-dey/recipes-digi/dey-examples/dey-examples-watchdog.bb b/meta-digi-dey/recipes-digi/dey-examples/dey-examples-watchdog.bb index a98b718f5..4f801dbde 100644 --- a/meta-digi-dey/recipes-digi/dey-examples/dey-examples-watchdog.bb +++ b/meta-digi-dey/recipes-digi/dey-examples/dey-examples-watchdog.bb @@ -1,4 +1,4 @@ -# Copyright (C) 2013 Digi International. +# Copyright (C) 2013,2017 Digi International. SUMMARY = "DEY examples: watchdog test application" SECTION = "examples" @@ -10,7 +10,7 @@ SRC_URI = "file://watchdog_test" S = "${WORKDIR}/watchdog_test" do_compile() { - ${CC} -O2 -Wall watchdog_test.c -o watchdog_test + ${CC} -O2 -Wall ${LDFLAGS} watchdog_test.c -o watchdog_test } do_install() { diff --git a/meta-digi-dey/recipes-digi/fbtest/fbtest.bb b/meta-digi-dey/recipes-digi/fbtest/fbtest.bb index dee2d745d..9cc057d53 100644 --- a/meta-digi-dey/recipes-digi/fbtest/fbtest.bb +++ b/meta-digi-dey/recipes-digi/fbtest/fbtest.bb @@ -1,4 +1,4 @@ -# Copyright (C) 2013 Digi International. +# Copyright (C) 2013,2017 Digi International. SUMMARY = "Digi's framebuffer test utility" SECTION = "base" @@ -12,7 +12,7 @@ SRC_URI = "file://fbtest.c" S = "${WORKDIR}" do_compile() { - ${CC} -O2 -Wall fbtest.c -o fbtest -lnano-X + ${CC} -O2 -Wall ${LDFLAGS} fbtest.c -o fbtest -lnano-X } do_install() { diff --git a/meta-digi-dey/recipes-digi/memwatch/memwatch.bb b/meta-digi-dey/recipes-digi/memwatch/memwatch.bb index 1244657f0..03875c6f6 100644 --- a/meta-digi-dey/recipes-digi/memwatch/memwatch.bb +++ b/meta-digi-dey/recipes-digi/memwatch/memwatch.bb @@ -1,4 +1,4 @@ -# Copyright (C) 2013 Digi International. +# Copyright (C) 2013,2017 Digi International. SUMMARY = "Digi's memory access utility" SECTION = "base" @@ -11,7 +11,7 @@ SRC_URI = "file://memwatch.c \ S = "${WORKDIR}" do_compile() { - ${CC} -O2 -Wall -o memwatch memwatch.c + ${CC} -O2 -Wall ${LDFLAGS} -o memwatch memwatch.c } do_install() {