LED builds now.

This commit is contained in:
David Given 2016-08-14 14:40:01 +02:00
parent 2dab95eced
commit a42939df50
4 changed files with 21 additions and 1 deletions

View file

@ -25,6 +25,7 @@ installable {
"util/ack+pkg",
"util/amisc+pkg",
"util/arch+pkg",
"util/led+pkg",
"util/misc+pkg",
"util/opt+pkg",
}

19
util/led/build.lua Normal file
View file

@ -0,0 +1,19 @@
cprogram {
name = "led",
srcs = { "./*.c" },
deps = {
"modules/src/string+lib",
"modules/src/object+lib",
"h+emheaders",
}
}
installable {
name = "pkg",
map = {
["$(INSDIR)/share/man/man5/ack.out.5"] = "./ack.out.5",
["$(INSDIR)/share/man/man6/led.6"] = "./led.6",
["$(PLATDEP)/em_led"] = "+led",
}
}

View file

@ -73,7 +73,7 @@ init_core()
register struct memory *mem;
extern char *sbrk();
#include "mach.c"
#include "mach.h"
#define ALIGN 8 /* minimum alignment for pieces */
#define AT_LEAST (ind_t)2*ALIGN /* See comment about string areas. */