summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2014-12-19 01:42:49 -0600
committerWaldemar Brodkorb <wbx@openadk.org>2014-12-19 01:49:30 -0600
commit949d8663f2f12c986ef2983b7b307f5ecddf060e (patch)
tree258f4f1f62c469b54e0f342fcf36847333c68bda /mk
parent7c89a2bc80d4d3c33a5345fd673cd2fe424c1fae (diff)
use the new concept of appliances
- Sync with Kernel upstream Kconfig - use new feature visible - add a patch for select on choices https://lkml.org/lkml/2011/2/17/379 - rename ADK_LINUX -> ADK_TARGET_ARCH - remove package collection feature - add appliance feature to define a appliance more complete
Diffstat (limited to 'mk')
-rw-r--r--mk/build.mk35
-rw-r--r--mk/image.mk2
-rw-r--r--mk/vars.mk10
3 files changed, 24 insertions, 23 deletions
diff --git a/mk/build.mk b/mk/build.mk
index 4e12c76c4..7b26bfe80 100644
--- a/mk/build.mk
+++ b/mk/build.mk
@@ -30,12 +30,6 @@ DEFCONFIG= ADK_DEBUG=n \
ADK_KERNEL_ADDON_GRSEC=n \
ADK_KERNEL_ADDON_MPTCP=n \
ADK_KERNEL_MPTCP=n \
- ADK_PKG_XORG=n \
- ADK_PKG_CONSOLE=n \
- ADK_PKG_TEST=n \
- ADK_PKG_MPDBOX=n \
- ADK_PKG_KODIBOX=n \
- ADK_PKG_DEVELOPMENT=n \
ADK_STATIC_TOOLCHAIN=n \
ADK_TOOLCHAIN_WITH_SSP=n \
ADK_TARGET_USE_SSP=n \
@@ -287,13 +281,16 @@ cleansystem:
distclean:
@$(TRACE) distclean
@$(MAKE) -C $(CONFIG) clean $(MAKE_TRACE)
- @rm -rf $(BUILD_DIR_PFX) $(FW_DIR_PFX) $(TARGET_DIR_PFX) $(DL_DIR) \
- ${ADK_TOPDIR}/package/pkglist.d ${ADK_TOPDIR}/package/pkgconfigs.d
@rm -rf $(TOOLCHAIN_DIR_PFX) $(STAGING_HOST_DIR_PFX)
@rm -rf $(STAGING_TARGET_DIR_PFX) $(STAGING_PKG_DIR_PFX)
- @rm -f .adkinit .config* .defconfig .tmpconfig.h all.config ${ADK_TOPDIR}/prereq.mk \
- .menu ${ADK_TOPDIR}/package/Depends.mk .ADK_HAVE_DOT_CONFIG .rebuild.* \
- ${ADK_TOPDIR}/target/*/Config.in.{arch*,system*} ${ADK_TOPDIR}/package/Config.in.auto*
+ @rm -rf $(BUILD_DIR_PFX) $(FW_DIR_PFX) $(TARGET_DIR_PFX) $(DL_DIR)
+ @rm -rf package/pkglist.d package/pkgconfigs.d
+ @rm -f .adkinit .config* .defconfig .tmpconfig.h all.config prereq.mk
+ @rm -f .menu package/Depends.mk .ADK_HAVE_DOT_CONFIG .rebuild.*
+ @rm -f target/*/Config.in.arch* target/*/Config.in.system*
+ @rm -f package/Config.in.auto* package/Config.in.collections
+ @rm -f target/config/Config.in.prereq target/config/Config.in.scripts
+ @rm -f adk/tools/pkgmaker adk/tools/depmaker adk/tools/pkgrebuild
else # ! ifeq ($(strip $(ADK_HAVE_DOT_CONFIG)),y)
@@ -516,7 +513,7 @@ endif
menuconfig: $(CONFIG)/mconf defconfig .menu
@if [ ! -f .config ];then \
- $(CONFIG)/conf -D .defconfig $(CONFIG_CONFIG_IN); \
+ $(CONFIG)/conf --olddefconfig $(CONFIG_CONFIG_IN); \
fi
@$(CONFIG)/mconf $(CONFIG_CONFIG_IN)
${POSTCONFIG}
@@ -533,13 +530,17 @@ _mconfig2: ${CONFIG}/conf modconfig .menu
distclean:
@$(MAKE) -C $(CONFIG) clean
- @rm -rf $(BUILD_DIR_PFX) $(FW_DIR_PFX) $(TARGET_DIR_PFX) $(DL_DIR) \
- ${ADK_TOPDIR}/package/pkglist.d ${ADK_TOPDIR}/package/pkgconfigs.d
+ @rm -rf $(BUILD_DIR_PFX) $(FW_DIR_PFX) $(TARGET_DIR_PFX) $(DL_DIR)
@rm -rf $(TOOLCHAIN_DIR_PFX) $(STAGING_TARGET_DIR_PFX)
@rm -rf $(STAGING_HOST_DIR_PFX) $(STAGING_TARGET_DIR_PFX) $(STAGING_PKG_DIR_PFX)
- @rm -f .adkinit .config* .defconfig .tmpconfig.h all.config ${ADK_TOPDIR}/prereq.mk \
- .menu .rebuild.* ${ADK_TOPDIR}/package/Depends.mk .ADK_HAVE_DOT_CONFIG \
- ${ADK_TOPDIR}/target/*/Config.in.{arch*,system*} ${ADK_TOPDIR}/package/Config.in.auto*
+ @rm -rf package/pkglist.d package/pkgconfigs.d
+ @rm -f .adkinit .config* .defconfig .tmpconfig.h all.config
+ @rm -f .menu .rebuild.* package/Depends.mk .ADK_HAVE_DOT_CONFIG prereq.mk
+ @rm -f target/*/Config.in.arch*
+ @rm -f target/*/Config.in.system*
+ @rm -f package/Config.in.auto* package/Config.in.collections
+ @rm -f target/config/Config.in.prereq target/config/Config.in.scripts
+ @rm -f adk/tools/pkgmaker adk/tools/depmaker adk/tools/pkgrebuild
endif # ! ifeq ($(strip $(ADK_HAVE_DOT_CONFIG)),y)
diff --git a/mk/image.mk b/mk/image.mk
index 442584440..e74d759df 100644
--- a/mk/image.mk
+++ b/mk/image.mk
@@ -69,7 +69,7 @@ ifneq (${ADK_PACKAGE_CONFIG_IN_ETC},)
gzip -9c ${ADK_TOPDIR}/.config > $(TARGET_DIR)/etc/adkconfig.gz
chmod 600 $(TARGET_DIR)/etc/adkconfig.gz
endif
-ifneq ($(ADK_LINUX_AARCH64)$(ADK_LINUX_X86_64)$(ADK_LINUX_PPC64)$(ADK_LINUX_SPARC64)$(ADK_TARGET_ABI_N32)$(ADK_TARGET_ABI_N64),)
+ifneq ($(ADK_TARGET_ARCH_AARCH64)$(ADK_TARGET_ARCH_X86_64)$(ADK_TARGET_ARCH_PPC64)$(ADK_TARGET_ARCH_SPARC64)$(ADK_TARGET_ABI_N32)$(ADK_TARGET_ABI_N64),)
test ! -d ${TARGET_DIR}/lib || mv ${TARGET_DIR}/lib/* ${TARGET_DIR}/${ADK_TARGET_LIBC_PATH}
test ! -d ${TARGET_DIR}/lib || rm -rf ${TARGET_DIR}/lib
ln -sf /${ADK_TARGET_LIBC_PATH} ${TARGET_DIR}/lib
diff --git a/mk/vars.mk b/mk/vars.mk
index e57c4f93e..c3034d229 100644
--- a/mk/vars.mk
+++ b/mk/vars.mk
@@ -64,7 +64,7 @@ ADK_TARGET_LINUXTYPE:= linux
endif
GNU_TARGET_NAME:= $(ADK_TARGET_CPU_ARCH)-$(ADK_VENDOR)-$(ADK_TARGET_LINUXTYPE)-$(ADK_TARGET_SUFFIX)
-ifeq ($(ADK_LINUX_C6X),y)
+ifeq ($(ADK_TARGET_ARCH_C6X),y)
GNU_TARGET_NAME:= $(ADK_TARGET_CPU_ARCH)-$(ADK_TARGET_LINUXTYPE)
endif
TARGET_CROSS:= $(TOOLCHAIN_DIR)/usr/bin/$(GNU_TARGET_NAME)-
@@ -123,7 +123,7 @@ TARGET_LDFLAGS+= -Wl,-z,now
endif
# needed for musl ppc
-ifeq ($(ADK_LINUX_PPC),y)
+ifeq ($(ADK_TARGET_ARCH_PPC),y)
ifeq ($(ADK_TARGET_LIB_MUSL),y)
TARGET_LDFLAGS+= -Wl,--secure-plt
endif
@@ -158,11 +158,11 @@ ifneq ($(ADK_TARGET_USE_GNU_HASHSTYLE),)
TARGET_LDFLAGS+= -Wl,--hash-style=gnu
endif
-ifeq ($(ADK_LINUX_MICROBLAZE),y)
+ifeq ($(ADK_TARGET_ARCH_MICROBLAZE),y)
TARGET_CFLAGS+= -mxl-barrel-shift
TARGET_CXXFLAGS+= -mxl-barrel-shift
endif
-ifeq ($(ADK_LINUX_XTENSA),y)
+ifeq ($(ADK_TARGET_ARCH_XTENSA),y)
TARGET_CFLAGS+= -mlongcalls -mtext-section-literals
TARGET_CXXFLAGS+= -mlongcalls -mtext-section-literals
endif
@@ -188,7 +188,7 @@ TARGET_CFLAGS+= -fno-unwind-tables -fno-asynchronous-unwind-tables
TARGET_CXXFLAGS+= -fno-unwind-tables -fno-asynchronous-unwind-tables
endif
-ifeq ($(ADK_LINUX_ARM),y)
+ifeq ($(ADK_TARGET_ARCH_ARM),y)
ifeq ($(ADK_LINUX_ARM_WITH_THUMB),y)
TARGET_CFLAGS+= -mthumb
TARGET_CXXFLAGS+= -mthumb