Collapse OS — Bootstrap post-collapse technology

I have figured out how to use sdl2-config in make on OpenBSD:

SDL_CFLAGS != sdl2-config --cflags
SDL_LIBS != sdl2-config --libs

uxn's makefile had this instead:

SDL_CFLAGS := $(shell sdl2-config --cflags)
SDL_LIBS := $(shell sdl2-config --libs)

DuskOS had this:

SDL2_CONFIG ?= sdl2-config
And then later references to $(SDL2_CFLAGS) but idk where that variable is supposed to be set.

I assume those projects are doing the correct thing--my tinkering with makefiles began yesterday--but my change works as a quick-fix solution to have successful builds. 🤷

#OpenBSD #uxn #DuskOS

I HAVE EMERGED VICTORIOUS.

Here's the updated "duskos/mk/plat-openbsd.mk":

TAR_FLAGS ?= -F ustar
ARM_LDFLAGS = -larm

Needed even if /etc/fstab marks the working partition as "wxallowed"

CFLAGS+= -z wxneeded

Needed because it seems like we're checking for sdl2-config but not using it?

CFLAGS+= -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include \
-D_REENTRANT -I/usr/X11R6/include

Needed because sdl2 fucked me

CFLAGS+= -L/usr/local/lib -lSDL2 -L/usr/X11R6/lib

Needed because pthread fucked me

CFLAGS+= -lpthread

And "duskos/usermode/Makefile":

ARCH != ../getarch.sh
PLAT != ../getplat.sh
ALLSRCS != find . *.fs
.include "common.mk"

And don't forget to modify "duskos/mk/common.mk" with the correct tar invocations:

posix/fs.tar: $(ALLSRCS) posix/init.txt
tar -cf $@ -C fs $(TAR_FLAGS) .
tar -rf $@ -C posix $(TAR_FLAGS) ./init.txt

And the result: duskos/usermode/dusk-sdl runs! We have #DuskOS on #OpenBSD at home!

I'm not 100% sure on the find fix. The original:

find fs

This simply returns "No such file or directory" when run from duskos/usermode.

My preliminary fix:

find . *.fs

This adds everything in the directory. Since the directive is to find "ALLSRC", I figured that was okay, but I won't really know until the SDL issue allows me to actually build the thing.

#openbsd #duskos #sdl

Re: What if Humanity forgot how to make CPUs?
https://youtu.be/L2OJFqs8bUk by #LaurieWired

#CollapseOS? https://collapseos.org
#DuskOS? https://duskos.org

Some eccentric ideas for keeping computers running for as long as we can https://100r.co/site/permacomputing_101.html

Alternative question:
How would you make a digital storage, communication, & computation system with just what's available in different eras?
Eg: 3000 yr ago? 2000 yr ago? 1000 yr ago? 500 yr ago? Etc…

#PermaComputing #SalvageComputing

what if humans forgot how to make CPUs?

YouTube

@franklinlopez

What do we do when the #Internet gets switched off?

Local backups:
Wikipedia
OS Repos
Howto videos and books
#DuskOS and #CollapseOS
Mesh networks on a suburb/small town basis.
Local AI models from #huggingface

You're going to lose all your precious cloud shit.
Your smart phone will likely be bricked. Find your old flip phone.

I remember life before internet was everywhere, I still have my 26 volume encyclopedia in a plastic bag in the shed.

It's going to suck, but then societal collapse is never fun.

Today, after a terrible week, going throug some of the #DuskOS docs changed my mood for the better.  
Thanks Virgil!
#forth
DuskOS seems to be an exiting thing! #duskos
Dusk OS

Dusk OS - L'OS minimaliste qui survivra à l'apocalypse | Le site de Korben

Pendant que vous lisez ces lignes, en buvant votre café, une horde de développeurs ajoute chaque jour 14 millions de lignes de code supplémentaires à ...

Le site de Korben
🤔 Ah, Dusk OS, the revolutionary 32-bit throwback that plans to save us from our impending tech apocalypse, one #Forth line at a time. 🌅 Because what civilization really needs during a collapse is an "almost C compiler" to keep #UNIX running on your grandma's toaster. 🍞💻 Truly, the cutting edge of preparing for a future where modern computers are everywhere, yet nowhere.
https://duskos.org/ #DuskOS #TechApocalypse #RetroComputing #Language #Innovation #HackerNews #ngated
Dusk OS