mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-25 06:00:43 +00:00
83d290c56f
When U-Boot started using SPDX tags we were among the early adopters and there weren't a lot of other examples to borrow from. So we picked the area of the file that usually had a full license text and replaced it with an appropriate SPDX-License-Identifier: entry. Since then, the Linux Kernel has adopted SPDX tags and they place it as the very first line in a file (except where shebangs are used, then it's second line) and with slightly different comment styles than us. In part due to community overlap, in part due to better tag visibility and in part for other minor reasons, switch over to that style. This commit changes all instances where we have a single declared license in the tag as both the before and after are identical in tag contents. There's also a few places where I found we did not have a tag and have introduced one. Signed-off-by: Tom Rini <trini@konsulko.com>
47 lines
965 B
C
47 lines
965 B
C
/* SPDX-License-Identifier: GPL-2.0+ */
|
|
/*
|
|
* (C) Copyright 2000-2004
|
|
* DENX Software Engineering
|
|
* Wolfgang Denk, wd@denx.de
|
|
*/
|
|
|
|
#ifndef _MKIIMAGE_H_
|
|
#define _MKIIMAGE_H_
|
|
|
|
#include "os_support.h"
|
|
#include <errno.h>
|
|
#include <fcntl.h>
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include <string.h>
|
|
#include <sys/stat.h>
|
|
#include <time.h>
|
|
#include <unistd.h>
|
|
#include <u-boot/sha1.h>
|
|
#include "fdt_host.h"
|
|
#include "imagetool.h"
|
|
|
|
#undef MKIMAGE_DEBUG
|
|
|
|
#ifdef MKIMAGE_DEBUG
|
|
#define debug(fmt,args...) printf (fmt ,##args)
|
|
#else
|
|
#define debug(fmt,args...)
|
|
#endif /* MKIMAGE_DEBUG */
|
|
|
|
static inline void *map_sysmem(ulong paddr, unsigned long len)
|
|
{
|
|
return (void *)(uintptr_t)paddr;
|
|
}
|
|
|
|
static inline ulong map_to_sysmem(void *ptr)
|
|
{
|
|
return (ulong)(uintptr_t)ptr;
|
|
}
|
|
|
|
#define MKIMAGE_TMPFILE_SUFFIX ".tmp"
|
|
#define MKIMAGE_MAX_TMPFILE_LEN 256
|
|
#define MKIMAGE_DEFAULT_DTC_OPTIONS "-I dts -O dtb -p 500"
|
|
#define MKIMAGE_MAX_DTC_CMDLINE_LEN 512
|
|
|
|
#endif /* _MKIIMAGE_H_ */
|