linux - sed usage in x loader Makefile -
what sed command do? when run uname -m
on pc, returns x86_64
.
hostarch := $(shell uname -m | \ sed -e s/i.86/i386/ \ -e s/sun4u/sparc64/ \ -e s/arm.*/arm/ \ -e s/sa110/arm/ \ -e s/powerpc/ppc/ \ -e s/macppc/ppc/)
note: code snippet x loader makefile.
the sed
tries show system run more readable name.
eks if have i.86
shows i386
but 1 made script did forget intel 64 bits x86_64
.
Comments
Post a Comment