From 3ac5c4c435bbb47f9f472b3c40ea58c69df545fe Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Mon, 28 Feb 2022 22:59:09 +0800 Subject: [PATCH] mips64el: create /lib64 With N64 ABI, mips64 Linux ELF loader is in /lib64. --- chapter04/addinguser.xml | 5 +---- chapter04/creatingminlayout.xml | 4 +--- chapter07/changingowner.xml | 5 +---- 3 files changed, 3 insertions(+), 11 deletions(-) diff --git a/chapter04/addinguser.xml b/chapter04/addinguser.xml index e10a884b3..9903981db 100644 --- a/chapter04/addinguser.xml +++ b/chapter04/addinguser.xml @@ -80,10 +80,7 @@ useradd -s /bin/bash -g lfs -m -k /dev/null lfs all the directories under $LFS by making lfs the owner: -chown -v lfs $LFS/{usr{,/*},lib,var,etc,bin,sbin,tools} -case $(uname -m) in - x86_64) chown -v lfs $LFS/lib64 ;; -esac +chown -v lfs $LFS/{usr{,/*},lib*,var,etc,bin,sbin,tools} In some host systems, the following su command does not complete properly and suspends the login for the &lfs-user; user to the background. diff --git a/chapter04/creatingminlayout.xml b/chapter04/creatingminlayout.xml index d4bfe9af1..90934bd11 100644 --- a/chapter04/creatingminlayout.xml +++ b/chapter04/creatingminlayout.xml @@ -27,9 +27,7 @@ for i in bin lib sbin; do ln -sv usr/$i $LFS/$i done -case $(uname -m) in - x86_64) mkdir -pv $LFS/lib64 ;; -esac +mkdir -pv $LFS/lib64 Programs in will be compiled with a cross-compiler (more details can be found in section root by running the following command: -chown -R root:root $LFS/{usr,lib,var,etc,bin,sbin,tools} -case $(uname -m) in - x86_64) chown -R root:root $LFS/lib64 ;; -esac +chown -R root:root $LFS/{usr,lib,lib64,var,etc,bin,sbin,tools}