Я наблюдаю, что система сборки yocto просто применяет мой патч вместо того, чтобы применять и фиксировать патч в клонированном репозитории git.
Оригинальный бит-бэк ( u-boot-ti-staging_2018.01.bb ) файл.
require u-boot-ti.inc
PR = "r19"
BRANCH = "ti-u-boot-2018.01"
SRCREV = "8b2f1df4b55bc0797399a21d42ac191d44f99227"
Модифицированный файл bitbake, добавлен SRC_URI в файл.
require u-boot-ti.inc
PR = "r19"
BRANCH = "ti-u-boot-2018.01"
SRCREV = "8b2f1df4b55bc0797399a21d42ac191d44f99227"
SRC_URI += "file://0001-Stopping-DHCP-server-giving-new-serverip.patch \
"
Я добавил файл патча в разделе файлыкаталог.Содержимое файла исправления ( 0001-Stopping-DHCP-server -iving-new-serverip.patch ) выглядит следующим образом.
From cf97b6053f00afd496d01a892599cd8f4b254087 Mon Sep 17 00:00:00 2001
From: Sunny Shukla <sunny.shukla@xyz.com>
Date: Wed, 19 Sep 2018 18:23:49 +0530
Subject: [PATCH] Stopping DHCP server giving new serverip
Added CONFIG_BOOTP_SERVERIP in the config file, this
stops the DHCP server gives new "serverip" address and
overrides the current one.
---
include/configs/am335x_evm.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/include/configs/am335x_evm.h b/include/configs/am335x_evm.h
index 01f0277..4b3047d 100644
--- a/include/configs/am335x_evm.h
+++ b/include/configs/am335x_evm.h
@@ -18,6 +18,8 @@
#include <configs/ti_am335x_common.h>
+#define CONFIG_BOOTP_SERVERIP
+
#ifndef CONFIG_SPL_BUILD
# define CONFIG_TIMESTAMP
#endif
--
2.7.4
Исправление применяется, как будто кто-то выполняеткоманда " git apply 0001-Stopping-DHCP-server -iving-new-serverip.patch " поверх клонированного репозитория git, как показано ниже.Но скорее я хочу, чтобы исправление было применено, как будто кто-то выполняет команду « git am 0001-Stopping-DHCP-server -iving-new-serverip.patch » поверх клонированного git-репо.
git status
On branch ti-u-boot-2018.01
Your branch is behind 'origin/ti-u-boot-2018.01' by 23 commits, and can be fast-forwarded.
(use "git pull" to update your local branch)
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git checkout -- <file>..." to discard changes in working directory)
modified: include/configs/am335x_evm.h
no changes added to commit (use "git add" and/or "git commit -a")
Я хочу, чтобы этот патч был применен и зафиксирован поверх клонированного репозитория git.Как этого добиться под файлом bitbake?