added new build
This commit is contained in:
		
							parent
							
								
									d968c87dc5
								
							
						
					
					
						commit
						34c54640a5
					
				
					 6 changed files with 14 additions and 6 deletions
				
			
		
							
								
								
									
										9
									
								
								build.sh
									
										
									
									
									
								
							
							
						
						
									
										9
									
								
								build.sh
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -1,4 +1,5 @@
 | 
			
		|||
#!/usr/bin/env bash
 | 
			
		||||
set -x
 | 
			
		||||
 | 
			
		||||
test "$1" = "--edit" && {
 | 
			
		||||
  EDIT="-ti -v $PWD/edit.sh:/root/edit.sh --entrypoint bash"
 | 
			
		||||
| 
						 | 
				
			
			@ -10,10 +11,12 @@ test -d dist  || mkdir dist
 | 
			
		|||
test -d cache || mkdir cache
 | 
			
		||||
rm -rf cache/*
 | 
			
		||||
 | 
			
		||||
docker images | grep buildroot || docker build -t buildroot .
 | 
			
		||||
OCI=$(which podman || which docker)
 | 
			
		||||
 | 
			
		||||
docker run \
 | 
			
		||||
    --rm \
 | 
			
		||||
$OCI images | grep buildroot || $OCI build -t buildroot .
 | 
			
		||||
 | 
			
		||||
#$OCI --conmon /usr/bin/false run \
 | 
			
		||||
$OCI run \
 | 
			
		||||
    --name build-v86 \
 | 
			
		||||
    -v $PWD/dist:/build \
 | 
			
		||||
    -v $PWD/buildroot-v86/:/buildroot-v86 ${EDIT} \
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,3 +1,2 @@
 | 
			
		|||
source "$BR2_EXTERNAL_v86_PATH/package/nled/Config.in"
 | 
			
		||||
source "$BR2_EXTERNAL_v86_PATH/package/execfuse/Config.in"
 | 
			
		||||
source "$BR2_EXTERNAL_v86_PATH/package/fusescript/Config.in"
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -39,7 +39,7 @@ help_tips(){
 | 
			
		|||
  echo 'paste text            ' "ctrl/cmd+shift+v'"
 | 
			
		||||
  echo 'paste text to file    ' "ctrl/cmd+v'"
 | 
			
		||||
  echo 'import file to scene  ' "drag-drop file or ctrl/cmd+v or type 'upload'"
 | 
			
		||||
  echo 'import remote URL     ' "type 'require <https://foo.org/scene.glb>'"
 | 
			
		||||
  echo 'import remote URL     ' "type 'require <https://xrfragment.org/index.glb>'"
 | 
			
		||||
  echo 'reset scene & shell   ' "type 'reset'"
 | 
			
		||||
  echo 'js run                ' "type 'js 'alert(\"hello\")'"
 | 
			
		||||
  echo 'js console.log:       ' "type 'console document.baseURI"
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -47,7 +47,7 @@ test -d /dev/browser || {
 | 
			
		|||
    stty raw < /dev/ttyS1
 | 
			
		||||
    mkfifo /var/run/ttyS1
 | 
			
		||||
    cat /dev/ttyS1 > /var/run/ttyS1 &
 | 
			
		||||
    /bin/sh < /var/run/ttyS1
 | 
			
		||||
    /bin/sh < /var/run/ttyS1 > /var/run/ttyS1
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  setup_listen_homedir(){
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,6 +1,12 @@
 | 
			
		|||
#!/bin/sh
 | 
			
		||||
source /etc/profile.sh # expose xrsh cmds like require etc
 | 
			
		||||
 | 
			
		||||
if [[ "$1" =~ pos=|t= ]] then 
 | 
			
		||||
  # we are dealing with XR or Media Fragments 
 | 
			
		||||
  exit # ignore for now 
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
# otherwise execute
 | 
			
		||||
echo "" # clear line
 | 
			
		||||
$*      # simply execute
 | 
			
		||||
echo "$*"  >> /tmp/frag.log
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										
											BIN
										
									
								
								dist/v86-linux.iso
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										
											BIN
										
									
								
								dist/v86-linux.iso
									
										
									
									
										vendored
									
									
								
							
										
											Binary file not shown.
										
									
								
							
		Loading…
	
	Add table
		
		Reference in a new issue