or1ksim:
	cd src/or1ksim; git reset --hard
	cd src/or1ksim; ./configure
	#cd src/or1ksim; git apply ../../patches/0002-Enable-direct-access-to-ata-devices.patch
	cd src/or1ksim; make
	cd src/or1ksim; make install


#new qemu version:
#./configure 				\
	--python=/usr/bin/python2 	\
	--disable-spice 		\
	--disable-libiscsi 		\
	--disable-libnfs 		\
	--disable-libusb 		\
	--disable-seccomp 		\
	--disable-vde 			\
	--disable-gtk 			\
	--disable-kvm  			\
	--disable-vnc 			\
	--disable-cocoa 		\
	--disable-sdl 			\
	--disable-glx 			\
	--disable-curl 			\
	--disable-libssh2 		\
	--disable-tpm 			\
	--disable-lzo 			\
	--disable-virtfs 		\
	--without-pixman 		\
	--disable-tools 		\
	--disable-system 		\
	--target-list=or32-linux-user 	\
	--static

#for the blueCmd-qemu-version
#qemu_VERSION = -1.6.0
#qemu:
#	$(call extractpatch,$@,$($@_VERSION))
	cd src/$@; ./configure 			\
		---static 			\
		--target-list=or32-linux-user 	\
		--disable-glusterfs		\
		--disable-libssh2		\
		--disable-spice			\
		--disable-libiscsi		\
		--disable-smartcard-nss		\
		--disable-libusb		\
		--disable-usb-redir		\
		--disable-guest-agent		\
		--disable-seccomp
	cd src/$@; make ( last link needs -lrt)
#	cd src/$@; make install

or1kdejagnu:
	cd src/or1k-dejagnu; ./configure
	cd src/or1k-dejagnu; make
	cd src/or1k-dejagnu; make install

