2
0

Makefile 803 B

123456789101112131415161718192021222324252627282930
  1. include $(TOPDIR)/rules.mk
  2. include $(INCLUDE_DIR)/kernel.mk
  3. PKG_NAME:=ubootenv-nvram
  4. PKG_RELEASE:=1
  5. PKG_LICENSE:=GPL-2.0
  6. include $(INCLUDE_DIR)/package.mk
  7. define KernelPackage/ubootenv-nvram
  8. SUBMENU:=Other modules
  9. TITLE:=NVRAM environment for uboot-envtools
  10. FILES:=$(PKG_BUILD_DIR)/ubootenv-nvram.ko
  11. AUTOLOAD:=$(call AutoLoad,30,ubootenv-nvram,1)
  12. KCONFIG:=
  13. endef
  14. define KernelPackage/ubootenv-nvram/description
  15. Support vendor modified U-Boot storing the environment
  16. in RAM. This driver exports the environment memory
  17. region as a misc device named "ubootenv", pretending
  18. it is a NOR mtd device to let existing userspace tools
  19. work without modifications.
  20. endef
  21. define Build/Compile
  22. $(KERNEL_MAKE) M="$(PKG_BUILD_DIR)" modules
  23. endef
  24. $(eval $(call KernelPackage,ubootenv-nvram))