[leaf-commits] src/bering-uclibc4/source/iscsi buildtool.mk, 1.4, 1.5

Andrew <[email protected]>
Newsgroups gmane.linux.leaf.cvs
Message-ID <[email protected]>
Update of /cvsroot/leaf/src/bering-uclibc4/source/iscsi
In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv20373/source/iscsi

Modified Files:
	buildtool.mk 
Log Message:
Update to support multiple kernels


Index: buildtool.mk
===================================================================
RCS file: /cvsroot/leaf/src/bering-uclibc4/source/iscsi/buildtool.mk,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** buildtool.mk	11 Jun 2010 21:35:43 -0000	1.4
--- buildtool.mk	1 Nov 2010 11:02:09 -0000	1.5
***************
*** 20,25 ****
  	mkdir -p $(ISCSI_TARGET_DIR)/etc/init.d
  	mkdir -p $(ISCSI_TARGET_DIR)/etc/modules.d
! 	mkdir -p $(BT_STAGING_DIR)/lib/modules/$(BT_KERNEL_RELEASE)/kernel/iscsi
! 	$(MAKE) KSRC=$(BT_LINUX_DIR) CC=$(TARGET_CC) -C $(ISCSI_DIR)	
  	cp -a $(ISCSI_DIR)/usr/ietd $(ISCSI_TARGET_DIR)/usr/sbin
  	cp -a $(ISCSI_DIR)/usr/ietadm $(ISCSI_TARGET_DIR)/usr/sbin
--- 20,29 ----
  	mkdir -p $(ISCSI_TARGET_DIR)/etc/init.d
  	mkdir -p $(ISCSI_TARGET_DIR)/etc/modules.d
! 	(for i in $(KARCHS); do \
! 	mkdir -p $(BT_STAGING_DIR)/lib/modules/$(BT_KERNEL_RELEASE)-$$i/kernel/iscsi && \
! 	$(MAKE) KSRC=$(BT_LINUX_DIR)-$$i CC=$(TARGET_CC) -C $(ISCSI_DIR) && \
! 	cp -a $(ISCSI_DIR)/kernel/iscsi_trgt.ko $(BT_STAGING_DIR)/lib/modules/$(BT_KERNEL_RELEASE)-$$i/kernel/iscsi && \
! 	$(BT_DEPMOD) -ae -b $(BT_STAGING_DIR) -r -F $(BT_STAGING_DIR)/lib/modules/$(BT_KERNEL_RELEASE)-$$i/build/System.map $(BT_KERNEL_RELEASE)-$$i ; \
! 	done)
  	cp -a $(ISCSI_DIR)/usr/ietd $(ISCSI_TARGET_DIR)/usr/sbin
  	cp -a $(ISCSI_DIR)/usr/ietadm $(ISCSI_TARGET_DIR)/usr/sbin
***************
*** 29,38 ****
  	cp -a iscsid.modules $(ISCSI_TARGET_DIR)/etc/modules.d
  	cp -a $(ISCSI_TARGET_DIR)/* $(BT_STAGING_DIR)
- 	cp -a $(ISCSI_DIR)/kernel/iscsi_trgt.ko $(BT_STAGING_DIR)/lib/modules/$(BT_KERNEL_RELEASE)/kernel/iscsi
- 	
- 	$(BT_DEPMOD) -ae -b $(BT_STAGING_DIR) -r -F $(BT_STAGING_DIR)/lib/modules/$(BT_KERNEL_RELEASE)/build/System.map $(BT_KERNEL_RELEASE)
  
  clean:
! 	$(MAKE) KSRC=$(BT_LINUX_DIR) CC=$(TARGET_CC) -C $(ISCSI_DIR) clean
  	rm -rf $(BT_BUILD_DIR)/iscsi
  	rm -f $(BT_STAGING_DIR)/usr/sbin/ietd
--- 33,39 ----
  	cp -a iscsid.modules $(ISCSI_TARGET_DIR)/etc/modules.d
  	cp -a $(ISCSI_TARGET_DIR)/* $(BT_STAGING_DIR)
  
  clean:
! 	$(MAKE) KSRC=$(BT_LINUX_DIR)$(FIRSTKARCH) CC=$(TARGET_CC) -C $(ISCSI_DIR) clean
  	rm -rf $(BT_BUILD_DIR)/iscsi
  	rm -f $(BT_STAGING_DIR)/usr/sbin/ietd


------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.