[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bluetooth-dev] Compiling for no hardware



Low Teck Khoon wrote:

> Hello;
>
>  I recently downloaded the Axis stack dated 2001 Jan 8.
>
>  According to the readme file, I need to edit the HW_CURRENT setting in
> the btconfig.h and btd.h to
>
>  #define HW_CURRENT HW_NOINIT
>

Someone had this problem earlier. I think I posted the solution. Check the
mailing list archives for HW_NOINIT or something like that.
Actually, I'll just attach a little patchfile. No gaurantees, but you can get
the idea from it if nothing else.

--Gordon

>
>  However after doing that, I was unable to generate the btd executable.
>
> The following is part of the output from make:
>
> Making all in btd
> make[2]: Entering directory `/usr/axis/bluetooth/apps/btd'
> cc -O2 -Wall -g -I/usr/axis/bluetooth/hroot/include   -c -o btd.o btd.c
> btd.c:3038: redefinition of `init_phys'
> btd.c:3000: `init_phys' previously defined here
> btd.c:3044: redefinition of `init_hw'
> btd.c:3006: `init_hw' previously defined here
> btd.c:3050: redefinition of `reset_hw'
> btd.c:3025: `reset_hw' previously defined here
> make[2]: *** [btd.o] Error 1
> make[2]: Leaving directory `/usr/axis/bluetooth/apps/btd'
> make[1]: *** [all-recurse] Error 1
> make[1]: Leaving directory `/usr/axis/bluetooth/apps'
> make: *** [all] Error 2
>
>  I have tried compiling the stack using HW_ERICSSON with no problems (I
>  can't test it without the hardware)
>
>  Can anyone help me?
>
>  Thanks
>
>  Low Teck Khoon
>
> -
> To unsubscribe from this list: send the line "unsubscribe bluetooth-dev" in
> the body of a message to majordomo@xxxxxxx.com
Only in my-bluetooth/apps/btd: btd
diff -ur bluetooth/apps/btd/btd.h my-bluetooth/apps/btd/btd.h
--- bluetooth/apps/btd/btd.h	Mon Jan  8 11:01:20 2001
+++ my-bluetooth/apps/btd/btd.h	Wed Jan 10 09:44:13 2001
@@ -31,7 +31,8 @@
 
 /* HW init defines */
 
-#define HW_NOINIT 0
+#define HW_NOINIT -1
+#define HW_GENERIC 0
 #define HW_ERICSSON 1
 #define HW_DIGIANSWER 2
 #define HW_CSR 3
diff -ur bluetooth/apps/userstack/include/btconfig.h my-bluetooth/apps/userstack/include/btconfig.h
--- bluetooth/apps/userstack/include/btconfig.h	Mon Jan  8 11:01:45 2001
+++ my-bluetooth/apps/userstack/include/btconfig.h	Wed Jan 10 09:44:32 2001
@@ -36,7 +36,8 @@
 /* Bluetooth HW defines used to setup different HW and to cope with 
    limitations in HW */
 
-#define HW_NOINIT 0
+#define HW_NOINIT -1
+#define HW_GENERIC 0
 #define HW_ERICSSON 1
 #define HW_DIGIANSWER 2
 #define HW_CSR 3
Only in my-bluetooth/apps/userstack/include: btconfig.h~
diff -ur bluetooth/include/linux/bluetooth/btconfig.h my-bluetooth/include/linux/bluetooth/btconfig.h
--- bluetooth/include/linux/bluetooth/btconfig.h	Mon Jan  8 11:01:45 2001
+++ my-bluetooth/include/linux/bluetooth/btconfig.h	Wed Jan 10 09:44:32 2001
@@ -36,7 +36,8 @@
 /* Bluetooth HW defines used to setup different HW and to cope with 
    limitations in HW */
 
-#define HW_NOINIT 0
+#define HW_NOINIT -1
+#define HW_GENERIC 0
 #define HW_ERICSSON 1
 #define HW_DIGIANSWER 2
 #define HW_CSR 3
Only in my-bluetooth/include/linux/bluetooth: btconfig.h~