|
|
@ -1,3 +1,4 @@ |
|
|
|
#!/bin/bash |
|
|
|
# --- ROCK-COPYRIGHT-NOTE-BEGIN --- |
|
|
|
# |
|
|
|
# This copyright note is auto-generated by ./scripts/Create-CopyPatch. |
|
|
@ -24,7 +25,14 @@ |
|
|
|
main_dt() { |
|
|
|
echo -n "Change to root directory ... " |
|
|
|
mkdir -p $xroot/ ; cd $xroot/ ; echo 'done' |
|
|
|
|
|
|
|
|
|
|
|
mkdir -p "$xroot"/{,usr/,usr/local/}lib |
|
|
|
if [ "$ROCKCFG_MULTILIB" = 1 ] ; then |
|
|
|
if [ "$arch_target64" ] ; then |
|
|
|
mkdir -p "$xroot"/{,usr/,usr/local/}lib64 |
|
|
|
fi |
|
|
|
fi |
|
|
|
|
|
|
|
while read a b c d e ; do |
|
|
|
if [ "$a" = "chmod" -o "$a" = "chown" ] ; then |
|
|
|
echo "Running $a ($b) on $c ..." |
|
|
@ -38,8 +46,6 @@ main_dt() { |
|
|
|
elif [ "$a" = "l" -o "$a" = "l$(( arch_sizeof_char_p * 8 ))" ] ; then |
|
|
|
echo "Create symlink $b ($c) ..." |
|
|
|
ln -fsn "$c" "$xroot/$b" |
|
|
|
elif [ "$a" = "l64" ] ; then |
|
|
|
true |
|
|
|
elif [ "$a" = "mknod" ] ; then |
|
|
|
echo "Create device node $b ..." |
|
|
|
$a "$xroot/$b" $c $d $e |
|
|
|