mirror of
				https://github.com/brain-hackers/buildbrain
				synced 2025-11-04 14:28:34 +09:00 
			
		
		
		
	Check OS on debootstrap
This commit is contained in:
		
							
								
								
									
										4
									
								
								Makefile
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								Makefile
									
									
									
									
									
								
							@@ -73,6 +73,10 @@ nk.bin:
 | 
			
		||||
	./nkbin_maker/bsd-ce ./u-boot-brain/u-boot.bin
 | 
			
		||||
 | 
			
		||||
debian:
 | 
			
		||||
	@if [ "$(shell uname)" != "Linux" ]; then \
 | 
			
		||||
		echo "Debootstrap is only available in Linux!"; \
 | 
			
		||||
		exit 1; \
 | 
			
		||||
	fi
 | 
			
		||||
	mkdir debian
 | 
			
		||||
	sudo debootstrap --arch=armel --foreign buster debian/
 | 
			
		||||
	sudo cp /usr/bin/qemu-arm-static debian/usr/bin/
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user