mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-20 20:09:11 +00:00
- unbreak build due to changes in scdcc
See http://lists.gnu.org/archive/html/discuss-gnuradio/2010-11/msg00460.html - sdcc changed the name of asx8051 to sdas8051 - compiler removed "_naked"
This commit is contained in:
parent
1c09667066
commit
06eb15d091
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=265008
11
comms/gnuradio/files/patch-config_usrp_sdcc.m4
Normal file
11
comms/gnuradio/files/patch-config_usrp_sdcc.m4
Normal file
@ -0,0 +1,11 @@
|
||||
--- config/usrp_sdcc.m4.orig 2010-11-19 20:32:17.000000000 -0500
|
||||
+++ config/usrp_sdcc.m4 2010-11-19 20:33:49.000000000 -0500
|
||||
@@ -21,7 +21,7 @@
|
||||
[
|
||||
sdccok=yes
|
||||
AC_CHECK_PROG(XCC, sdcc, sdcc -mmcs51 --no-xinit-opt,no)
|
||||
- AC_CHECK_PROG(XAS, asx8051, asx8051 -plosgff,no)
|
||||
+ AC_CHECK_PROG(XAS,sdas8051 , sdas8051 -plosgff,no)
|
||||
|
||||
if test "$XCC" = "no" -o "$XAS" = "no" ; then
|
||||
AC_MSG_RESULT([USRP requires sdcc. sdcc not found. See http://sdcc.sf.net])
|
@ -1,6 +1,6 @@
|
||||
--- gnuradio-core/Makefile.in.orig 2008-03-24 12:49:57.000000000 -0400
|
||||
+++ gnuradio-core/Makefile.in 2008-03-24 16:13:56.000000000 -0400
|
||||
@@ -546,14 +546,13 @@
|
||||
--- gnuradio-core/Makefile.in.orig 2008-08-23 20:37:32.000000000 -0400
|
||||
+++ gnuradio-core/Makefile.in 2010-11-16 14:44:47.000000000 -0500
|
||||
@@ -561,14 +561,13 @@
|
||||
# Base directory for example applications
|
||||
exampledir = $(datadir)/gnuradio/examples
|
||||
EXTRA_DIST = \
|
||||
|
40
comms/gnuradio/files/patch-usrp_firmware_lib_delay.c
Normal file
40
comms/gnuradio/files/patch-usrp_firmware_lib_delay.c
Normal file
@ -0,0 +1,40 @@
|
||||
--- usrp/firmware/lib/delay.c.orig 2010-11-19 21:26:31.000000000 -0500
|
||||
+++ usrp/firmware/lib/delay.c 2010-11-19 21:28:04.000000000 -0500
|
||||
@@ -24,11 +24,12 @@
|
||||
* Delay approximately 1 microsecond (including overhead in udelay).
|
||||
*/
|
||||
static void
|
||||
-udelay1 (void) _naked
|
||||
+udelay1 (void)
|
||||
+//__naked
|
||||
{
|
||||
- _asm ; lcall that got us here took 4 bus cycles
|
||||
+ __asm ; lcall that got us here took 4 bus cycles
|
||||
ret ; 4 bus cycles
|
||||
- _endasm;
|
||||
+ __endasm;
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -51,9 +52,10 @@
|
||||
* but explains the factor of 4 problem below).
|
||||
*/
|
||||
static void
|
||||
-mdelay1 (void) _naked
|
||||
+mdelay1 (void)
|
||||
+// _naked
|
||||
{
|
||||
- _asm
|
||||
+ __asm
|
||||
mov dptr,#(-1200 & 0xffff)
|
||||
002$:
|
||||
inc dptr ; 3 bus cycles
|
||||
@@ -62,7 +64,7 @@
|
||||
jnz 002$ ; 3 bus cycles
|
||||
|
||||
ret
|
||||
- _endasm;
|
||||
+ __endasm;
|
||||
}
|
||||
|
||||
void
|
@ -0,0 +1,12 @@
|
||||
--- usrp/firmware/src/common/fpga_load.c.orig 2010-11-19 22:24:42.000000000 -0500
|
||||
+++ usrp/firmware/src/common/fpga_load.c 2010-11-19 22:25:05.000000000 -0500
|
||||
@@ -89,7 +89,8 @@
|
||||
#else
|
||||
|
||||
static void
|
||||
-clock_out_config_byte (unsigned char bits) _naked
|
||||
+clock_out_config_byte (unsigned char bits)
|
||||
+// _naked
|
||||
{
|
||||
_asm
|
||||
mov a, dpl
|
12
comms/gnuradio/files/patch-usrp_firmware_src_usrp2_spi.c
Normal file
12
comms/gnuradio/files/patch-usrp_firmware_src_usrp2_spi.c
Normal file
@ -0,0 +1,12 @@
|
||||
--- usrp/firmware/src/usrp2/spi.c.orig 2010-11-19 22:13:00.000000000 -0500
|
||||
+++ usrp/firmware/src/usrp2/spi.c 2010-11-19 22:13:12.000000000 -0500
|
||||
@@ -320,7 +320,8 @@
|
||||
}
|
||||
#else
|
||||
static unsigned char
|
||||
-read_byte_msb (void) _naked
|
||||
+read_byte_msb (void)
|
||||
+// _naked
|
||||
{
|
||||
_asm
|
||||
clr a
|
Loading…
Reference in New Issue
Block a user