summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMike Christie <michaelc@cs.wisc.edu>2007-07-25 19:04:16 -0500
committerMike Christie <michaelc@cs.wisc.edu>2007-07-25 19:04:16 -0500
commit2899caf02bbfd76cd56103e696e5aebed6af9276 (patch)
tree0f2369652a43f3dce39a626160890c3e63b039e0 /Makefile
parent75a052f1bedab2ca504156e2c6fa5b72c371c75b (diff)
downloadopen-iscsi-2899caf02bbfd76cd56103e696e5aebed6af9276.tar.gz
hook fw programs into iscsi tools
This patch hooks ibft into iscsiadm and iscsistart. Why do this? It seems easier to be able to just run the same tool we use for normal login. For example in the installer or initramfs we can do this: // This will check for fw crap and if found // log into targets that are found // returns 0 on success and non zero if // there was no fw crap or we could not log // in or some other error. // This will _not_ store any record (text files // with data in it) in /var/lib/iscsi. // It is completely dynamic in that regard. ret = iscsiadm -m discovery -t fwboot -l (fwboot - is a new discovery type I added which is for this fw crap). // For normal iscsi install we can then do: ret = iscsiadm -m discovery -t st -p ip:port -l // This will do discovery to the portal at // ip:port, and now the code supports the -l on discovery, // so it will also log into all the targets found // automagically for the caller. // This will store records (text files with target data in it) // like usual to /var/lib/iscsi. To setup the initramfs then, we just need some variable that tells us if we are doing the fw boot or the pxe net iscsi boot. This could be done by checking iscsiadm or iscsistart like so: ret = iscsiadm -m discovery -t fwboot // no login/-l command this time if ret indicates success, then setup initramfs for dynamic fwboot else do the normal pxe static iscsi root stuff we did. In the initrams fs if using iscsistart we would just do (if this got setup for fw dynamic boot) or it would end up as And if using iscsiadm in the initramfs you can just do iscsiadm -m discovery -t fwboot -l The patch was made using Prasana and Doug's code. I have not tested it. I do not have the hardware handy (no intel card and I got stuck looking for a ppc box with it).
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 0 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 16ef1df..70986b1 100644
--- a/Makefile
+++ b/Makefile
@@ -29,7 +29,6 @@ all:
$(MAKE) -C usr
$(MAKE) -C kernel
$(MAKE) -C utils
- $(MAKE) -C utils/fwparam_ibft
@echo
@echo "Compilation complete Output file"
@echo "----------------------------------- ----------------"
@@ -38,7 +37,6 @@ all:
@echo "Built iSCSI over TCP kernel module: kernel/iscsi_tcp.ko"
@echo "Built iSCSI daemon: usr/iscsid"
@echo "Built management application: usr/iscsiadm"
- @echo "Built utility: utils/fwparam_ibft/fwparam_ibft"
@echo
@echo Read README file for detailed information.
@@ -46,7 +44,6 @@ clean:
$(MAKE) -C utils clean
$(MAKE) -C usr clean
$(MAKE) -C kernel clean
- $(MAKE) -C utils/fwparam_ibft clean
# this is for safety
# now -jXXX will still be safe