Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
ezynq
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Elphel
ezynq
Commits
0ca7bcf8
Commit
0ca7bcf8
authored
Dec 27, 2018
by
Oleg Dzhimiev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
+libfdt
parent
bd4c8bb9
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
49 additions
and
0 deletions
+49
-0
fdt.c
u-boot-tree/tools/libfdt/fdt.c
+2
-0
fdt_addresses.c
u-boot-tree/tools/libfdt/fdt_addresses.c
+2
-0
fdt_empty_tree.c
u-boot-tree/tools/libfdt/fdt_empty_tree.c
+2
-0
fdt_overlay.c
u-boot-tree/tools/libfdt/fdt_overlay.c
+2
-0
fdt_rw.c
u-boot-tree/tools/libfdt/fdt_rw.c
+35
-0
fdt_strerror.c
u-boot-tree/tools/libfdt/fdt_strerror.c
+2
-0
fdt_sw.c
u-boot-tree/tools/libfdt/fdt_sw.c
+2
-0
fdt_wip.c
u-boot-tree/tools/libfdt/fdt_wip.c
+2
-0
No files found.
u-boot-tree/tools/libfdt/fdt.c
0 → 100644
View file @
0ca7bcf8
#include "fdt_host.h"
#include "../scripts/dtc/libfdt/fdt.c"
u-boot-tree/tools/libfdt/fdt_addresses.c
0 → 100644
View file @
0ca7bcf8
#include "fdt_host.h"
#include "../scripts/dtc/libfdt/fdt_addresses.c"
u-boot-tree/tools/libfdt/fdt_empty_tree.c
0 → 100644
View file @
0ca7bcf8
#include "fdt_host.h"
#include "../scripts/dtc/libfdt/fdt_empty_tree.c"
u-boot-tree/tools/libfdt/fdt_overlay.c
0 → 100644
View file @
0ca7bcf8
#include "fdt_host.h"
#include "../scripts/dtc/libfdt/fdt_overlay.c"
u-boot-tree/tools/libfdt/fdt_rw.c
0 → 100644
View file @
0ca7bcf8
/* SPDX-License-Identifier: GPL-2.0+ BSD-2-Clause */
#include "fdt_host.h"
#include "../../scripts/dtc/libfdt/fdt_rw.c"
int
fdt_remove_unused_strings
(
const
void
*
old
,
void
*
new
)
{
const
struct
fdt_property
*
old_prop
;
struct
fdt_property
*
new_prop
;
int
size
=
fdt_totalsize
(
old
);
int
next_offset
,
offset
;
const
char
*
str
;
int
ret
;
int
tag
=
FDT_PROP
;
/* Make a copy and remove the strings */
memcpy
(
new
,
old
,
size
);
fdt_set_size_dt_strings
(
new
,
0
);
/* Add every property name back into the new string table */
for
(
offset
=
0
;
tag
!=
FDT_END
;
offset
=
next_offset
)
{
tag
=
fdt_next_tag
(
old
,
offset
,
&
next_offset
);
if
(
tag
!=
FDT_PROP
)
continue
;
old_prop
=
fdt_get_property_by_offset
(
old
,
offset
,
NULL
);
new_prop
=
(
struct
fdt_property
*
)(
unsigned
long
)
fdt_get_property_by_offset
(
new
,
offset
,
NULL
);
str
=
fdt_string
(
old
,
fdt32_to_cpu
(
old_prop
->
nameoff
));
ret
=
fdt_find_add_string_
(
new
,
str
);
if
(
ret
<
0
)
return
ret
;
new_prop
->
nameoff
=
cpu_to_fdt32
(
ret
);
}
return
0
;
}
u-boot-tree/tools/libfdt/fdt_strerror.c
0 → 100644
View file @
0ca7bcf8
#include "fdt_host.h"
#include "../scripts/dtc/libfdt/fdt_strerror.c"
u-boot-tree/tools/libfdt/fdt_sw.c
0 → 100644
View file @
0ca7bcf8
#include "fdt_host.h"
#include "../scripts/dtc/libfdt/fdt_sw.c"
u-boot-tree/tools/libfdt/fdt_wip.c
0 → 100644
View file @
0ca7bcf8
#include "fdt_host.h"
#include "../scripts/dtc/libfdt/fdt_wip.c"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment