mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 12:22:44 +00:00 
			
		
		
		
	 cd235ce27d
			
		
	
	
		cd235ce27d
		
	
	
	
	
		
			
			This is a very basic mbedtls port. I've disabled the networking bits, since they want some macros that we don't have defined. We might not even want the networking functions anyway, since they wouldn't play very nice with CEventLoop and friends.
		
			
				
	
	
		
			25 lines
		
	
	
	
		
			480 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable file
		
	
	
	
	
			
		
		
	
	
			25 lines
		
	
	
	
		
			480 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable file
		
	
	
	
	
| #!/bin/sh
 | |
| 
 | |
| PORT_DIR=mbedtls
 | |
| 
 | |
| fetch() {
 | |
|     run_fetch_web "https://tls.mbed.org/download/mbedtls-2.16.2-apache.tgz"
 | |
|     run_patch remove-net-from-config.patch -p1
 | |
|     run_patch add-missing-includes.patch -p1
 | |
| }
 | |
| 
 | |
| configure() {
 | |
|     echo "move along, nothing to see here"
 | |
| }
 | |
| 
 | |
| build() {
 | |
|     run_export_env CC i686-pc-serenity-gcc
 | |
|     run_make clean
 | |
|     run_make CFLAGS=-DPLATFORM_UTIL_USE_GMTIME
 | |
| }
 | |
| 
 | |
| install() {
 | |
|     run_make_install DESTDIR="$SERENITY_ROOT"/Root
 | |
| }
 | |
| 
 | |
| . ../.port_include.sh
 |