mirror of
https://github.com/ebrandi/FDD-book.git
synced 2026-12-06 00:23:30 +00:00
Merge pull request #30 from LeBaronDeCharlus/fix/bad-git-command
Fixing git command that leads to an error and adding sudo where needed.
This commit is contained in:
commit
188c9d33a1
10 changed files with 11 additions and 11 deletions
|
|
@ -254,7 +254,7 @@ As we move forward, we'll look at examples from the actual FreeBSD kernel source
|
|||
|
||||
To store a complete local copy of the FreeBSD source code, you will need approximately 3.6 GB of free disk space. You can install it using Git by running the following command:
|
||||
|
||||
# git clone --branch releng/14.3 --depth 1 https://git.FreeBSD.org/src.git src /usr/src
|
||||
% sudo git clone --branch releng/14.3 --depth 1 https://git.FreeBSD.org/src.git /usr/src
|
||||
|
||||
This will give you access to all source code, which we'll reference frequently throughout this book.
|
||||
|
||||
|
|
|
|||
|
|
@ -13124,7 +13124,7 @@ Before starting, ensure you have:
|
|||
```bash
|
||||
# If /usr/src is missing, install it:
|
||||
% sudo pkg install git
|
||||
% sudo git clone --branch releng/14.3 --depth 1 https://git.FreeBSD.org/src.git src /usr/src
|
||||
% sudo git clone --branch releng/14.3 --depth 1 https://git.FreeBSD.org/src.git /usr/src
|
||||
```
|
||||
|
||||
3. **Build tools installed**:
|
||||
|
|
|
|||
|
|
@ -790,7 +790,7 @@ A partir de este momento, cada vez que este libro mencione un archivo como `/usr
|
|||
Clónalo con Git:
|
||||
|
||||
```console
|
||||
% sudo git clone --branch releng/14.3 --depth 1 https://git.FreeBSD.org/src.git src /usr/src
|
||||
% sudo git clone --branch releng/14.3 --depth 1 https://git.FreeBSD.org/src.git /usr/src
|
||||
```
|
||||
|
||||
Esto tardará varios minutos y descargará varios gigabytes. Cuando termine, tendrás disponible el árbol de código fuente completo del kernel.
|
||||
|
|
|
|||
|
|
@ -254,7 +254,7 @@ A medida que avancemos, veremos ejemplos del código fuente real del kernel de F
|
|||
|
||||
Para almacenar una copia local completa del código fuente de FreeBSD, necesitarás aproximadamente 3,6 GB de espacio libre en disco. Puedes instalarlo con Git ejecutando el siguiente comando:
|
||||
|
||||
# git clone --branch releng/14.3 --depth 1 https://git.FreeBSD.org/src.git src /usr/src
|
||||
% sudo git clone --branch releng/14.3 --depth 1 https://git.FreeBSD.org/src.git /usr/src
|
||||
|
||||
Esto te dará acceso a todo el código fuente, al que haremos referencia con frecuencia a lo largo de este libro.
|
||||
|
||||
|
|
|
|||
|
|
@ -13129,7 +13129,7 @@ Antes de comenzar, asegúrate de tener:
|
|||
```bash
|
||||
# If /usr/src is missing, install it:
|
||||
% sudo pkg install git
|
||||
% sudo git clone --branch releng/14.3 --depth 1 https://git.FreeBSD.org/src.git src /usr/src
|
||||
% sudo git clone --branch releng/14.3 --depth 1 https://git.FreeBSD.org/src.git /usr/src
|
||||
```
|
||||
|
||||
3. **Herramientas de build instaladas**:
|
||||
|
|
|
|||
|
|
@ -792,7 +792,7 @@ A partir deste ponto, sempre que este livro citar um arquivo como `/usr/src/sys/
|
|||
Clone com Git:
|
||||
|
||||
```console
|
||||
% sudo git clone --branch releng/14.3 --depth 1 https://git.FreeBSD.org/src.git src /usr/src
|
||||
% sudo git clone --branch releng/14.3 --depth 1 https://git.FreeBSD.org/src.git /usr/src
|
||||
```
|
||||
|
||||
Isso levará alguns minutos e fará o download de vários gigabytes. Quando terminar, você terá a árvore completa de código-fonte do kernel disponível.
|
||||
|
|
|
|||
|
|
@ -255,7 +255,7 @@ Por enquanto, estamos compilando apenas um arquivo de código-fonte de cada vez.
|
|||
|
||||
Para armazenar uma cópia local completa do código-fonte do FreeBSD, você precisará de aproximadamente 3,6 GB de espaço em disco livre. Você pode instalá-lo usando Git executando o seguinte comando:
|
||||
|
||||
# git clone --branch releng/14.3 --depth 1 https://git.FreeBSD.org/src.git src /usr/src
|
||||
% sudo git clone --branch releng/14.3 --depth 1 https://git.FreeBSD.org/src.git /usr/src
|
||||
|
||||
Isso dará a você acesso a todo o código-fonte, que vamos referenciar com frequência ao longo deste livro.
|
||||
|
||||
|
|
|
|||
|
|
@ -13120,7 +13120,7 @@ Antes de começar, certifique-se de que você possui:
|
|||
```bash
|
||||
# If /usr/src is missing, install it:
|
||||
% sudo pkg install git
|
||||
% sudo git clone --branch releng/14.3 --depth 1 https://git.FreeBSD.org/src.git src /usr/src
|
||||
% sudo git clone --branch releng/14.3 --depth 1 https://git.FreeBSD.org/src.git /usr/src
|
||||
```
|
||||
|
||||
3. **Ferramentas de build instaladas**:
|
||||
|
|
|
|||
|
|
@ -256,7 +256,7 @@ Makefile是一个名为Makefile的纯文本文件,定义如何构建你的程
|
|||
|
||||
要存储完整的FreeBSD源代码本地副本,你需要大约3.6 GB的可用磁盘空间。你可以使用Git通过运行以下命令安装它:
|
||||
|
||||
# git clone --branch releng/14.3 --depth 1 https://git.FreeBSD.org/src.git src /usr/src
|
||||
% sudo git clone --branch releng/14.3 --depth 1 https://git.FreeBSD.org/src.git /usr/src
|
||||
|
||||
这将给你访问所有源代码的权限,我们将在本书中频繁引用这些源代码。
|
||||
|
||||
|
|
|
|||
|
|
@ -12953,7 +12953,7 @@ options MALLOC_DEBUG_MAXZONES=8
|
|||
```bash
|
||||
# If /usr/src is missing, install it:
|
||||
% sudo pkg install git
|
||||
% sudo git clone --branch releng/14.3 --depth 1 https://git.FreeBSD.org/src.git src /usr/src
|
||||
% sudo git clone --branch releng/14.3 --depth 1 https://git.FreeBSD.org/src.git /usr/src
|
||||
```
|
||||
|
||||
3. **已安装构建工具**:
|
||||
|
|
@ -15862,4 +15862,4 @@ static int mydrv_detach(device_t dev) {
|
|||
/* Set pointers to NULL after freeing */
|
||||
return (0); /* or EBUSY if can't detach */
|
||||
}
|
||||
```
|
||||
```
|
||||
|
|
|
|||
Loading…
Reference in a new issue