flesh out kernel image package

This commit is contained in:
SolidHal 2020-07-07 23:51:23 -07:00
parent aee69a7566
commit eae5a0586d
2 changed files with 13 additions and 4 deletions

View File

@ -16,14 +16,13 @@ default: $(PACKAGE_NAME_DEB)
$(PACKAGE_NAME_DEB): $(PACKAGE_NAME_ORIG_TAR)
@echo Building $@
cd src/; debuild -us -uc
mkdir -p $PRAWNOS_LOCAL_APT_REPO
cp $PACKAGE_NAME $PRAWNOS_LOCAL_APT_REPO
mkdir -p $(PRAWNOS_LOCAL_APT_REPO)
cp $(PACKAGE_NAME_DEB) $(PRAWNOS_LOCAL_APT_REPO)
$(PACKAGE_NAME_ORIG_TAR):
#TODO: Have dependancy on kernel build
#copy the vmlinux here and zip it up with a makefile
make -C $(PRAWNOS_KERNEL)/makefile kernel
cp $(PRAWNOS_KERNEL_BUILT) $(ORIG)
tar -czf $(PACKAGE_NAME_ORIG_TAR) $(ORIG)/
.PHONY: clean
clean:

View File

@ -0,0 +1,10 @@
.DEFAULT_GOAL := default
default: $(all)
all:
#nothing special to do to make, as we already have all of the necessary components
install:
#copy the kernel image and the script to a defined location, then in a post install script call the installKernel script