- created a new pseudotarget 'install-userland-networking' that installs all

userland-networking files into a convenient place for easier testing:
  + net_server_driver and net_stack_driver are installed to 
    /boot/home/config/add-ons/kernel/drivers/bin and ../dev/net
  + net_stack_tester, ifconfig, arp and route are installed to 
    $(HAIKU_TEST_DIR)/kits/net/userland
  + libsocket, libnet, libbind and libnetapi are installed to 
    $(HAIKU_TEST_DIR)/kits/net/userland/lib
  + userland add-ons are installed to
    $(HAIKU_TEST_DIR)/kits/net/userland/add-ons/obos_network


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17701 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Oliver Tappe
2006-06-02 17:08:19 +00:00
parent 2252921311
commit b0623e48ef
21 changed files with 180 additions and 60 deletions
+5
View File
@@ -205,6 +205,11 @@ HaikuInstallRelSymLink install-networking
: libbind.so : libbind.so
: installed-networking-test ; : installed-networking-test ;
HaikuInstallRelSymLink install-userland-networking
: [ FDirName $(HAIKU_TEST_DIR) kits net userland lib ]
: libbind.so
: installed-userland-networking ;
Package haiku-networkingkit-cvs : Package haiku-networkingkit-cvs :
libbind.so : libbind.so :
# boot home config lib ; # boot home config lib ;
+5
View File
@@ -108,6 +108,11 @@ HaikuInstallRelSymLink install-networking
: libnet.so : libnet.so
: installed-networking-test ; : installed-networking-test ;
HaikuInstallRelSymLink install-userland-networking
: [ FDirName $(HAIKU_TEST_DIR) kits net userland lib ]
: libnet.so
: installed-userland-networking ;
Package haiku-networkingkit-cvs : Package haiku-networkingkit-cvs :
libnet.so : libnet.so :
# boot home config lib ; # boot home config lib ;
@@ -38,6 +38,11 @@ HaikuInstallRelSymLink install-networking
: libnetapi.so : libnetapi.so
: installed-networking-test ; : installed-networking-test ;
HaikuInstallRelSymLink install-userland-networking
: [ FDirName $(HAIKU_TEST_DIR) kits net userland lib ]
: libnetapi.so
: installed-userland-networking ;
Package haiku-networkingkit-cvs : Package haiku-networkingkit-cvs :
libnetapi.so : libnetapi.so :
# boot home config lib ; # boot home config lib ;
@@ -27,6 +27,11 @@ HaikuInstallRelSymLink install-networking
: libsocket.so : libsocket.so
: installed-networking-test ; : installed-networking-test ;
HaikuInstallRelSymLink install-userland-networking
: [ FDirName $(HAIKU_TEST_DIR) kits net userland lib ]
: libsocket.so
: installed-userland-networking ;
Package haiku-networkingkit-cvs : Package haiku-networkingkit-cvs :
libsocket.so : libsocket.so :
# boot home config lib ; # boot home config lib ;
+4 -5
View File
@@ -363,9 +363,8 @@ static char * stack_driver_path(void) {
// user-defined stack driver path? // user-defined stack driver path?
path = getenv("NET_STACK_DRIVER_PATH"); path = getenv("NET_STACK_DRIVER_PATH");
if (path) if (!path)
return path; path = NET_STACK_DRIVER_PATH;
printf("net-stack-driver-path = %s\n", path);
// use the default stack driver path return path;
return NET_STACK_DRIVER_PATH;
} }
+37 -39
View File
@@ -7,55 +7,53 @@ UseHeaders [ FDirName $(HAIKU_TOP) headers posix ] : true ;
UsePrivateHeaders net ; UsePrivateHeaders net ;
# the network stack tester app # the network stack tester app
SimpleTest net_stack_tester :
SEARCH_SOURCE += [ FDirName $(HAIKU_TOP) src system libroot os ] ;
SimpleTest <installed>net_stack_tester :
net_stack_tester.cpp net_stack_tester.cpp
userland_ipc.c userland_ipc.c
userland_modules.cpp userland_modules.cpp
: be : be
; ;
{ # Installation -- in the test directory for the time being
# symlink the userland add-ons dir to the dir where the net_stack_tester HaikuInstall install-userland-networking
# lives : [ FDirName $(HAIKU_TEST_DIR) kits net userland ]
# TODO: We don't have a "distro" tree (including the add-on dir) anymore. : net_stack_tester
local dir = [ on net_stack_tester return $(LOCATE) ] ; : installed-userland-networking
# MakeLocate <network-add-ons>userland : $(HAIKU_ADDON_DIR) ; ;
# MakeLocate <network-add-ons>add-ons : $(dir) ;
# RelSymLink <network-add-ons>add-ons : <network-add-ons>userland : false ;
# alias for the net_stack_tester the modules link against SEARCH_SOURCE = [ FDirName $(HAIKU_TOP) src bin arp ] ;
LOCATE on <installed>net_stack_tester = $(dir) ; SimpleTest <userland>arp :
# Depends <installed>net_stack_tester arp.c
# : net_stack_tester <network-add-ons>add-ons ; : <installed-userland-networking>libbind.so
} <installed-userland-networking>libsocket.so
$(SELECT_UNAME_ETC_LIB)
;
# for convenience: this target builds all userland modules SEARCH_SOURCE = [ FDirName $(HAIKU_TOP) src bin ifconfig ] ;
NotFile userland_network_modules ; SimpleTest <userland>ifconfig :
Depends userland_network_modules : ifconfig.c
# the stack main module : <installed-userland-networking>libbind.so
<userland>core <installed-userland-networking>libsocket.so
;
# interfaces modules SEARCH_SOURCE = [ FDirName $(HAIKU_TOP) src bin route ] ;
<userland>loopback SimpleTest <userland-bin>route :
<userland>ethernet keywords.c
<userland>ppp route.c
show.c
: <installed-userland-networking>libbind.so
<installed-userland-networking>libnet.so
<installed-userland-networking>libsocket.so
$(SELECT_UNAME_ETC_LIB)
;
# ppp modules # Installation -- in the test directory for the time being
<userland>ipcp HaikuInstall install-userland-networking
<userland>modem : [ FDirName $(HAIKU_TEST_DIR) kits net userland ]
<userland>pap : <userland>arp
<userland>pppoe <userland>ifconfig
<userland-bin>route
# protocols modules : installed-userland-networking-bin
<userland>raw
<userland>route
<userland>ipv4
<userland>icmp
<userland>udp
<userland>tcp
; ;
SubInclude HAIKU_TOP src tests add-ons kernel network core ; SubInclude HAIKU_TOP src tests add-ons kernel network core ;
@@ -26,5 +26,11 @@ Addon <userland>core : userland obos_network :
socket.c socket.c
; ;
LinkAgainst <userland>core : <installed>net_stack_tester ; LinkAgainst <userland>core : <installed-userland-networking>net_stack_tester ;
# Installation -- in the test directory for the time being
HaikuInstall install-userland-networking
: [ FDirName $(HAIKU_TEST_DIR) kits net userland add-ons obos_network ]
: <userland>core
: installed-userland-networking
;
@@ -3,5 +3,3 @@ SubDir HAIKU_TOP src tests add-ons kernel network interfaces ;
SubInclude HAIKU_TOP src tests add-ons kernel network interfaces ethernet ; SubInclude HAIKU_TOP src tests add-ons kernel network interfaces ethernet ;
SubInclude HAIKU_TOP src tests add-ons kernel network interfaces loopback ; SubInclude HAIKU_TOP src tests add-ons kernel network interfaces loopback ;
SubInclude HAIKU_TOP src tests add-ons kernel network interfaces ppp ; SubInclude HAIKU_TOP src tests add-ons kernel network interfaces ppp ;
@@ -12,5 +12,11 @@ Addon <userland>ethernet : userland obos_network interfaces :
ethernet.c ethernet.c
; ;
LinkAgainst <userland>ethernet : <installed>net_stack_tester ; LinkAgainst <userland>ethernet : <installed-userland-networking>net_stack_tester ;
# Installation -- in the test directory for the time being
HaikuInstall install-userland-networking
: [ FDirName $(HAIKU_TEST_DIR) kits net userland add-ons obos_network interfaces ]
: <userland>ethernet
: installed-userland-networking
;
@@ -12,5 +12,11 @@ Addon <userland>loopback : userland obos_network interfaces :
loopback.c loopback.c
; ;
LinkAgainst <userland>loopback : <installed>net_stack_tester ; LinkAgainst <userland>loopback : <installed-userland-networking>net_stack_tester ;
# Installation -- in the test directory for the time being
HaikuInstall install-userland-networking
: [ FDirName $(HAIKU_TEST_DIR) kits net userland add-ons obos_network interfaces ]
: <userland>loopback
: installed-userland-networking
;
@@ -14,5 +14,14 @@ Addon <userland>ppp : userland obos_network interfaces :
PPPManager.cpp PPPManager.cpp
; ;
LinkAgainst <userland>ppp : <userland>libkernelppp.a <installed>net_stack_tester be ; LinkAgainst <userland>ppp
: <userland>libkernelppp.a
<installed-userland-networking>net_stack_tester be
;
# Installation -- in the test directory for the time being
HaikuInstall install-userland-networking
: [ FDirName $(HAIKU_TEST_DIR) kits net userland add-ons obos_network interfaces ]
: <userland>ppp
: installed-userland-networking
;
@@ -16,8 +16,14 @@ Addon <userland>ipcp : userland obos_network ppp :
LinkAgainst <userland>ipcp : LinkAgainst <userland>ipcp :
<userland>libkernelppp.a <userland>libkernelppp.a
<installed>net_stack_tester <installed-userland-networking>net_stack_tester
be be
libbind.so libbind.so
; ;
# Installation -- in the test directory for the time being
HaikuInstall install-userland-networking
: [ FDirName $(HAIKU_TEST_DIR) kits net userland add-ons obos_network ppp ]
: <userland>ipcp
: installed-userland-networking
;
@@ -15,5 +15,15 @@ Addon <userland>modem : userland obos_network ppp :
ACFCHandler.cpp ACFCHandler.cpp
; ;
LinkAgainst <userland>modem : <userland>libkernelppp.a <installed>net_stack_tester be ; LinkAgainst <userland>modem
: <userland>libkernelppp.a
<installed-userland-networking>net_stack_tester
be
;
# Installation -- in the test directory for the time being
HaikuInstall install-userland-networking
: [ FDirName $(HAIKU_TEST_DIR) kits net userland add-ons obos_network ppp ]
: <userland>modem
: installed-userland-networking
;
@@ -14,5 +14,15 @@ Addon <userland>pap : userland obos_network ppp :
Protocol.cpp Protocol.cpp
; ;
LinkAgainst <userland>pap : <userland>libkernelppp.a <installed>net_stack_tester be ; LinkAgainst <userland>pap
: <userland>libkernelppp.a
<installed-userland-networking>net_stack_tester
be
;
# Installation -- in the test directory for the time being
HaikuInstall install-userland-networking
: [ FDirName $(HAIKU_TEST_DIR) kits net userland add-ons obos_network ppp ]
: <userland>pap
: installed-userland-networking
;
@@ -15,5 +15,15 @@ Addon <userland>pppoe : userland obos_network ppp :
DiscoveryPacket.cpp DiscoveryPacket.cpp
; ;
LinkAgainst <userland>pppoe : <userland>libkernelppp.a <installed>net_stack_tester be ; LinkAgainst <userland>pppoe
: <userland>libkernelppp.a
<installed-userland-networking>net_stack_tester
be
;
# Installation -- in the test directory for the time being
HaikuInstall install-userland-networking
: [ FDirName $(HAIKU_TEST_DIR) kits net userland add-ons obos_network ppp ]
: <userland>pppoe
: installed-userland-networking
;
@@ -12,4 +12,11 @@ Addon <userland>icmp : userland obos_network protocols :
icmp.c icmp.c
; ;
LinkAgainst <userland>icmp : <installed>net_stack_tester ; LinkAgainst <userland>icmp : <installed-userland-networking>net_stack_tester ;
# Installation -- in the test directory for the time being
HaikuInstall install-userland-networking
: [ FDirName $(HAIKU_TEST_DIR) kits net userland add-ons obos_network protocols ]
: <userland>icmp
: installed-userland-networking
;
@@ -12,4 +12,11 @@ Addon <userland>ipv4 : userland obos_network protocols :
ipv4.c ipv4.c
; ;
LinkAgainst <userland>ipv4 : <installed>net_stack_tester ; LinkAgainst <userland>ipv4 : <installed-userland-networking>net_stack_tester ;
# Installation -- in the test directory for the time being
HaikuInstall install-userland-networking
: [ FDirName $(HAIKU_TEST_DIR) kits net userland add-ons obos_network protocols ]
: <userland>ipv4
: installed-userland-networking
;
@@ -12,4 +12,11 @@ Addon <userland>raw : userland obos_network protocols :
raw.c raw.c
; ;
LinkAgainst <userland>raw : <installed>net_stack_tester ; LinkAgainst <userland>raw : <installed-userland-networking>net_stack_tester ;
# Installation -- in the test directory for the time being
HaikuInstall install-userland-networking
: [ FDirName $(HAIKU_TEST_DIR) kits net userland add-ons obos_network protocols ]
: <userland>raw
: installed-userland-networking
;
@@ -12,4 +12,11 @@ Addon <userland>route : userland obos_network protocols :
route.c route.c
; ;
LinkAgainst <userland>route : <installed>net_stack_tester ; LinkAgainst <userland>route : <installed-userland-networking>net_stack_tester ;
# Installation -- in the test directory for the time being
HaikuInstall install-userland-networking
: [ FDirName $(HAIKU_TEST_DIR) kits net userland add-ons obos_network protocols ]
: <userland>route
: installed-userland-networking
;
@@ -17,4 +17,11 @@ Addon <userland>tcp : userland obos_network protocols :
arc4random.c arc4random.c
; ;
LinkAgainst <userland>tcp : <installed>net_stack_tester ; LinkAgainst <userland>tcp : <installed-userland-networking>net_stack_tester ;
# Installation -- in the test directory for the time being
HaikuInstall install-userland-networking
: [ FDirName $(HAIKU_TEST_DIR) kits net userland add-ons obos_network protocols ]
: <userland>tcp
: installed-userland-networking
;
@@ -12,4 +12,11 @@ Addon <userland>udp : userland obos_network protocols :
udp.c udp.c
; ;
LinkAgainst <userland>udp : <installed>net_stack_tester ; LinkAgainst <userland>udp : <installed-userland-networking>net_stack_tester ;
# Installation -- in the test directory for the time being
HaikuInstall install-userland-networking
: [ FDirName $(HAIKU_TEST_DIR) kits net userland add-ons obos_network protocols ]
: <userland>udp
: installed-userland-networking
;