This is merely a historical archive of years 2008-2021, before the migration to mailman3.
A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.
Harald Welte gerrit-no-reply at lists.osmocom.orgHarald Welte has submitted this change and it was merged. Change subject: sercomm: Include in libosmocore Makefile ...................................................................... sercomm: Include in libosmocore Makefile Change-Id: If9d50d634381f43b2c67b97fea36a462a66e4559 --- M include/Makefile.am M include/osmocom/core/sercomm.h M src/Makefile.am M src/sercomm.c 4 files changed, 6 insertions(+), 5 deletions(-) Approvals: Harald Welte: Looks good to me, approved Jenkins Builder: Verified diff --git a/include/Makefile.am b/include/Makefile.am index 6981c37..161bbca 100644 --- a/include/Makefile.am +++ b/include/Makefile.am @@ -36,6 +36,7 @@ osmocom/core/rate_ctr.h \ osmocom/core/stat_item.h \ osmocom/core/select.h \ + osmocom/core/sercomm.h \ osmocom/core/signal.h \ osmocom/core/socket.h \ osmocom/core/statistics.h \ diff --git a/include/osmocom/core/sercomm.h b/include/osmocom/core/sercomm.h index cc1a833..32b96c5 100644 --- a/include/osmocom/core/sercomm.h +++ b/include/osmocom/core/sercomm.h @@ -58,7 +58,7 @@ }; -#ifndef HOST_BUILD +#ifdef EMBEDDED #include <uart.h> /* helper functions for target */ void osmo_sercomm_change_speed(struct osmo_sercomm_inst *sercomm, enum uart_baudrate bdrt); diff --git a/src/Makefile.am b/src/Makefile.am index 6948e1a..c083936 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -17,7 +17,7 @@ conv.c application.c rbtree.c strrb.c \ loggingrb.c crc8gen.c crc16gen.c crc32gen.c crc64gen.c \ macaddr.c stat_item.c stats.c stats_statsd.c prim.c \ - viterbi.c viterbi_gen.c + viterbi.c viterbi_gen.c sercomm.c BUILT_SOURCES = crc8gen.c crc16gen.c crc32gen.c crc64gen.c diff --git a/src/sercomm.c b/src/sercomm.c index ff6a5a3..f3241c4 100644 --- a/src/sercomm.c +++ b/src/sercomm.c @@ -29,7 +29,7 @@ #include <osmocom/core/sercomm.h> #include <osmocom/core/linuxlist.h> -#ifdef HOST_BUILD +#ifndef EMBEDDED # define DEFAULT_RX_MSG_SIZE 2048 static inline void sercomm_drv_lock(unsigned long __attribute__((unused)) *flags) {} @@ -107,7 +107,7 @@ msgb_enqueue(&sercomm->tx.dlci_queues[dlci], msg); sercomm_drv_unlock(&flags); -#ifndef HOST_BUILD +#ifdef EMBEDDED /* tell UART that we have something to send */ uart_irq_enable(sercomm->uart_id, UART_IRQ_TX_EMPTY, 1); #endif @@ -126,7 +126,7 @@ return num; } -#ifndef HOST_BUILD +#ifdef EMBEDDED /* wait until everything has been transmitted, then grab the lock and * change the baud rate as requested */ void osmo_sercomm_change_speed(struct osmo_sercomm_inst *sercomm, enum uart_baudrate bdrt) -- To view, visit https://gerrit.osmocom.org/2643 To unsubscribe, visit https://gerrit.osmocom.org/settings Gerrit-MessageType: merged Gerrit-Change-Id: If9d50d634381f43b2c67b97fea36a462a66e4559 Gerrit-PatchSet: 3 Gerrit-Project: libosmocore Gerrit-Branch: master Gerrit-Owner: Harald Welte <laforge at gnumonks.org> Gerrit-Reviewer: Harald Welte <laforge at gnumonks.org> Gerrit-Reviewer: Jenkins Builder