Training courses

Kernel and Embedded Linux

Bootlin training courses

Embedded Linux, kernel,
Yocto Project, Buildroot, real-time,
graphics, boot time, debugging...

Bootlin logo

Elixir Cross Referencer

/*	$NetBSD: md.c,v 1.1.30.1 2019/11/17 13:45:26 msaitoh Exp $ */

/* md.c -- Machine specific code for amd64 */

#include "../i386/md.c"

void	amd64_md_boot_cfg_finalize(const char *path);

void
amd64_md_boot_cfg_finalize(const char *path)
{
	char buf[MAXPATHLEN];

	if (get_kernel_set() != SET_KERNEL_2)
		return;

	run_program(RUN_CHROOT|RUN_FATAL,
	    "sh -c 'sed -e \"s:;boot:;pkboot:\" "
	    "< %s > %s.1", path, path);
	snprintf(buf, sizeof buf, "%s.1", path);
	mv_within_target_or_die(buf, path);
}