summaryrefslogtreecommitdiffstats
path: root/common/imd-barebox.c
blob: e9cd37d83ec87415d44ef4c6458e196e091064fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#include <common.h>
#include <image-metadata.h>
#include <generated/compile.h>
#include <generated/utsrelease.h>

/*
 * Mark a imd entry as used so that the linker cannot
 * throw it away.
 */
void imd_used(const void *used)
{
}

struct imd_header imd_start_header
__BAREBOX_IMD_SECTION(.barebox_imd_start) = {
	.type = cpu_to_le32(IMD_TYPE_START),
};

struct imd_header imd_end_header
__BAREBOX_IMD_SECTION(.barebox_imd_end) = {
	.type = cpu_to_le32(IMD_TYPE_END),
};

BAREBOX_IMD_TAG_STRING(imd_build_tag, IMD_TYPE_BUILD, UTS_VERSION, 1);
BAREBOX_IMD_TAG_STRING(imd_release_tag, IMD_TYPE_RELEASE, UTS_RELEASE, 1);